Skip to Content
avatar image
Former Member

Upload file from PC to app.server

Hello experts,

I need some help on uploading a file (very large file) from my PC to a specific folder on the application server, and to browse the folder in which to upload it.

I remember that in a past project in which I was involved someone did it, and create a simple transaction with the possibility of:

- browsing the file to be uploaded (i.e. c:\test.txt)

- browsing the directory on server where to upload it (ex. /usr/sap/.../test.txt)

- execute

It worked, but I do not have access to that system anymore, to copy/create something similar.

Can anyone help me?

thanks in advance

Chiara

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 14, 2008 at 01:10 AM

    Hi

    You can upload the file using CG3Z transaction.

    Regards,

    Vishwa.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello,

      thanks a lot for your help.

      This works. I will also try to insert it in some programs by a call transaction or batch input.

      Best regards.

  • avatar image
    Former Member
    Oct 14, 2008 at 03:47 AM

    For browsing local directories you can check methods of class: CL_GUI_FRONTEND_SERVICES. Something like FILE_OPEN_DIALOG.

    For browsing directories on application server, you can use FM: /SAPDMC/LSM_F4_SERVER_FILE.

    Once the files are selected, upload file from presentation server via method GUI_UPLOAD and transfer to application server via OPEN DATASET, TRANSFER & CLOSE DATASET Statements.

    Regards

    Eswar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello,

      this help was very useful to me, most of all to insert a server-folder browser in some programs!

      thanks a lot and regards

      Chiara