Skip to Content
0
Former Member
Oct 29, 2004 at 01:57 AM

Dynamic table created from an Internal table

49 Views

Hi all,

I searched through the forums and found a few topics on how to create an dynamic table, but the provided solutions were creating dynamic tables from a database table. I was wondering if it would be possible to do the same from an internal table.

Here is the scenario I have an internal table

DATA: BEGIN OF INTERNAL_TABLE OCCURS 10,

LName TYPE P0002-NACHN,

FNAME TYPE P0002-VORNA,

SALARY TYPE P decimals 2,

....

....

END OF INTERNAL_TABLE.

After the table is filled - based on the user's selection (let's say user selected LName and Salary) I need to create a NEW internal table with only two fields LName and Salary .

Thank you