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: 

Graying out a screen field

Former Member
0 Kudos

how do i gray out a screen field (output only field) based on the sy-uname. I am using a screen exit so i do not have the option of displaying different screens based on sy-uname.

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

In the screen PBO you need to write this..

if sy-uname = 'USER01'.
loop at screen.

if screen-name = 'SCRFIELDNAME'.
screen-input = 0.
modify screen.
endif.

endloop.

endif.

Regards

vijay

3 REPLIES 3

former_member188685
Active Contributor
0 Kudos

In the screen PBO you need to write this..

if sy-uname = 'USER01'.
loop at screen.

if screen-name = 'SCRFIELDNAME'.
screen-input = 0.
modify screen.
endif.

endloop.

endif.

Regards

vijay

Former Member
0 Kudos

LOOP AT SCREEN.

IF SY-UNAME = 'XXX' AND SCREEN-NAME = XXXX'

SCREEN-INPUT = 0.

ENDIF.

MDOFIY SCREEN.

ENDLOOP.

Regards,

Ravi

Note : Please mark the helpful answers

former_member927251
Active Contributor
0 Kudos

Hi Sherry,

Check out the Demo program provided by SAP.

<b>DEMO_DYNPRO_MODIFY_SCREEN</b>

It has everything that you need to do with the screen dynamically.

<b>Please reward points to all the helpful answers and close the thread.</b>

Regards,

Amit Mishra