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

Multiple rows in one ALV cell

Former Member
0 Likes
510

Hi,

We would like to build an ALV report that has multiple rows in one cell. Simple example:

Col 1 Col2 Col3

0010 Name1 UNAME1

0020 Name2 UNAME1

UNAME2

UNAME3

0030 Name 3 UNAME1

So in this case the cell in Column3 would have actually three "rows".

Is this possible and how? And if not, is there some kind of workaround that you could recommend for this kind of requirement.

Our ALV is based on class cl_salv_table.

Regards,

Karri

PS: It seems like the formatting of this forum does not let me put the UNAME2 and UNAME3 under the column3

Edited by: Karri Kemppi on Aug 26, 2009 3:28 PM

Edited by: Karri Kemppi on Aug 26, 2009 3:30 PM

1 ACCEPTED SOLUTION
Read only

Pawan_Kesari
Active Contributor
0 Likes
464

I don't think thats possible..

nearest you get is by inserting rows with same value in Col1 and Col2 and sorting on COl1 and Col2.

e.g.

Col 1 Col2 Col3

0010 Name1 UNAME1

0020 Name2 UNAME1

0020 Name2 UNAME2

0020 Name2 UNAME3

0030 Name 3 UNAME1

Sorting will suppress the output of values in subsequent rows in Col1 and Col2. Thats not perfect solution but can be considered as work around..

I don't think thats possible..

nearest you get is by inserting rows with same value in Col1 and Col2 and sorting on COl1 and Col2.

e.g.

Col 1 Col2 Col3

0010 Name1 UNAME1

0020 Name2 UNAME1

0020 Name2 UNAME2

0020 Name2 UNAME3

0030 Name 3 UNAME1

Sorting will suppress the output of values in subsequent rows in Col1 and Col2. Thats not perfect solution but can be considered as work around..

2 REPLIES 2
Read only

Pawan_Kesari
Active Contributor
0 Likes
465

I don't think thats possible..

nearest you get is by inserting rows with same value in Col1 and Col2 and sorting on COl1 and Col2.

e.g.

Col 1 Col2 Col3

0010 Name1 UNAME1

0020 Name2 UNAME1

0020 Name2 UNAME2

0020 Name2 UNAME3

0030 Name 3 UNAME1

Sorting will suppress the output of values in subsequent rows in Col1 and Col2. Thats not perfect solution but can be considered as work around..

Read only

0 Likes
464

Actually we already thought about your solution, but it doesn't really meet the requirement, since then we will have multiple rows describing the same "item". And if the user decides to sort the ALV with some other column, the whole thing will kind of break down.

Thanks,

Karri