‎2006 Nov 01 1:22 AM
dear all,i wish to control my group of radiobuttons according to a checkbox. if the check box is checked,den the radiobutton only enable..else it wl be disable.i try to use the user-command. But it seems tat it is giving me error
it seems the compile doesnt recognise the term user-command. Is it got2do wif the version thing? Thank you
‎2006 Nov 01 1:26 AM
parameters: chk as checkbox user-command ucom.
it is giving me error with :
Unable to interpret "ucom". possible cause of
‎2006 Nov 01 1:35 AM
The statement works perfectly fine.
Which version are you on?
Also, declare SSCRFIELDS in the tables statement.
Try creating a new program and just give this line. Does it still give error?
‎2006 Nov 01 1:42 AM
my version kinda old d..i think 4.0 or smtg like dat..i juz join this company though:P
i try to declare in a new program,it oso giving me the same error
‎2006 Nov 01 1:59 AM
HI Joan
Please check with extension <b>MODIF-ID</b>. I guess this should be existing in your system.
Kind Regards
Eswar
‎2006 Nov 01 2:29 AM
yea Eswar, the modif-id exist in my system,but it aint giving me any response if i change the user-command to modif id
‎2006 Nov 01 2:40 AM
Gopi Narendra's code is correct.
in my system,it runs correctly.
i don not know why in your system it runs wrong.
‎2006 Nov 01 5:10 AM
Hi Joan
Please try with the below code:
data: l_active type i.
parameters: p_chk as checkbox modif id ABC.
parameters: p_rad1 radiobutton group rad1 default 'X',
p_rad2 radiobutton group rad1.
at selection-screen output.
if not p_chk is initial.
l_active = '1'.
else.
l_active = '0'.
endif.
loop at screen.
if screen-name cs 'P_RAD'.
screen-active = l_active.
modify screen.
endif.
endloop.Problem with this code is after making changes to
checkbox, we have hit ENTER to trigger the event. This
is the problem with earlier versions. As far as i
remember, i guess there are no other provisions for
automatic controlling in older versions.
Kind Regards
Eswar
‎2006 Nov 01 5:25 AM
hi Eswar,
it works,but juz like u said,need to hit ENTER to trigger the event.Thanks anyway. ^^
‎2006 Nov 01 5:25 AM
hi Eswar,
it works,but juz like u said,need to hit ENTER to trigger the event.Thanks anyway. ^^
‎2006 Nov 01 5:26 AM
hi Eswar,
it works,but juz like u said,need to hit ENTER to trigger the event.Thanks anyway. ^^
‎2006 Nov 01 5:26 AM
hi Eswar,
it works,but juz like u said,need to hit ENTER to trigger the event.Thanks anyway. ^^
‎2006 Nov 01 1:41 AM
<b>Try this sample Code which works according to ur requirement</b>
selection-screen : begin of block B1 with frame title TEXT-001.
parameters : P_DS as checkbox user-command U1.
parameter : P_01 radiobutton group R1.
parameter : P_02 radiobutton group R1.
parameter : P_03 radiobutton group R1.
parameter : P_04 radiobutton group R1.
selection-screen : end of block B1.
at selection-screen output.
if P_DS <b><></b> 'X'.
loop at screen.
if SCREEN-NAME = 'P_01' or
SCREEN-NAME = 'P_02' or
SCREEN-NAME = 'P_03' or
SCREEN-NAME = 'P_04'.
SCREEN-INPUT = 0.
modify screen.
endif.
endloop.
endif.
Regards
- Gopi
Message was edited by: Gopi Narendra
‎2006 Nov 01 1:49 AM
gopi,i try ur segment of code..bt it still giving me the same error..unable to interpret U1.
‎2006 Nov 01 2:43 AM
Gopi Narendra's code is correct.
it runs correctly in my system.
‎2006 Nov 01 2:54 AM
thx julei,I guess it's d problem of d version thingy..
sigh..
thx everyone
‎2006 Nov 01 5:26 AM
hi Eswar,
it works,but juz like u said,need to hit ENTER to trigger the event.Thanks anyway. ^^