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

Radiobutton

Former Member
0 Likes
663

Hi Experts,

This is Prabhakararao

I have a small problem.

I had taken two Selection-screens. One having 3 Radiobuttons and second having 2 input fileds. Whenever i executes a program if i click 1st radiobutton on first selection screen then 1st field of the second selection screen will be enable and the other field is disable.

if i click second radiobutton then 2nd field is enable and first one is disable. if i click 3rd radiobutton then two of the fields are enable.

pls.. i need the necessary code urgent....

pls. send the answer to my mailid: prabhu_npr80@yahoo.co.in

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
614

Hi prabhakara,

1. There are two things to know:

a) detecting that radio button has been clicked

b) making invisible fields on screen

2. DEMO_SEL_SCREEN_USER_COMMAND

just check out the standard sap demo program

to know of (a)

3. for (b) u shall have to use

Loop at screen.

endloop.

4. Moreover, use this loop at

AT selection-screen OUTPUT.

5. At other events, it won't work.

Hope it helps.

regards,

amit m.

5 REPLIES 5
Read only

Former Member
0 Likes
614

Hi,

Welcome to SDN!!!!!!!!!!

You can do this ...

At selection-screen.

loop at screen.

if rad1 = 'X'.

if screen-name = 'your field'.

screen-input = '0'.

modify screen.

endif.

endif.

endloop.

Try this.

Thanks.

if this helps you reward points and close the thread.

Message was edited by: Deepak333 k

Message was edited by: Deepak333 k

Read only

Former Member
0 Likes
615

Hi prabhakara,

1. There are two things to know:

a) detecting that radio button has been clicked

b) making invisible fields on screen

2. DEMO_SEL_SCREEN_USER_COMMAND

just check out the standard sap demo program

to know of (a)

3. for (b) u shall have to use

Loop at screen.

endloop.

4. Moreover, use this loop at

AT selection-screen OUTPUT.

5. At other events, it won't work.

Hope it helps.

regards,

amit m.

Read only

Former Member
0 Likes
614

Hi

Parameters: r1 radiobutton group g1 user-command 'ABC',

r2 radiobutton group g1 ,

r3 radiobutton group g1 .

at selection-screen output .

if r1 = 'X'.

loop at screen.

if screen-field = 'FIELD1'.

screen-input = '1'.

clear FIELD1.

endif.

if screen-field = 'FIELD2'.

screen-input = '0'.

clear FIELD2.

endif.

if screen-field = 'FIELD3'.

screen-input = '0'.

clear FIELD2.

endif.

modify screen.

endloop.

Read only

0 Likes
614

please search the forum before posting a question. this has been discussed many times .

here is a sample thread

Regards

Raja

Read only

Former Member
0 Likes
614

Hi I hope you got the solution....

Please close the thread..

regards

vijay