Skip to Content
0
Former Member
Aug 30, 2008 at 04:56 AM

Modify Screen

27 Views

Hi All,

I am facing a problem in screen. I add some fields to screen.

Loop at Screen.
if sy-tcode = 'PB30' AND ( SY-UCOMM = 'DIS' ) .

IF SCREEN-NAME = 'P9001-WERKS'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
IF SCREEN-NAME = 'P9001-PSAREA1'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
IF SCREEN-NAME = 'P9001-JDATE'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
IF SCREEN-NAME = 'P9001-DEPRT'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.

ENDIF.
ENDLOOP.

Now i want to grey these fields when the sy-ucomm eq Display. For the first three fields it's working fine but for the fourth field P9001-DEPRT it is not working. What could be the problem, Please Help me.

Thanks in advance.

AK