Application Development and Automation 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: 
Read only

Text color

Former Member
0 Likes
1,141

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
Read only

Former Member
0 Likes
1,083

Hi,

Check this link...

Regards

Debarshi

Read only

Former Member
0 Likes
1,083

loop at screen.

if screen-name = 'quantity field'.

if indicator = 'x'

screen- color = 'blue '

endif.

endif.

modify screen.

endloop.

Read only

raja_narayanan2
Active Participant
0 Likes
1,083

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

Read only

Former Member
0 Likes
1,083

wrong post

Read only

Former Member
0 Likes
1,083

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

Read only

Former Member
0 Likes
1,083

If indiactor = 'X'.

LOOP AT SCREEN.

IF screen-name = 'ur screen name'

Screen-intensified = 'X'.

MODIFY screen.

endif.

ENDIF.

Hope this helps.