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: 

can nay one tel me this

Former Member
0 Kudos

hi,

i have created a screen by using selection-screen command,now the problem is i need one input field as output only filed how can i make that

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi, as my understanding, you need a read-only field on your select screen, right?

Try following code:

PARAMETER: FIELD TYPE CHAR10 DEFAULT 'HELLO'.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'FIELD'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Hope it will be helpful

2 REPLIES 2

Former Member
0 Kudos

Hi, as my understanding, you need a read-only field on your select screen, right?

Try following code:

PARAMETER: FIELD TYPE CHAR10 DEFAULT 'HELLO'.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'FIELD'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Hope it will be helpful

Former Member
0 Kudos

Modify Selection Screen(LOOP AT SCREEN)

Example code for for modifying Selection screen from within ABAP code:

************************************************************************

*AT SELECTION-SCREEN OUTPUT.

AT SELECTION-SCREEN OUTPUT.

loop at screen.

if screen-name eq 'PNPS$MSL'.

screen-active = 0.

endif.

modify screen.

endloop.

Seee this link too.

http://www.sapdevelopment.co.uk/reporting/selscr/selscrhome.htm

Hope this helps.