selection-screen: begin of block blk1
with frame title text-020.
parameter: R1 radiobutton group G1 user-command ABC default 'X',
R2 radiobutton group G1 ,
R3 radiobutton group G1.
selection-screen end of block blk1.
selection-screen: begin of block blk2
with frame title text-020.
select-options: s_reqmai for zcomd_skftable-zreqemail NO INTERVALS
no-extension modif id XYZ .
select-options: s_reqdep for zcomd_skftable-zreqdept NO INTERVALS
no-extension modif id XYZ .
select-options: s_date for sy-datum no intervals default sy-datum no-extension modif id ABC.
select-options: s_appnam for zcomd_skftable-zapprname no intervals no-extension modif id XYZ.
select-options: s_appdes for zcomd_skftable-zapprdesi no intervals no-extension.
select-options: s_appno for zcomd_skftable-zreqno no intervals no-extension modif id ABC.
select-options: s_reqby for zcomd_skftable-zreqby no intervals no-extension modif id XYZ .
selection-screen end of block blk2.
AT SELECTION-SCREEN output.
if R1 = 'X'.
loop at screen.
if screen-name = 'S_APPNO-LOW'.
screen-input = 0.
modify screen.
endif.
endloop.
else.
loop at screen.
if screen-name = 'S_APPNO-LOW'.
screen-input = 1.
modify screen.
endif.
endloop.
endif.
There are 3 Radio Buttons and few Input Boxes in the selection screen.
The First radio Button will be selected by Default.
At the same time the Field S_APPNO will be disabled if the First radio is active.
If User Selects second or Third Radio Button, the system will make the field S_APPNO into Active mode.
But I want to make the field S_APPNO as even MANDATORY ..
For this purpose, I coded as follows..
select-options: s_appno for zcomd_skftable-zreqno no intervals no-extension modif id ABC obligatory.
And rest of the lines as mentioned above..
IN this case, when user clicks second Radio button, the field s_appno will become acive and even mandatory
BUT, if user again selects first Radio Button, system will popup error like Make an entry in Mandatory field
Hence how to make it possible to avoid this error and make the s_appno again into DIISPLAY mode when user shifts from second or third radio button to First radio Button ???
Can anyone give me the exact code for this requirement...????