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.
cancel
Showing results for 
Search instead for 
Did you mean: 

Downloading the data to external file

Former Member
0 Kudos
157

HI ABAPers,

I have a dynamic internal table which i created using CREATE DATA statement and i have put in data into it. I have to download that internal table data into a external file. As the internal table is dynamically created it will be dereferenced using a field symbol. In all the download function modules like gui_download ws_downlaod and method like CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD we can pass only the standarad table for downloading the data and not the table which is dereferenced by field-symbols. Kindly help.

Regards,

Kasi S

2 REPLIES 2

Former Member
0 Kudos
75

Hi

U can use a internal table with only one very long char field and transfer the data from dynamic table to this new table before downloading it.

Max

Former Member
0 Kudos
75

Hi Kasi,

As the great Max just said, the best way for you to download the dynamic internal table is via an intermediate table made up of characters.

Declare a table as under:

DATA: BEGIN OF itab OCCURS 0,

FIELD TYPE char256,

END OF itab.

Then transfer the contents of your field symbol to this internal table row by row.

Then you can download the table using CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD .

Regards,

Chetan.

PS: Reward points if this helps.

Regards,

Chetan

PS:Reward points if this helps.