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

CL_SALV_TABLE - Sort coloring

former_member194669
Active Contributor
0 Likes
585

All,

I am using CL_SALV_TABLE , In the output if user uses sort option then in the output first row of each new record should be in different color.

ie


MATNR      MATKX          DESC
10         11             TEST
10         11             TEST1
10         11             TEST2
11         12             TEST
11         12             TEST

After the sort by MATNR


MATNR      MATKX          DESC
10         11             TEST    " <-- colored line
           11             TEST1
           11             TEST2
11         12             TEST    " <-- colored line
           12             TEST

All,

I am using CL_SALV_TABLE , In the output if user uses sort option then in the output first row of each new record should be in different color.

ie


MATNR      MATKX          DESC
10         11             TEST
10         11             TEST1
10         11             TEST2
11         12             TEST
11         12             TEST

After the sort by MATNR


MATNR      MATKX          DESC
10         11             TEST    " <-- colored line
           11             TEST1
           11             TEST2
11         12             TEST    " <-- colored line
           12             TEST

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
542

Not possible in OO object model

Read only

0 Likes
542

Hi,

yes it is possible. There is no automatic way to color "sorts", for example, but you can color columns, lines, etc...

depending the data in ALV.

Regards,

MaryM