|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
Go to main view context and map the node of the component controller to the view
10. Go to
methods tab and in WDDOINIT method on MAIN view using code wizard set the
‘table’ node as table operation. As shown below.
Source code in
DATA LO_ND_TABLE TYPE REF TO IF_WD_CONTEXT_NODE.
In the below
code the red marked section is where the based on condition the color code
(01,02..etc) is set to the field celldesign in the ALV.
to Component Usage and under properties tab click create to add the
Select the ZD_ALV_ROWCOLOR
component to add it.
Go to Component Usage and under Context tab Map the ALV node TABLE of the
component controller to the DATA of the interface controller of ALV
to layout tab of MAIN view and create a VIEWCONTAINER UI element under
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