07-30-2005 12:01 PM
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
07-30-2005 12:19 PM
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
07-30-2005 12:19 PM
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
08-01-2005 4:54 AM
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.