Skip to Content
0
Former Member
Feb 11, 2010 at 01:22 PM

how to display dynamic internal table in ALV?

537 Views

Hello experts,

My requirement is to create dynamic LV output means in short at the time calling ALV I will not be knowing how many columns it will have.

First thing-- > I have internal table like below

Material Plant release date quantity

1111111 0045 12/12/2009 100

1111111 0055 12/12/2009 100

1111111 0065 12/12/2009 100

2222222 0075 12/12/2009 100

2222222 0065 12/12/2009 100

In need to create dynamic internal table like below

Material 0045 0055 0065 0075 release daty

111111 100 100 100 12/12/2009

22222 100 100 12/12/2009

Please tell me how to define dynamic structure for internal table and how to built this dynamic internal table.

Second thing how to display above internal table using ALV???

We donu2019t field catalog to fill because we donu2019t know the structure, it will be populated dynamically.

Please help me or give me some idea how to achieve by giving me sample code at least.

- Shweta