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

Converting Rows Into Column Headers - ALV

Former Member
0 Likes
777

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

2 REPLIES 2
Read only

Former Member
0 Likes
389

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

Read only

Former Member
0 Likes
389

Hi Sri,

Similar requirement.

Check this thread.

[;

Regards,

Ankur Parab