Application Development 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: 

TO Display the row data as column in ALV

Former Member
0 Kudos
82

Hi experts ,

Need to display the row data in ALV as column.

The column of an ALV has the fieldnames of a table , this needs to be displayed as row data , that is as single row.

How can this can be achieved?

3 REPLIES 3

Former Member
0 Kudos
56

Hi,

Actually it is not possible to disaply in multiple lines.

https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/t...

https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/t...

This problem was discussed many times in this forum, u can search for more results.

Former Member
0 Kudos
56

Hi sunitha this is not possible and if possible then you have to play with the internal table.

one more thing while preparing the fieldcatalog you have to assign all the rows as char(100) as you will not be knowing the size of the particular field.

ex: let in first case the table display be.

MATNR DES QUANTITY

MES001 toy 456

now when you convert rows to column matnr des and quantity come to the same colomn inthat case you need to create a column of c(100) as it keeps varying matnr(18) des(20) quantity(13).

Second reason why i sayits not possible bcause the second table length depends on the total number of records present in first table.

Hope things are clear.

Cheers,

Suvendu

Former Member
0 Kudos
56

Hi.. Sunitha....

From the table DD03L u will get table fields in one table. U just concatenate all the fields separated by delimiter according to your requirement and display in ALV report by adding this column also in field catalogue in as usual way.

Hope this is useful.

Regards,

KP.