|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
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.
Create a webdynpro component ZD_ALV_ROWCOLOR in SE80.
the Used components tab add the ALV component to be used and give a name.
the component controller of the component then click the properties tab.
on the create button to add the Components of ALV as shown below.
both the components of the ALV after adding the used component tabs looks like
above steps 3 and 4 for the main view also.
Go the component controller context tab and create a node with an
attribute of following type and add attributes from dictionary structure.
Add fields from table VBAP
have added 4 fields for demo purpose
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.
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards