Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

download data from database tables

0 Kudos

Dear Experts,

I have a requirement to download all table entries into a text file with TAB delimeter. I need to download at least 19 tables data for some audit purpose by a 3rd party company.

There are some tables like T001 in my requirement and i can download these table entries directly from SE16 transaction code. Also i have some tables like BKPF and BSEG which has huge number of records arounf 20million in BSEG.

Please suggest the best method to download and if any one have piece of code which i can be re used that would be of great help. i want to write single program with table name in the selection screen and it should download all entries of that table into notepad in the path specified in selection screen.

Thanks a lot.


Moderator Message: This is more of a Consulting issue, which your organization pays you to do. You need to put some effort from your side before turning to the forums for help. Also, please search for available information and best practices.

Edited by: kishan P on Sep 14, 2010 7:21 AM


Former Member
0 Kudos

You need to build dynamic internal table; assign the table structure specified on selection-screen to internal table....

search forum for building dynamic internal tables....

Former Member
0 Kudos

You could refer this below link for the Dynamic table creation.

<<link removed by moderator>>

Once you get the data into an internal table then you can download the data to a spreadsheet



Edited by: Abhii on Sep 13, 2010 7:43 PM

Edited by: kishan P on Sep 14, 2010 7:20 AM

Former Member
0 Kudos


I donu2019t think you can download 20 million records at one shot. Try writing the program with Parallel Processing logic and use variants to run the job.

And i think you need to run this job in a separate server in production so that it will not affect the other jobs.