2008 Nov 01 8:27 AM
Hi Gurus,
I have a table control in one of my screen.In that it contains some quantity values.Based on the some condition i need to change color of the text.
Ex:In a row i have 2 fields 1)Quantity in Value.
2)indicator('X' or balnk)
If indiactor = 'X'.
text color = BLUE'
endif.
How can i acheive this functionality??
2008 Nov 01 8:31 AM
2008 Nov 01 8:33 AM
loop at screen.
if screen-name = 'quantity field'.
if indicator = 'x'
screen- color = 'blue '
endif.
endif.
modify screen.
endloop.
2008 Nov 01 8:38 AM
Hi....
while declaring the internal table for table control itself... the internal table should have a field for colour....
do a loop for your internal table with condition....
like
loop at <itab> into <wa> where <condition>
so now the work area <wa> will have the values of the condition satisfied.
now check the values in the <wa> and assign the values to it as
SCREEN-INTENSIFIED
modify your internal table transporting only the <colour fields>
endloop.
Hope this will help you.
Thanks & Regards
Raja
2008 Nov 20 10:16 AM
2008 Nov 20 10:19 AM
Hi Madan,
To best of my knowledge within a table control you only can get RED COLOR not any other colors.
i tried it erlier. I think there is no other colors provided by SAP.
regards
Ramchander Rao.Krishnamraju
2008 Nov 20 10:29 AM
If indiactor = 'X'.
LOOP AT SCREEN.
IF screen-name = 'ur screen name'
Screen-intensified = 'X'.
MODIFY screen.
endif.
ENDIF.
Hope this helps.