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

Screen programming with radio buttons for two different programs.

0 Likes
1,046

Hi Experts,

We have a requirement in which three programs needs to be included in the one program Z_global.

in the one program Z_global, we should have two radio buttons , by clicking one radio button, program

ZBW_Cube program should be popped up and by clicking another program ZBW_infoset should be popped up.

can we club all these programs in one program. ZBW_CUBE and ZBW_Infoset has there own screens and susequent different flow of logic.

Thanks in advance.

Raj

5 REPLIES 5
Read only

sridhar_meesala
Active Contributor
0 Likes
811

Hi,

To the extent I understood you want a program which has a screen with two radio buttons and clicking on either of the buttons the corresponding screens have to be called. If it is so create a program with 3 screens 100, 101 and 102. In the first screen place two radio buttons. Now call screen 101 for cube when one radio button is selected and 102 when the second button is selected. The logic for them can be controlled in the flow logic of the respective screens.

Thanks,

Sri.

Read only

0 Likes
811

HI sri,

Thanks for your quick response, i think for screen 101 and 102 we need to assign screens with t-cods then all those t-codes we need to have authorisations.

we don't want to do by t-codes because of authorisation issues. would you please provide code sample so that i would be able

to try it.if you are suggesting other option.

Thanks in advance.

Read only

0 Likes
811

Hi,

You do not need any transactions to call the screens 101 and 102. In the flow logic of screen 100 in the PBO write the following. Befoer that group the radio buttons and assign a function code.

CASE sy-ucomm.
 WHEN 'F_RB'.
  IF R1 = 'X'.
   CALL SCREEN 101.
  ELSEIF R2 = 'X'.
   CALL SCREEN 102.
  ENDIF.
ENDCASE.

Thanks,

Sri.

Read only

0 Likes
811

In the below program

CASE sy-ucomm.

WHEN 'F_RB'.

IF R1 = 'X'.

CALL SCREEN 101.

ELSEIF R2 = 'X'.

CALL SCREEN 102.

ENDIF.

ENDCASE.

what is sy-ucomm. and what is 'F_RB'. can i copy my another two program in the same screen.

under SCREEN 101 and SCREEN102

Read only

0 Likes
811

Hi,

SY-UCOMM IS A system variable which contains the user action like button click or radiobutton selection or check box selection. Here F_RB is the function that is set to the radiobutton group. We can do this by going into the screen painter-> select the radiobutton and double click-> enter the function code in the specified field in the attributes window. So when ever the radio button is selected then the sy-ucomm becomes F_RB.

Yes you can. Similarly to my early post create radio buttons in 101 and call the other 2 screens.

Thanks,

Sri.