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: 

Currently FM SO_NEW_DOCUMENT_ATT_SEND_API1 generates .xls format

manohar_m
Explorer
0 Kudos

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

2 REPLIES 2

0 Kudos

In the packlist parameter of FM pass doc_type = 'TXT'.

venkat_o
Active Contributor
0 Kudos

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.

  "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.
<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