Setting ALV row color based on condition in ABAP WebDynpro

By Deepan Ignaatious, Kaavian systems

Scenario: In this example, I demonstrate on how to Set ALV row color based on condition in ABAP WebDynpro.


1.  Create a webdynpro component ZD_ALV_ROWCOLOR in SE80.

2.    In the Used components tab add the ALV component to be used and give a name.

3.    Go the component controller of the component then click the properties tab.

4.    Click on the create button to add the Components of ALV as shown below.

5.    Add both the components of the ALV after adding the used component tabs looks like below.

6.    Do above steps 3 and 4 for the main view also.

7.  Go the component controller context tab and create a node with an attribute of following type and add attributes from dictionary structure.


Cardinality: 0...n

Attribute: Add fields from table VBAP

I have added 4 fields for demo purpose

8.    Add one more attribute called CELLDESIGN which of type WDUI_TABLE_CELL_DESIGN to the existing table node created above. This field is going to set the row color based on code values like 00, 01, 02...etc.

Click here to continue...

SAP Virtual/Onsite Trainings

Document Categories:

What's New?


Sample Specs

What's Hot?

Web Dynpro for ABAP Tutorials 

Join the Mailing List
Enter name and email address below:
Subscribe  Unsubscribe 

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image