Skip to Content
avatar image
Former Member

Read Files from a Remote Server

Hello,

My client wants my program to read files on a remote server. He does not want to place the files on SAP server, or the read it locally because the program will run in background. Is there a way to read files in a remote server like no SAP server?

Thanks!

Jose

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 16, 2011 at 02:50 PM

    You can create a BAPI .. and code init to read data from remote server.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Not likely e:\

      What OS is the client running? Without a Basis team - you will likely have problems. I have never heard a company running SAP that does not have a Basis team... yikes.

      Sounds like you will need call in some Basis support from your consulting company.

      Good luck,

  • Jun 16, 2011 at 03:25 PM

    Hi,

    A simple way to get files from another server is using FTP functions.

    HTTP_SCRAMBLE (Encyrpted Password)
    FTP_CONNECT (user name, Encyrpted Password, ip, rfc_destination = 'SAPFTP' )
    FTP_SERVER_TO_R3
    

    Regards

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 16, 2011 at 02:55 PM

    Hello Jose,

    You can ask your basis to do the following :

    Option 1:-

    1) Mounting to the Remote server .

    2)Then in your code you can use the open data set statement abap statement to read the file and write whereever you want. or copy the file using the command statements.

    Option 2:-

    Use the FTP FM's to copy the file from the remote server.

    Hope this answers your question.

    Thanks,

    Greetson

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks!

      Sorry, but wat is Mounting?

      Do you know any FTP FM statements? or a ideia on how to use one in my program to read from remote server and place on the SAP server.

      Thanks again!