‎2009 Jul 06 8:19 PM
Hi,
I have 4 input fields on selection screen.
if I select field1, f2, f3 and f4 should be disabled and vice versa. I should allow user to enter value for only 1 input field.
Thanks
‎2009 Jul 06 8:27 PM
‎2009 Jul 06 8:29 PM
Hi ,
By creating the radio Buttons you can acheive this..
try this way..
PARAMETERS: p_rb1 RADIOBUTTON GROUP gr1 USER-COMMAND cde DEFAULT 'X',
p_rb2 RADIOBUTTON GROUP gr1 ,
p_rb3 RADIOBUTTON GROUP gr1 ,
p_rb4 RADIOBUTTON GROUP gr1 .
PARAMETERS: field1 mod-id id1,
field2 mod-id id2,
field3 mod-id id3,
field4 mod-id id4.
at selection-screen output.
if p_rb1 = 'X'.
loop at screen.
disable id2 id3 id4.
Endif.
endif.
"do the same for if p_rb2.p_rb3.p_rb4.
prabhudas
Edited by: Prabhu Das on Jul 7, 2009 12:59 AM
‎2009 Jul 06 8:34 PM
Hi
u need to make it inside of AT SELECTION-SCREEN OUTPUT. Try to do sth like this:
PARAMETERS: p_pfile TYPE rlgrap-filename MODIF ID ccc,
p_afile TYPE rlgrap-filename MODIF ID aaa.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CASE screen-group1.
WHEN 'CCC'.
screen-input = 1.
screen-invisible = 0.
MODIFY SCREEN.
WHEN 'AAA'.
screen-input = 0.
screen-invisible = 1.
MODIFY SCREEN.
ENDCASE.
ENDLOOP.
probably u will need to add extra code, but that is how to modify the screen.
Regards