04-08-2008 9:10 AM
Currently FM SO_NEW_DOCUMENT_ATT_SEND_API1 generates .xls format, my requirement is to generate .txt fromat with tab delimited fomrat. Can any one help out in this plz? its very urgent
08-04-2009 4:13 AM
08-04-2009 6:57 AM
Hi Manohar,
<li> If you had successfully generated mail with excel attachment, It is easy to generate Text attachment. You need to change the following code for Text attachment.
<li> For reference, have a look at the link. <strong>[Mail with Text Attachment|http://an-abaper.blogspot.com/2008/04/mail-with-text-attachment.html]</strong>
Thanks
Venkat.O "Write Packing List for Attachment
w_packing_list-transf_bin = 'X'.
w_packing_list-head_start = 1.
w_packing_list-head_num = 1.
w_packing_list-body_start = 1.
DESCRIBE TABLE i_attachment LINES w_packing_list-body_num.
w_packing_list-doc_type = 'TXT'.
w_packing_list-obj_descr = 'TEXT Attachment'.
w_packing_list-obj_name = 'TXT_ATTACHMENT'.
w_packing_list-doc_size = w_packing_list-body_num * 255.
APPEND w_packing_list TO i_packing_list.
CLEAR w_packing_list.