2008 Jun 12 7:30 AM
Hi Experts
I have 3 radio buttons in selection screen, I want to go to next scree if first radio button is clicked and to second screen if 2nd radio button is clicked and to third screen if third radio button is click.
pls help me out by saying how this can be done
Thanx in Advance
Regards
Rachel
2008 Jun 12 7:33 AM
you can code in at selection screen event.
if rd_1 = 'X'.
call screen 1.
elseif rd_2 = 'X'.
call screen 2.
else if rd_3 = 'X'.
call screen 3.
Hi Experts
I have 3 radio buttons in selection screen, I want to go to next scree if first radio button is clicked and to second screen if 2nd radio button is clicked and to third screen if third radio button is click.
pls help me out by saying how this can be done
Thanx in Advance
Regards
Rachel
2008 Jun 12 7:33 AM
you can code in at selection screen event.
if rd_1 = 'X'.
call screen 1.
elseif rd_2 = 'X'.
call screen 2.
else if rd_3 = 'X'.
call screen 3.
2008 Jun 12 8:10 AM
thanx for responding ...
i included like what u said, but its throwing me a runtime error, instead of taking me to next screen.
2008 Jun 12 7:33 AM
use this
AT SELECTION-SCREEN OUTPUT. event
if Radio1= 'X'
u can use call screen, leave to screen
endif.
Regards
priya
2008 Jun 12 7:33 AM
hi,
create a program with 3 radiobuttons.
then create a modulepool program with 3 screens say 200,300,400.
now in ur program do like this.
if radiobutton1 = 'x'.
call screen 200.
endif.
if radiobutton2 = 'x'.
call screen 300.
endif.if radiobutton3 = 'x'.
call screen 400.
endif.
reward if hlpful.
2008 Jun 12 7:34 AM
try this :
start of selection .
if r1 = 'X'.
Call screen 100.
elseif r2 = 'X'
call screen 200.
elseif r3 = 'X'.
call screen 300.
endif.
reward if usefull.
2008 Jun 12 7:35 AM
Hi,
u can use call screen in this regard
use this at selection screen event
if radio_button1='X'
call screen 1
and like this u can use n number of screens
2008 Jun 12 7:58 AM
Hi,
Follow the code. It will help you....
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS: RAD1 RADIOBUTTON GROUP RAD DEFAULT 'X',
RAD2 RADIOBUTTON GROUP RAD,
RAD3 RADIOBUTTON GROUP RAD.
SELECTION-SCREEN END OF BLOCK B1.
*AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
*
ENDLOOP.
START-OF-SELECTION.
IF RAD1 EQ 'X'.
CALL SCREEN 201.
ELSE.
IF RAD2 EQ 'X'.
CALL SCREEN 202.
ELSE.
CALL SCREEN 203.
ENDIF.
ENDIF.
&----
*& Module STATUS_0201 OUTPUT
&----
text
----
MODULE STATUS_0201 OUTPUT.
SET PF-STATUS 'STAT201'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0201 OUTPUT
&----
*& Module USER_COMMAND_0201 INPUT
&----
text
----
MODULE USER_COMMAND_0201 INPUT.
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0201 INPUT
&----
*& Module STATUS_0202 OUTPUT
&----
text
----
MODULE STATUS_0202 OUTPUT.
SET PF-STATUS 'STAT202'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0202 OUTPUT
&----
*& Module USER_COMMAND_0202 INPUT
&----
text
----
MODULE USER_COMMAND_0202 INPUT.
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0202 INPUT
&----
*& Module STATUS_0203 OUTPUT
&----
text
----
MODULE STATUS_0203 OUTPUT.
SET PF-STATUS 'STAT203'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0203 OUTPUT
&----
*& Module USER_COMMAND_0203 INPUT
&----
text
----
MODULE USER_COMMAND_0203 INPUT.
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0203 INPUT
2008 Jun 13 8:27 AM
2008 Jun 12 8:13 AM
Hi,
in selection screen u have 3 radio button for eg r1 r2 r3 and u have 3 screen 100 200 300....
if r1 = 'X'.
call screen = '100'.
elseif r2 = 'x'.
call screen = '200'.
elseif.
call screen = ''300..
elseif.
if sy-subrc <> 0.
exit.
endif.
regard
dhaya..
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |