Skip to Content
Former Member
Jun 26, 2009 at 04:24 AM

Accessing Dynamic Internal table fields


Hello All,

I have one internal table ep_tabx having 138 columns whose data is getting displayed

by using function module reuse_alv_grid_display.

Now my query is, i have created one custom button on the appl toolbar to download ep_tabx data.

IF the user changes the the layout of the output at runtime and then presses that custom button

then i have created one dynamic internal table using call method cl_alv_table_create=>create_dynamic_table suppose <dyn_table> whose struc will be that of

dynamic fieldcatalog returned by using FM REUSE_ALV_GRID_LAYOUT_INFO_GET.

And then I have put a loop on the int table ep_tabx and move corresponding to the int table

<dyn_table>. But when i download the <dyn_table> data through GUI_DOWNLOAD the

date fields data is not getting downloaded correctly. I have 4 date fields in my ep_tabx.

In the alv grid output the date is getting displayed like 08/30/2004(ie mon/date/yr) but in download

file it comes like 20040830(ie yr/mon/date and that too without /).How to access the dynamic

internal tables fields separately so asto convert them in the pgm before the download.

Kindly Help.

Thanks in advance.