Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Could you send me the code for html sending of file ?

or is there possiblity that can we pass data itab to file and attach as a file and send an email ?

THANKS.

3 REPLIES 3

former_member188685
Active Contributor
0 Kudos

you can send maximum 255 chars length. if it is html attachement you don't need to bother about the length. since in html it considers the start and end tags. you will not find any problems with the html attachement.

Former Member
0 Kudos

Could you send me the code for html sending of file ?

or is there possiblity that can we pass data itab to file and attach as a file and send an email ?

THANKS.

0 Kudos

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.