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: 

Changing color of screen text

Former Member
4,874

I need to change the color of a paramater text to blue.

So I am going

Loop at screen. 
if screen-name = something
screen-color = BLUE
endif
modify screen
endloop.

What is the code for BLUE?

1 ACCEPTED SOLUTION

Former Member
0 Kudos
777
PARAMETERS: xlbs TYPE xfeld AS CHECKBOX MODIF ID sc1.

LOOP AT SCREEN.
    IF screen-group1 = 'SC1'.
      screen-intensified = '1'.
      screen-display_3d = '1'.
      MODIFY SCREEN.
      EXIT.
    ENDIF.
  ENDLOOP.

This is my code and it does not seem to work. I tried intensified and even screen-display.

12 REPLIES 12

Former Member
0 Kudos
777

hi,

Change screen-color = BLUE

to screen-intensive = 1.

Regards,

Subramanian

Former Member
0 Kudos
777

That did not work.

0 Kudos
777

chk this

PARAMETERS: test1(10) TYPE c MODIF ID sc1,

test2(10) TYPE c MODIF ID sc2,

test3(10) TYPE c MODIF ID sc1,

test4(10) TYPE c MODIF ID sc2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 = 'SC1'.

screen-intensified = '1'.

MODIFY SCREEN.

CONTINUE.

ENDIF.

IF screen-group1 = 'SC2'.

screen-intensified = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

0 Kudos
777

sorry...i missed the stmt.

Do you have a modif id for the parameter/select-options.

loop at screen.

IF screen-group1 = 'XYZ'.

screen-intensified = '1'.

MODIFY SCREEN.

ENDIF.

endloop.

regards,

Subramanian

Former Member
0 Kudos
778
PARAMETERS: xlbs TYPE xfeld AS CHECKBOX MODIF ID sc1.

LOOP AT SCREEN.
    IF screen-group1 = 'SC1'.
      screen-intensified = '1'.
      screen-display_3d = '1'.
      MODIFY SCREEN.
      EXIT.
    ENDIF.
  ENDLOOP.

This is my code and it does not seem to work. I tried intensified and even screen-display.

0 Kudos
777

Hi,

Which is the event you are writing it in:

it should be AT SELECTION-SCREEN OUTPUT.

Regards,

Subramanina

0 Kudos
777

try

LOOP AT SCREEN.

IF screen-group1 = 'SC1'.

screen-intensified = ' 0'.

screen-display_3d = ' 0'.

MODIFY SCREEN.

EXIT.

ENDIF.

ENDLOOP.

Rakesh

0 Kudos
777

Yes At Selection Screen Output

0 Kudos
777

I tried this it does not work. The objective is to make this parameter stand out, doesnt matter how it is done. Could be bold, or different color

try

LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-intensified = ' 0'.
screen-display_3d = ' 0'.
MODIFY SCREEN.
EXIT.
ENDIF.
ENDLOOP.

Rakesh

0 Kudos
777

Try this

LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-intensified = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

0 Kudos
777

Hi Megan,

I am not sure if we can change the attribute of the selection screen text.

If you want to make it stand out I would do following things.

Wirte selection-screen SKIP to give gap before and after that parameter to distinguish from others.

Use Comment in in start of LINE and END OF LINE syntax. This comment will allow you to put more charecters that usual selection text length.

Here with increase charecter you can add stars or special symbols or use CAPS use lines etc. to distinguish this parameter.

You can put lines also before and after the parameter.

Eg:

-


||>> SALES ORDER <<||

-


This might help if every other method fails

thnx,

ags.

Edited by: Agasti Kale on Jun 19, 2008 11:26 PM

former_member598013
Active Contributor
0 Kudos
777

Hi Megan,

Try out with the below sample code. I am sure it will work.


      loop at screen.
        case screen-name.
          when 'P_TRANS'.
            screen-invisible = 1.
            screen-input = 0.
            modify screen.
          when 'P_MID1'.
            screen-invisible = 1.
            screen-input = 0.
            modify screen.
          when 'P_MID2'.
            screen-invisible = 1.
            screen-input = 0.
            modify screen.
        endcase.
      endloop.

<removed by moderator>

Edited by: Jan Stallkamp on Jun 20, 2008 12:34 AM