Application Development 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: 

Tabstrip : how to switch to a tab from a button in an other tab

Former Member
0 Kudos
1,121

Hello everybody,

I created a screen with a tabstrip 'TABSTRIP' (screen '0100' ) containing 2 tabs ('TAB1' in subscreen '0110' and 'TAB2' in subscreen '0120' ).

I would like to do the following thing :

- I click on a radiobutton positionned in the subscreen '0110'

- I want to switch to the subscreen '0120'

In the 'PROCESS ON VALUE-REQUEST' of subscreen '0110', I have implemented the following code :

tabstrip-activetab = '0120'.

It is correctly executed, but neither the PBO nor the PAI of the main screen 0100 are executed, so I do not switch to '0120'.

Do you have an idea to make possible what I want ?

Thak you for your help !

Here is my code for the main screen 0100 :

PROCESS BEFORE OUTPUT.
  MODULE status_0100.
  CALL SUBSCREEN: TAB1    INCLUDING SY-REPID '0110',
                  TAB2    INCLUDING SY-REPID '0120'.


PROCESS AFTER INPUT.
  CALL SUBSCREEN: TAB1,
                  TAB2.
  MODULE user_command_0100.

MODULE user_command_0100 INPUT.
  CASE sy-ucomm.
    WHEN 'TAB1'.
      tabstrip-activetab = 'TAB1'.
    WHEN 'TAB21'.
      tabstrip-activetab = 'TAB2'.
  ENDCASE.

  CLEAR sy-ucomm.

ENDMODULE.                 " user_command_0100  INPUT

3 REPLIES 3

former_member1245113
Active Contributor
149

Hi Jackson,

Grand Welcome to SDN/SCN

Check this thread to group Radio Buttons

Process on Value Request is only for F4 Help purpose it neither Calls PBO nor PAI

But you need to group the Radio Buttons in Screen Painter and Assign a Function Code to it
MODULE user_command_0100 INPUT. " This absolutely Correct
if r1 = 'X'.
" You can call the wanted TabStrip
tabstrip-activetab = 'TAB1'. " Or TAB2
endif.

" Rest below is Perfect
  CASE sy-ucomm.
    WHEN 'TAB1'.
      tabstrip-activetab = 'TAB1'.
    WHEN 'TAB21'.
      tabstrip-activetab = 'TAB2'.
  ENDCASE.
 
  CLEAR sy-ucomm.
 
ENDMODULE.                 " user_command_0100  INPUT

Cheerz

Ram

0 Kudos
149

Hello Ramchander,

Thank you for your welcome !

I am sorry, I have made a mistake : I wanted to say "Matchcode", not "Radiobutton".

So my problem is in fact :

I would like to do the following thing :

- I click on a matchcode positionned in the subscreen '0110'

- I want to switch to the subscreen '0120'

Do you have any solution ?

Thanks for your help.

0 Kudos
149

Hello,

As already mentioned, when you do an F4, your Process on Value Request is triggered. You will not be able to switch between subscreens.