Skip to Content
0
Oct 22, 2010 at 07:08 AM

How to merge cells for each record only based on key column

120 Views

Hi Experts!

I want to display an output like below list:

Key Column         Col 1        Col 2          Col 3
1                       A          AA              AAA
1                                  BB              BBB
1                                                    CCC
2                       A           AA            AAA
2                       B           BB            
3                       B           BB             AAA
3                       C

Note that for Col 1, A is merged for key column 1 only. It did not include A in key column 2. How do we do this in ALV Grid?

I tried sort tables but it merges all cells for all values with the same value. I only want to merge cells with the same value if they have the same key.

Thanks!

Edited by: abapGenin on Oct 22, 2010 3:09 PM