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 Mail with Multiple Excel attachments

Former Member
0 Likes
2,302

Hi Experts,

iam able to send mail with single attachment using below function module , it_mess_att table contains attachment data but want to attach multiple excel files with this function module i found link http://scn.sap.com/thread/1107940  in which  below method was used for each attachement but unable to link with function module Can any body help me out

  CALL METHOD DOCUMENT->ADD_ATTACHMENT

 

      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        document_data              = lv_document_data
        put_in_outbox              = 'X'
        commit_work                = 'X'
      TABLES
        packing_list               = lt_objpack
        object_header              = lt_objhead
        contents_bin               = it_mess_att[]
        contents_txt               = lt_objtxt
        receivers                  = lt_reclist

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,312

thanks this logic worked

6 REPLIES 6
Read only

Former Member
0 Likes
1,312

Hi

Check the bellow link which will help you in getting a solution for your requirement.

http://scn.sap.com/thread/299160

Read only

0 Likes
1,312

Hi

This link is for multiple reciepients but my requirement is for multiple attachment with single mail

Read only

0 Likes
1,312

Hi

This link is for multiple reciepients but my requirement is for multiple attachment with single mail

Read only

0 Likes
1,312

Hi

Check the bellow link which will help you in getting a solution for your requirement.

http://wiki.sdn.sap.com/wiki/display/Snippets/Multiple+attachment+on+e_mail

Read only

Former Member
0 Likes
1,313

thanks this logic worked

Read only

0 Likes
1,312

Could you share the logic please