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

TABBED BLOCK in TABBED BLOCK

Former Member
0 Likes
2,182

Hi All,

I have selection screen with tabbed block, that includes two tabs (TAB1,TAB2) and would like to have in second tab (TAB2) with tabbed block, that includes another two tabs (TAB3.TAB4).

I wanted ask, why is displayed second tabbed block (tabstrip2) two times?

----------------------------------------------------------------------------------------------------------------------------------

REPORT test_mza.

* UTab 1

SELECTION-SCREEN BEGIN OF SCREEN 1002 AS SUBSCREEN NESTING LEVEL 2.

SELECTION-SCREEN BEGIN OF BLOCK a02 WITH FRAME  TITLE text-a02.

PARAMETERS: p_flag2 AS CHECKBOX .

SELECTION-SCREEN END OF BLOCK a02.

SELECTION-SCREEN END OF SCREEN 1002.

* UTab 2

SELECTION-SCREEN BEGIN OF SCREEN 1003 AS SUBSCREEN NESTING LEVEL 2.

SELECTION-SCREEN BEGIN OF BLOCK a03 WITH FRAME  TITLE text-a03.

PARAMETERS: p_flag3 AS CHECKBOX .

SELECTION-SCREEN END OF BLOCK a03.

SELECTION-SCREEN END OF SCREEN 1003.

*Tab 2

SELECTION-SCREEN:

   BEGIN OF TABBED BLOCK tabstrip2 FOR 5 LINES,

   TAB (30) t_2 USER-COMMAND t_2 DEFAULT SCREEN 1002 ,

   TAB (30) t_3 USER-COMMAND t_3 DEFAULT SCREEN 1003 ,

   END OF BLOCK tabstrip2.

SELECTION-SCREEN BEGIN OF SCREEN 1004 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK a04 WITH FRAME  TITLE text-a04.

SELECTION-SCREEN INCLUDE BLOCKS  tabstrip2.

SELECTION-SCREEN END OF BLOCK a04.

SELECTION-SCREEN END OF SCREEN 1004.

SELECTION-SCREEN BEGIN OF SCREEN 1001 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME  TITLE text-a01.

PARAMETERS: p_flag1 AS CHECKBOX.

SELECTION-SCREEN END OF BLOCK a01.

SELECTION-SCREEN END OF SCREEN 1001.

* Tab 1

SELECTION-SCREEN:

   BEGIN OF TABBED BLOCK tabstrip FOR 10 LINES,

   TAB (30) t_1 USER-COMMAND t_1 DEFAULT SCREEN 1001,

   TAB (30) t_4 USER-COMMAND t_4 DEFAULT SCREEN 1004,

   END OF BLOCK tabstrip.

*----------------------------------------------------------------------*

* INITIALIZATION

*----------------------------------------------------------------------*

INITIALIZATION.

   t_1 = 'TAB1'.

   t_2 = 'TAB2'.

   t_3 = 'TAB3'.

   t_4 = 'TAB4'.

----------------------------------------------------------------------------------------------------------------------------------

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,357

Tabbed blocks are not allowed inside report subscreen.

It's showing twice because you called it twice.

*Tab 2

SELECTION-SCREEN:               <<<--- FIRST CALL HERE

   BEGIN OF TABBED BLOCK tabstrip2 FOR 5 LINES,

   TAB (30) t_2 USER-COMMAND t_2 DEFAULT SCREEN 1002 ,

   TAB (30) t_3 USER-COMMAND t_3 DEFAULT SCREEN 1003 ,

   END OF BLOCK tabstrip2.

SELECTION-SCREEN BEGIN OF SCREEN 1004 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK a04 WITH FRAME  TITLE text-a04.

SELECTION-SCREEN INCLUDE BLOCKS  tabstrip2. <<<--- SECOND CALL HERE

SELECTION-SCREEN END OF BLOCK a04.

SELECTION-SCREEN END OF SCREEN 1004.

It happens because you need to declare your tabbed block and then call it from a subscreen, but both declaring and calling will throw it to your screen.

Tabbed blocks are not allowed inside report subscreen.

It's showing twice because you called it twice.

*Tab 2

SELECTION-SCREEN:               <<<--- FIRST CALL HERE

   BEGIN OF TABBED BLOCK tabstrip2 FOR 5 LINES,

   TAB (30) t_2 USER-COMMAND t_2 DEFAULT SCREEN 1002 ,

   TAB (30) t_3 USER-COMMAND t_3 DEFAULT SCREEN 1003 ,

   END OF BLOCK tabstrip2.

SELECTION-SCREEN BEGIN OF SCREEN 1004 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK a04 WITH FRAME  TITLE text-a04.

SELECTION-SCREEN INCLUDE BLOCKS  tabstrip2. <<<--- SECOND CALL HERE

SELECTION-SCREEN END OF BLOCK a04.

SELECTION-SCREEN END OF SCREEN 1004.

It happens because you need to declare your tabbed block and then call it from a subscreen, but both declaring and calling will throw it to your screen.

4 REPLIES 4
Read only

Former Member
0 Likes
1,358

Tabbed blocks are not allowed inside report subscreen.

It's showing twice because you called it twice.

*Tab 2

SELECTION-SCREEN:               <<<--- FIRST CALL HERE

   BEGIN OF TABBED BLOCK tabstrip2 FOR 5 LINES,

   TAB (30) t_2 USER-COMMAND t_2 DEFAULT SCREEN 1002 ,

   TAB (30) t_3 USER-COMMAND t_3 DEFAULT SCREEN 1003 ,

   END OF BLOCK tabstrip2.

SELECTION-SCREEN BEGIN OF SCREEN 1004 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK a04 WITH FRAME  TITLE text-a04.

SELECTION-SCREEN INCLUDE BLOCKS  tabstrip2. <<<--- SECOND CALL HERE

SELECTION-SCREEN END OF BLOCK a04.

SELECTION-SCREEN END OF SCREEN 1004.

It happens because you need to declare your tabbed block and then call it from a subscreen, but both declaring and calling will throw it to your screen.

Read only

0 Likes
1,357

Hi Heber,

thanks for your answer.

I need in a selection screen a tabbed block in a tabbed block. Is this possible?

Read only

0 Likes
1,357

I guess you can't do it exactly how you want with selection-screen. I suggest you create new screens and build it in the Screen Painter.

Anyway, wait for others tips. Who knows someone know how to do it.

Read only

Former Member
0 Likes
1,357

Interesting topic.

¿Does anyone know a workaround for this?

Thanks!,

Eloi