Skip to Content
0
Former Member
Feb 23, 2009 at 05:01 PM

Dynamic internal table

21 Views

Hi everyone.

I have a program with a deep internal table with the following structure:

DATE TIME VALUE_PROF

2/2 15:30

2/2 15:45

3/2 15:00

And VALUE_PROF has the following structure:

PROFILE VALUE

00000150 145.6

00000151 145.6

I need to show this data through an ALV Control. I have been thinking on how to make the catalog, but I couldn't figure it out. So I thought to move this table to another one with the following structure:

DATE TIME 00000150 0000151

2/2 15:30 145.6 145.6

3/2 15:30 145.7 145.7

And so on. How can I do this? I mean, how can I know how many columns will have the table? I can count the deep table's records, but how I translate it into the amount of columns?