Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Text color

Former Member
0 Kudos

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??

6 REPLIES 6

Former Member
0 Kudos

Hi,

Check this link...

Regards

Debarshi

Former Member
0 Kudos

loop at screen.

if screen-name = 'quantity field'.

if indicator = 'x'

screen- color = 'blue '

endif.

endif.

modify screen.

endloop.

raja_narayanan2
Active Participant
0 Kudos

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

Former Member
0 Kudos

wrong post

former_member1245113
Active Contributor
0 Kudos

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

Former Member
0 Kudos

If indiactor = 'X'.

LOOP AT SCREEN.

IF screen-name = 'ur screen name'

Screen-intensified = 'X'.

MODIFY screen.

endif.

ENDIF.

Hope this helps.