ALV with row color



design the context node in the component controller as follows. Add an attribute ‘COLOR’ with type as ‘WDUI_TABLE_CELL_DESIGN’.

 Put the blow code in the component controller WDDOINIT method.

 Create an application and test. Here we can see a new column COLOR. Now we have to delete this column and have to set the value of all other columns.

 Create a new method in the component controller  ‘SET_ROW_COLOR’.


put the below code in it.

call the method from the WDDOINIT method. 

Test the application.




 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s