05-14-2009 9:15 AM
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
05-14-2009 9:21 AM
Use:
Open dataset , read file from SAP server
transfer to intenrla table.
close data set.
Call fm : GUI_DOWNLOAD
05-14-2009 10:01 AM
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?
05-14-2009 10:09 AM
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
05-14-2009 10:40 AM
I always have the same message : 'Source file could not be opened'
10-07-2010 12:00 PM
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
10-07-2010 2:46 PM
Hi checkout in SAP technical.
Actually I am unable to give the link.
Edited by: UMANGmehta on Oct 7, 2010 3:47 PM
10-15-2010 8:06 AM
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
10-15-2010 8:29 AM
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.