Application Development and Automation 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: 
Read only

Problem with Attachment Names

Former Member
0 Likes
565

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.

5 REPLIES 5
Read only

Former Member
0 Likes
530

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

Read only

Former Member
0 Likes
530

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

Read only

Former Member
0 Likes
530

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

Read only

0 Likes
530

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

Read only

Former Member
0 Likes
530

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^