Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

waht is the max length of line we can pass as mail using FM 'SO_NEW_DOCUMEN

What is the max lenth in the record of the internal table gt_fix_len in the below FM.

Is it 255 or I can send my record lenght of 790 ?

  • Call the FM to post the message to SAPMAIL

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

document_data = wa_doc_data

put_in_outbox = 'X'

IMPORTING

sent_to_all = v_sent_all

TABLES

packing_list = gt_packing_list

contents_txt = gt_fix_len

receivers = gt_receivers

EXCEPTIONS

too_many_receivers = 1

document_not_sent = 2

document_type_not_exist = 3

operation_no_authorization = 4

parameter_error = 5

x_error = 6

enqueue_error = 7

OTHERS = 8.

IF sy-subrc EQ 0.

COMMIT WORK.

*-- DEQUEUE THE LOCK CREATED BY SO_OBJECT_SEND -


*call function 'SO_DEQUEUE_UPDATE_LOCKS'.

ENDIF.

THANKS IN ADV

Tags:
replied

yes . if you attach/load the document to DMS , you can send that directly.

check this thread in this read the a®s post. that may be useful for you.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question