Application Development 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: 

Multiple PDF Attachment Issue

Former Member
0 Kudos

Dear Experts,

My requirement is to attach Multiple PDF documents and send as a single mail to the user. I am able to attach multiple PDF by incrementing the Head Start and Body Start for each pdf attachment in OBJPACK parameter in Mail Send FM SO_NEW_DOCUMENT_ATT_SEND_API1. Here i am able to open first 2 attachments and unable to open the subsequent PDF attachments. Did anyone worked in Multiple PDF(More than 2 attachments in single mail) attachment scenario?

Kindly help me.

4 REPLIES 4

Former Member
0 Kudos

Hi,

Use cl_bcs class to send mail. I attached 5 pdfs and a shortcut. It sent with no problem.

Take a look.

http://wiki.sdn.sap.com/wiki/display/ABAP/SendingMails-HomePage

Take care.

Çağatay

Former Member
0 Kudos

Hi Ramesh

This has been already discussed in the forum.

try this....

Regards

Ajit

surajarafath
Contributor
0 Kudos

Hi,

You can use the BCS Method to add multiple attachment,

It would be easy,

Sample code is posted in one of the forum

and also check

http://wiki.sdn.sap.com/wiki/display/Snippets/SendingmailwithattachmentusingObjectOriented+Approach

Thanks & Regards,

SUJI

Former Member
0 Kudos

closing the thread