10-09-2008 4:26 PM
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
10-09-2008 4:37 PM
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.
10-09-2008 4:34 PM
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.
10-09-2008 4:37 PM
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.
10-09-2008 4:49 PM
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.