‎2010 Jul 07 4:21 AM
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
‎2010 Jul 07 6:22 AM
hi Lima,
if you are doing with program. pass PACKING_LIST 3times with require information to SO_NEW_DOCUMENT_ATT_SEND_API1
Regards,
sri
‎2010 Jul 07 6:54 AM
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...
‎2010 Jul 07 9:07 AM