‎2006 Nov 13 11:50 AM
Hi All,
I am using the FM
'SO_NEW_DOCUMENT_ATT_SEND_API1'to send data from the program to the user's email Id.
There is a small issue I am facing. The report has two different files to be emailed and the code seems to be fine. But when the email is delivered, both the files have the same names (attachment1.txt & attachment1.txt). The contents of the two files are diferent as per the expected results but only for the attachment names.
Any help in this case would be appreciated.
‎2006 Nov 13 11:56 AM
Can you please cut-paste the code which populates the packing_list internal table ?
I feel the issue is with the same.
<b>Please cut-paste the code so that we can put forth the suggestions !!</b>
Message was edited by:
Anurag Bankley
‎2006 Nov 13 11:59 AM
Hello Nazim,
In the PACK_LIST table of the FM the field OBJ_DESCR specifies the file name.
So change the name of the file append to this table.
If useful reward,
Vasanth
‎2006 Nov 13 12:11 PM
Hi,
Here are the parameters we will pass when we use the Fm
lt_packing_list-transf_bin = 'X'.
lt_packing_list-head_start = 1.
lt_packing_list-head_num = 0.
lt_packing_list-body_start = lv_start.
lt_packing_list-body_num = tab_lines.
lt_packing_list-doc_type = lv_extension.
<b>lt_packing_list-obj_name = it_attach_data-attch_name.</b>
lt_packing_list-obj_descr = it_attach_data-attch_desc.
here we write an append statements, so in your case, when
filling the second time, you need to send the different file name, so pass the new name, ans also look the same in Debugging mode, it should come correct ...
Regards
Sudheer
‎2006 Nov 13 12:30 PM
Hi All,
Thanks for the reply. But the PACK_LIST table has two different entries for the two file names I need to send.
DOC OBJ_NAME OBJ_DESCR
RAW Non Upstream 11/13/2006 06:25:03 Non Upstream
RAW Upstream 11/13/2006 06:25:03 Upstream
‎2006 Nov 13 1:11 PM
hi
good
go through this weblog, this ll help you give you better idea about sending the mail
/people/thomas.jung3/blog/2004/09/07/sending-e-mail-from-abap--version-46d-and-lower--api-interface
thanks
mrutyun^