Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

need help wif user-command

Former Member
0 Likes
1,842

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

16 REPLIES 16
Read only

Former Member
0 Likes
1,802

parameters: chk as checkbox user-command ucom.

it is giving me error with :

Unable to interpret "ucom". possible cause of

Read only

0 Likes
1,802

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?

Read only

0 Likes
1,802

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

Read only

0 Likes
1,802

HI Joan

Please check with extension <b>MODIF-ID</b>. I guess this should be existing in your system.

Kind Regards

Eswar

Read only

0 Likes
1,802

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

Read only

0 Likes
1,802

Gopi Narendra's code is correct.

in my system,it runs correctly.

i don not know why in your system it runs wrong.

Read only

0 Likes
1,802

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

Read only

0 Likes
1,802

hi Eswar,

it works,but juz like u said,need to hit ENTER to trigger the event.Thanks anyway. ^^

Read only

0 Likes
1,802

hi Eswar,

it works,but juz like u said,need to hit ENTER to trigger the event.Thanks anyway. ^^

Read only

0 Likes
1,802

hi Eswar,

it works,but juz like u said,need to hit ENTER to trigger the event.Thanks anyway. ^^

Read only

0 Likes
1,802

hi Eswar,

it works,but juz like u said,need to hit ENTER to trigger the event.Thanks anyway. ^^

Read only

gopi_narendra
Active Contributor
0 Likes
1,802

<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

Read only

0 Likes
1,802

gopi,i try ur segment of code..bt it still giving me the same error..unable to interpret U1.

Read only

Former Member
0 Likes
1,802

Gopi Narendra's code is correct.

it runs correctly in my system.

Read only

0 Likes
1,802

thx julei,I guess it's d problem of d version thingy..

sigh..

thx everyone

Read only

Former Member
0 Likes
1,802

hi Eswar,

it works,but juz like u said,need to hit ENTER to trigger the event.Thanks anyway. ^^