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

ABAP Proxy Attachments

Former Member
0 Likes
561

Hi All,

We have an ABAP proxy that calls the function module BBP_PD_SC_CREATE and creates a ShopppingCart from an external XML file sent via HTTP post. We would now like to expand this by accepting messages and passing these into the ABAP proxy and on to SRM.

Does anyone have any code samples or information on doing this? Looking at the existing SAP Invoice Proxy we found some information on the form "map_attachment_in" which uses the method lo_attachment_prot->get_attachments.

regards

1 ACCEPTED SOLUTION
Read only

athavanraja
Active Contributor
0 Likes
498

do you mean receiving some content (may be a pdf file) and storing the same as attachment in SRM

Raja

3 REPLIES 3
Read only

athavanraja
Active Contributor
0 Likes
499

do you mean receiving some content (may be a pdf file) and storing the same as attachment in SRM

Raja

Read only

0 Likes
498

Exactly. So in addition to generating our shopping cart we could include an external attachments.

Read only

0 Likes
498

in such a case you have to extend BBP_PD_SC_CREATE .

create a z wrapper RFC FM for BBP_PD_SC_CREATE with additional parameter to take in attachment details (may be a xstring field to receive the file content) and create a proxy out of this zfm . you can write the code within this zfm, to create the shopping cart using BBP_PD_SC_CREATE and then the code attachment.

Regarding the code for attachment, do you want to store them in Business Document System of SAP - (BDS) or is it somewhere else?

Raja