Skip to Content

Hello,

this post reviews a Z program which could download and upload contents of a SAP dictionary table.

   Example for data download:

1.JPG

      Example for data upload:

2.JPG

Additionall functions:

3.JPG

Sometimes i need to download contents of SAP  table into a file – for backup, checks, excel calculations etc.

I have used transactions SE11, SE16 and SE16N to do this but i have had bad experience with these.

The reason is that using these SAP transactions I have received files with truncated columns content or missing columns (for some tables with many columns of bigger width).
So i have created a program which could do the things correctly.

This program could download content of a SAP internal table into a file with UTF-8 encoding.
Data is downloaded in internal SAP format.
There is possibility to download column IDs and column descriptions.
File could be downloaded on the SAP server or on the user PC.
In order to download file on the SAP server the option “Run in background” have to be checked. If this option is not checked then the file is downloaded on the user PC. User could use selection criteria’s during data download to restrict the table contents which is going to be downloaded. Also user could specify and restrict table columns which are going to be used into the output file by typing column IDs.

Upload data from a file with UTF-8 encoding residing on the SAP server into SAP dictionary table is the other option. File have to have exactly the same dictionary structure as the dictionary table and have to be tab separated. During upload full file name could be specified (file + path) or just a file name in which case home directory is going to be used. Be careful when typing file name of files residing on the application server because lower/uppercase could be important.

I have added two buttons which call standard SAP transactions for download/upload of files from/to SAP server.

I hope this program will be useful for you and will help you to save time.

To report this post you need to login first.

16 Comments

You must be Logged on to comment or reply to a post.

    1. Rosen Petrov Post author

      Hello Jelena,

      thank you for the idea. I have added screenshots.

      Program does not have authorization object, at this version.

      I could add one at the next update.

      Regards,

      Rosen

      (0) 
  1. Dimitrios Kyriazis

    Hello Rosen,

    this looks like something that would be of great help to us,

    i cant seem to be able to copy / paste into an ABAP editor though (have to replace all spaces in the editor one-by-one!)

    is it possible for you to post a link to the code in a txt file or something like that?

    Thanks

    Jim

    (0) 
    1. Rosen Petrov Post author

      FM: “ARCHIVFILE_CLIENT_TO_SERVER” colud be used to copy GUI file on the SAP server. It is presented on the SRM system.

      (0) 

Leave a Reply