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: 

How to make a field in selection screen as READ_ONLY !!

Former Member
0 Kudos

Hi,

How to make a field in selection screen as READ_ONLY !!.

Thanks,

Senthil

1 ACCEPTED SOLUTION

Former Member
0 Kudos

This is the code you need to have in your program.


AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
  IF SCREEN-NAME = 'MYSELFLD'.
    SCREEN-INPUT = 0.
    MODIFY-SCREEN.
  ENDIF.
ENDLOOP.

2 REPLIES 2

Former Member
0 Kudos

This is the code you need to have in your program.


AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
  IF SCREEN-NAME = 'MYSELFLD'.
    SCREEN-INPUT = 0.
    MODIFY-SCREEN.
  ENDIF.
ENDLOOP.

Former Member
0 Kudos

in the selection screen ouput event write below code

loop at screen.

if screen-name = <field names>

screen-ouput = '1'.

modify screen.

endif.

endloop.