2006 Aug 22 3:11 PM
hi all,
i have a selection screen on which there are
2 radio buttons and 4 checkboxes.
depending on the radio button chosen
all the check boxes should be enabled (should allow to
select) or disabled (should not allow to select)
how can it be done??
regards,
Tarang
2006 Aug 22 3:16 PM
Yes,
paramters: p_pdm RADIOBUTTON GROUP grp1 USER-COMMAND pntf
p_pd2 radiobutton group grp1.
parameters: p_ch1 as checkbox,
p_ch2 as checkbox,
p_ch3 as checkbox modif id gp1,
p_ch4 as checkbox.
At selection-screen output.
loop at screen.
if screen-group1 = 'GP1'.
screen-input = 0.
modify screen.
endif.
endloop.
regards,
Naimesh
hi all,
i have a selection screen on which there are
2 radio buttons and 4 checkboxes.
depending on the radio button chosen
all the check boxes should be enabled (should allow to
select) or disabled (should not allow to select)
how can it be done??
regards,
Tarang
2006 Aug 22 3:15 PM
Hi tarang,
follow this logic:
at selection screen output.
if p_rb1 = 'X'.
loop at screen.
if screen-name = <name of the check box>.
screen-input = 0.
modify screen.
endif.
endloop.
endif.
if p_rb2 = 'X'.
loop at screen.
if screen-name = <name of the check box>.
screen-input = 1.
modify screen.
endif.
endloop.
endif.
Regards,
ravi
2006 Aug 22 3:16 PM
Here is a example
http://help.sap.com/saphelp_nw04/helpdata/en/79/34a23dd9b511d1950e0000e8353423/content.htm
Regards,
Ravi
note : Please mark the helpful answers
2006 Aug 22 3:16 PM
Yes,
paramters: p_pdm RADIOBUTTON GROUP grp1 USER-COMMAND pntf
p_pd2 radiobutton group grp1.
parameters: p_ch1 as checkbox,
p_ch2 as checkbox,
p_ch3 as checkbox modif id gp1,
p_ch4 as checkbox.
At selection-screen output.
loop at screen.
if screen-group1 = 'GP1'.
screen-input = 0.
modify screen.
endif.
endloop.
regards,
Naimesh
2006 Aug 22 3:19 PM
hi,
When second radiobutton is clicked, all the checkboxes are ready for input, when first radiobutton is clicked, the checkboxes are inactive.
parameters : p_rad1 radiobutton group g1 user-command ABCD default 'X',
p_rad2 radiobutton group g1.
parameters : p_chk1 as checkbox modif id ABC,
p_chk2 as checkbox modif id ABC,
p_chk3 as checkbox modif id ABC,
p_chk4 as checkbox modif id ABC.
data: v_flag value 'A'.
at selection-screen output.
if v_flag = 'A'.
loop at screen.
if screen-group1 = 'ABC'.
screen-input = 0.
modify screen.
endif.
endloop.
elseif v_flag = 'B'.
loop at screen.
if screen-group1 = 'ABC'.
screen-input = 1.
modify screen.
endif.
endloop.
endif.
at selection-screen.
case sy-ucomm.
when 'ABCD'.
if p_rad1 = 'X'.
v_flag = 'A'.
else.
v_flag = 'B'.
endif.
endcase.Regards,
Sailaja.
2006 Aug 22 3:27 PM
2006 Aug 22 3:41 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |