Skip to Content
author's profile photo Former Member
Former Member

File transfer between SAP to local server in background

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on May 14, 2009 at 08:21 AM

    Use:

    Open dataset , read file from SAP server

    transfer to intenrla table.

    close data set.

    Call fm : GUI_DOWNLOAD

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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?

  • author's profile photo Former Member
    Former Member
    Posted on May 14, 2009 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 15, 2010 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2010 at 07: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.