2006 Dec 14 1:01 PM
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
2006 Dec 14 1:23 PM
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
2006 Dec 14 1:41 PM
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.