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: 

COLORING LINE IN ALV REPORT

Former Member
0 Kudos

Hi Experts,

I want to make color to parrticular line when it satisfies the condition in ALV report.

I am not using SLIS.

so is there any alternavite to clolor row on specific condition like...NETWR > 10000,

that row shold be in RED color.

Please give me Example of code.

Poins will be awarded soon.

Thanks,

Rohan

1 REPLY 1

Former Member
0 Kudos

Hi,

You have to expand your internal table with a field named eg. LINE_COLOR wich has 4 char's.

Then in building your internal table you can set that field with the appropriate value.

eg. wa_itab-line_color = C600. "( red )

Then when calling your first display of your ALV you do this

alv_grid_layout-info_fname = 'LINE_COLOR'.

Then

call method alv_grid->set_table_for_first_display

......

That should do the trick.

Best regards,

Dirk.