05-10-2006 3:36 PM
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.
05-10-2006 3:39 PM
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
05-10-2006 3:39 PM
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
05-10-2006 3:39 PM
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
05-10-2006 3:45 PM
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