Skip to Content

Send Mail with Multiple Excel attachments

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 28, 2012 at 04:11 AM

    thanks this logic worked

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2012 at 05:47 AM

    Hi

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

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.