We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

[sap-abap] Add color to an Additional Field inside a SAP Query (Infoset) in ALV

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by Flarie (Systems Consultant)
on Sep 2 at 4:34 PM
I made an Infoset (transaction SQ02) out of table MARC. I created an Additional Field called "STATUS" which I coded to get a value of 1 or 2 depending on the value of another field in MARC.

How can I make this cell in the resulting Query to appear in different colors depending on the value? I found the command "FORMAT" but that doesn't work on SAP List Viewer (ALV) mode.

This is what I coded in the additional field called STATUS::

clear: STATUS.
if MARC-DISPO = 001.
format intensified color = 6.
move '1' to STATUS.
else.
format intensified color = 7.
move '2' to STATUS.
endif.
The coloring didn't work. What ABAP command should I add to this additional field to make the coloring of the STATUS cell work under ALV mode?
__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
View this online
  
_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language