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

Push Button Text

Former Member
0 Likes
841

Hi All,

Is it possible that the text on a push button is displayed in RED ?

Please let me know about this.

Regards,

Usha

7 REPLIES 7
Read only

former_member199581
Active Participant
0 Likes
740

Set up the field COLOR in structure screen:

At the at selection-screen output event, try this:

LOOP AT screen.

IF screen-name = 'YOUR_PBUTTON'.

screen-color = 5. "COL_NEGATIVE

MODIFY screen.

ENDIF.

ENDLOOP.

Hope this helps.

Roby.

Read only

0 Likes
740

Just some modification to robertos Code

screen-color = 'C510'.

Read only

0 Likes
740

Thank you Roberto and Chandrashekar.

But, this option is fine to display the text in the text field. I have to display the text on the push button in red. Also, screen-color is an integer field. It cannot be set with the value C510.

Regards,

Usha

Read only

Former Member
0 Likes
740

Hi Usha,

It seems its not possible, there is no such option to dispaly the text in the Red color.

Regards,

Satya

Read only

Former Member
0 Likes
740

hi,

try this out.... it wil work

LOOP AT screen.

IF screen-name = 'PushButton'.

screen-color = 5.

MODIFY screen.

ENDIF.

ENDLOOP.

Read only

Former Member
0 Likes
740

Hello Usha,

I think it is not possible. There is no such coloring option in SAP

Vasanth

Read only

Former Member
0 Likes
740

Hi ,

Such type of request is not possible in sap .