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

Send e-mail with multiple Attachments

Former Member
0 Likes
621

Hi Guys,

I need to send a e-mail with 3 attachments:

- HTML File

- XML File

- PDF File

with Sap connect or other option.

Is it possible?

Would know to help me?

Thanks,

Lima

3 REPLIES 3
Read only

Former Member
0 Likes
551

hi Lima,

if you are doing with program. pass PACKING_LIST 3times with require information to SO_NEW_DOCUMENT_ATT_SEND_API1

Regards,

sri

Read only

Former Member
0 Likes
551

Hi Bruno,

yes its possible, you have to increase the value of this variable for each attachment. l_r_objpack-head_num = 1.

DESCRIBE TABLE l_t_objbin LINES l_f_tab_lines.

CLEAR l_r_objbin.

l_r_objpack-transf_bin = 'X'.

l_r_objpack-head_start = 1.

l_r_objpack-head_num = 1.

l_r_objpack-body_start = 1.

l_r_objpack-body_num = l_f_tab_lines.

l_r_objpack-doc_size = l_f_tab_lines * 255.

l_r_objpack-doc_type = 'PDF'.

l_r_objpack-obj_name = 'ATTACHMENT'.

l_r_objpack-obj_descr = 'Log Paper'.

APPEND l_r_objpack TO l_t_objpack.

----


  • Document data

----


l_r_doc_chng-obj_langu = sy-langu.

l_r_doc_chng-obj_name = 'SAPRPT'.

l_r_doc_chng-sensitivty = 'F'.

ENDIF.

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

document_data = l_r_doc_chng

commit_work = 'X'

TABLES

packing_list = l_t_objpack

contents_bin = l_t_objbin

contents_txt = l_t_objtxt

receivers = l_t_reclist

EXCEPTIONS

too_many_receivers = 1

Regards,

Kunmar.

<removed by moderator>

Edited by: Thomas Zloch on Jul 7, 2010 9:59 AM - please do not ask for p...

Read only

ThomasZloch
Active Contributor
0 Likes
551

FAQ, please search before posting.

Thread locked.

Thomas