Application Development and Automation 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: 
Read only

Dynamic column deletion...!!!

Former Member
0 Likes
504

SDN folks,

Is there any way I can delete internal table columns dynamically.

Let's say I have some data in internal table, and before downloading internal table data to excel I would like to delete some columns.

Regards,

Amey

2 REPLIES 2
Read only

Former Member
0 Likes
413

Hi Amey,

Do you want to delete data in colums or the internal table columns?

If you want to delete columns then it is not possible.

Regards,

Atish

Read only

varma_narayana
Active Contributor
0 Likes
413

Hi Amey..

It is not possible to delete any columns from the internal table while downloading to a file.

For that you have to declare a separate internal table (without those columns) and MOVE the data from the First internal table in a loop.

LOOP AT ITAB.

MOVE-CORRESPONDING ITAB TO ITAB1.

APPEND ITAB1.

ENDLOOP.

Now call the FM GUI_DOWNLOAD and pass ITAB1.

<b>reward if Helpful.</b>