‎2009 Aug 08 7:38 AM
Hi all ,
I have a doubt like how can i convert my dynamic internal table rows into column headers in my alv grid program .
For eg: i have 3 ship-to-party address 50020,50021 and 50022 in my dynamic internal table . i need these values as column headers on alv.
Please show some light on this.
Thanks In Advance
Sri
Edited by: sri on Aug 8, 2009 8:51 AM
‎2009 Aug 08 10:28 AM
Hi,
you want to display this in an ALV; then your internal table will be dynamic.
Your internal table will consists of following fields
Work Centre
ship-to-party address 50020
ship-to-party address 50021
ship-to-party address 50022
.
.
ship-to-party address N
The ship-to-party address columns will not be of type character as in this columns you have to store the workcentres in them.
Create your dynamic internal table using the class
CL_ALV_TABLE_CREATE and method CREATE_DYNAMIC_TABLE.
You will have to create a fieldcatalog table and pass to the method.
Then use the dynamic internal table created to store your data horizontally against each ship-to-party address column.
Display the output in an ALV.
Pass the ship-to-party address values as the description for each ship-to-party address column in the ALV.
I hope you get the concept.
Regards,
Akash Rana
‎2009 Aug 08 10:56 AM