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: 

Sending multiple attchment in FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'

Former Member
0 Kudos

Hi Experts,

I am trying to attach four csv attachment thru FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' .

Mail sending part is working fine with 4 attachments.Only problem is data populated in the attachment.

it_objbin internal table contains all the data for csv file.

I know the problem exists in it_objpack code.Please help me to retrieve the exact values for each csv file.

For example,

Second file retireves the first line of third file.same for third & fourth files.

Please provide some sample code for this.

Thanks in advance

2 REPLIES 2

Clemenss
Active Contributor
0 Kudos

Hi Manju,

it is difficult to solve a question without kknowing the (code) details. Anyway, it will be more and more difficult to get any support for the outdated and obsolete FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'.

Please have a look at [Unknown thus unloved|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3443] [original link is broken] [original link is broken] [original link is broken]; and [Sending E-Mail from ABAP|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/789] [original link is broken] [original link is broken] [original link is broken];.

The first link shows how simple it is to use the new SAP business communication services, the second link poits to Thomas Jung's fantastic blog that shows a lot of details, i.e. the sending of attachments.

You will find out that very few questions are about the CL_BCS class because it is so easy to use you just have no reason to ask about mail sending any more.

It is very sad that so many developers just refuse to use it. That leads to endless new questions for SO_NEW_DOCUMENT_ATT_SEND.

Regards,

Clemens

Former Member
0 Kudos

Solved myself.