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: 

Save attachment to application server (AL11)

Former Member
0 Kudos

Hello,

I have a requirement to get attachements (PDF) from posted documents(FB03) and store them in a folder on application server (AL11).

My problem is that I don´t know how to save my attachment on the app server.

We are trying to use FM SO_OBJECT_INSERT but its not working.

Anyone knows how to do this ?

Br

Andreas

2 REPLIES 2

Former Member
0 Kudos

You need to read the file in a binary format and then use OPEN DATASET, TRANSFER DATASET and CLOSE DATASET in BINARY MODE to write to the server.

0 Kudos

Hey Abdullah!

Thanks for answering! The current problem I'am having is actually open the file as a binary. I'am trying (and failing) when using FM SCMS_R3DB_GET. I'am using theese values crepid: SOFFDB doc id: phio_object-objectid comp id: filename.

Is this the wrong way of getting the data bin table?