selection screen help
please help me solving the follwoing querrys
1. how to disable the selection screen in run time
for ex : if u enter the first field then all the remaining fields should be
disabled.
2.in the selection screen Storage type range can work only from L1 to L3 and d1 to d3.
Means here we have to check for 2 ranges one is L1 to L3 and d1 to d3.
how to code for this..?
i got these problems in my current report. please help me out
thanks in advance
Hi Kum,
The Selection Screen can be manipulated with the AT SELECTION SCREEN OUTPUT event block . Example Code follows showing the enabling or disabling a field (LOCALFIL) on the condition of a Radiobutton (SHOW_LOC). Notice however the USER-COMMAND UCOMM addition to PARAMETERS statement.
* ==========================================
* SELECTION SCREEN DEFAULT
* ==========================================
PARAMETERS : SHOW_INP RADIOBUTTON GROUP GRP1 DEFAULT 'X'
USER-COMMAND UCOMM .
PARAMETERS : SHOW_LOC RADIOBUTTON GROUP GRP1 .
PARAMETERS : CONV_LOC RADIOBUTTON GROUP GRP1 .
PARAMETERS : LOCALFIL LIKE RLGRAP-FILENAME OBLIGATORY
DEFAULT 'C:\TEST\MARA.txt' .
* ========================================
* AT SELECTION SCREEN OUTPUT
* ========================================
AT SELECTION-SCREEN OUTPUT .
LOOP AT SCREEN .
IF SCREEN-NAME = 'LOCALFIL' .
IF SHOW_LOC = 'X' OR CONV_LOC = 'X' .
SCREEN-INPUT = 1 .
ELSE .
SCREEN-INPUT = 0 .
ENDIF .
MODIFY SCREEN .
ENDIF .
ENDLOOP .
Another Example to Check both low and high field of a select option follows where the AT SELECTION-SCREEN event block is used .
* ========================================
SELECT-OPTIONS : TYPEABSE for p2001-subty NO INTERVALS OBLIGATORY .
* ========================================
AT SELECTION-SCREEN .
IF TYPEABSE-high IS INITIAL .
MESSAGE e398(00) WITH 'Give the high value' .
ENDIF .
Hope these example help .
Good luck
hi thanks alot for reply.
i got one solution but in another probelm..
we have to check for two ranges in one field.
eg : storage type range can work only from l1 to l3 and d1 to d3 and for remaining it should throw an error message
how to do that ..pls let me know
thanks