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

BAPI_DOCUMENT_CHECKOUTVIEW2 checking out document attachments to application server

ralf_wenzel_heuristika
Active Participant
0 Likes
1,117

Hi everybody,

I have to checkout a bunch of document attachments to the application server in background. Checking out to the client is easy, but I don't know how I have to trigger the FM to get the files onto the application server. Using PF_FTP_DEST = 'SAPFTPA' does work, but the admin told me, that this wants to connect to the SAPGUI, which is not possible in background.

Kind Regards

Ralf

5 REPLIES 5
Read only

former_member235395
Contributor
0 Likes
894

Hi Ralf,

I think, if you want to read files from application server(out of SAP server) you can to use FTP, check if application server have FTP Protocol ON.

Check RSFTP007 programm and be sure that use of FM  HTTP_SCRAMBLE.

Regards,

Read only

0 Likes
894

I don't want to read files from application server, I want to WRITE (=checkout) them TO the application server.

Read only

0 Likes
894

Hi, Ralf

I too want to checkout files from DMS and write them to the application server.  Did you ever find a way to do that?

Regards,

Harry

Read only

0 Likes
894

I did, but I can not tell you the solution, because I do not have access to this system anymore. I copied the FM, I remember, to extend the FM-interface:



EXPORTING

(....)

" In Background: RFC-Destination
pf_ftp_dest       
= SWITCH rfcdest( sy-batch WHEN space THEN space ELSE 'SAPFTPA' )
pf_content_provide = 'SRV'

IMPORTING

(....)

Read only

0 Likes
894

Thanks for the quick reply.  That's really all the information I needed.