‎2008 Jan 17 9:09 AM
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
‎2008 Jan 17 9:25 AM
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
‎2008 Jan 17 9:22 AM
Hi ,
what ever you require is implemented in below SAP standarad program :
DEMO_DYNPRO_CHECK_RADIO .
Regards,
Gopi,
Reward points if helpfull.
‎2008 Jan 17 9:25 AM
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
‎2008 Jan 17 9:27 AM
‎2008 Jan 17 10:15 AM
‎2008 Jan 17 10:16 AM
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