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: 

File transfer between SAP to local server in background

Former Member
0 Kudos

hi all, I would like to transfer a file from the SAP server to local Server in background.

CG3Y works fine but only in foreground.

I found some standard reports :

RSFTP005 check everything is ok

SAPFTP check

Check RFC destination SAPFTP...

... OK.

Ping RFC destination SAPFTP...

... OK.

Check RFC destination SAPFTPA...

... OK.

Ping RFC destination SAPFTPA...

... OK.

then program RSEPSFTP but I don't know which information to put in the selection screen.

I don't kow if I need to put IP adress with or whitout
.

or server name or ????

our SAP server is a windows NT one.

If one of you can help me to make an FTP test with standard progra that will help me to make a specific program or used standard one...

thanks

8 REPLIES 8

Sandeep_Kumar
Advisor
Advisor
0 Kudos

Use:

Open dataset , read file from SAP server

transfer to intenrla table.

close data set.

Call fm : GUI_DOWNLOAD

0 Kudos

In foreground ok

in background KO

I had sy-subrc = 21 with gui_download FM.

control_flush_error = 21

I tried with IP adress of the local server & server name in the domain.

Any other idea?

Former Member
0 Kudos

Hi,

for the program RSEPSFTP

you need to provide...

RFC destination - in the parameter RFC_DEST

Local file - in the parameter LOC_FILE

Local directory - in the parameter LOC_DIR

Remote file - in the parameter REM_FILE

Remote directory - in the parameter REM_DIR

0 Kudos

I always have the same message : 'Source file could not be opened'

0 Kudos

Hi,

you must have correct accessrights; local (read); remote (read,write and execute);

check this for the remote side with RSEPSFTP and the ls - command

best regards

Hans

0 Kudos

Hi checkout in SAP technical.

Actually I am unable to give the link.

Edited by: UMANGmehta on Oct 7, 2010 3:47 PM

arpit_shah
Contributor
0 Kudos

Hi,

For transferring file in background,

First you have to read that file using open dataset for input, and after reading that file you have to use open dataset for output.

for reference you can check below links.

http://abaplovers.blogspot.com/2008/05/sap-abap-data-download-to-application.html

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/content.htm

Regards,

Arpit

Former Member
0 Kudos

Hi,

use OPEN DATASET lv_filename statement, where lv_filename should be the full network name of the file, something like '
pc_name
shared_folder\subfolder\filename.txt'. In addition operation system user, that used by SAP on application server, should have the proper authorization to access the local PC through the network, OSS 117395 could be useful.