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

module pool

Former Member
0 Likes
555

In module pool,i have two radio buttons and one text box..

If i click one radio it should show first in the text box and if i clik the second one,it want to show second..

I will not press any button after clicking on the radio button.

Is it possible to do this

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
533

Hi,

It is possible to do.

Suppose for R1 and R2 are two radibuttons.

And P1 & P2 are two pushbuttons. Then assign group to

these pushbutton as G1 and G2.

Then loop at screen.

and check if R1 = 'X'.

Then make P1 of G1 visible

and P2 of G2 invisible.

vice versa for R2 = 'X'.

I hope I am clear to you.

Any doubt or more explaination revert back.

Do Reward

Madhura

5 REPLIES 5
Read only

Former Member
0 Likes
533

Hi ,

what ever you require is implemented in below SAP standarad program :

DEMO_DYNPRO_CHECK_RADIO .

Regards,

Gopi,

Reward points if helpfull.

Read only

Former Member
0 Likes
534

Hi,

It is possible to do.

Suppose for R1 and R2 are two radibuttons.

And P1 & P2 are two pushbuttons. Then assign group to

these pushbutton as G1 and G2.

Then loop at screen.

and check if R1 = 'X'.

Then make P1 of G1 visible

and P2 of G2 invisible.

vice versa for R2 = 'X'.

I hope I am clear to you.

Any doubt or more explaination revert back.

Do Reward

Madhura

Read only

0 Likes
533

I dnt want to add buttons..Only thing i hve 2 radio buttons

Read only

Former Member
0 Likes
533

Thanks

Read only

Former Member
0 Likes
533

DATA: radio1(1) TYPE c, radio2(1) TYPE c, field1(10) TYPE c, field2(10) TYPE c.

DATA: ok_code TYPE sy-ucomm,

save_ok TYPE sy-ucomm.

CALL SCREEN 3000.

MODULE user_command_3000 INPUT.

save_ok = ok_code.

CLEAR ok_code.

CASE save_ok.

WHEN 'RADIO'.

IF radio1 = 'X'.

field1 = 'first'.

CLEAR: field2.

ELSEIF radio2 = 'X'.

field2 = 'second'.

CLEAR: field1, field3.

ENDIF.

WHEN 'CANCEL'.

LEAVE PROGRAM.

ENDCASE.

ENDMODULE.

Regards,

kamalapriya