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

Tab block within a tab block..

Former Member
0 Likes
736

Hello Gurus,

I am trying to find a technique where I can create tab within a tab block. On a selection-screen report I am working I am creating a tab as follow. But I need two more tabs within this tab. Is it possible ? How ?

SELECTION-SCREEN BEGIN OF BLOCK BSD-2 WITH FRAME Title text-030.
SELECT-OPTIONS :
                 S_DSD  FOR  sy-datum,
                 S_DD   FOR  sy-datum,
SELECTION-SCREEN END OF BLOCK BSD-2.
SELECTION-SCREEN END OF SCREEN 700.

SELECTION-SCREEN: BEGIN OF TABBED BLOCK tab_block for 5 LINES,
 TAB (24) tab1 USER-COMMAND tabpush6
  DEFAULT SCREEN 700,
END OF BLOCK tab_block.

Regards,

Jainam.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
671

Hi Shah,

SELECTION-SCREEN BEGIN OF SCREEN 500 AS SUBSCREEN. " Use these Subscreen as mentioned below
PARAMETERS: carrid type spfli-carrid,
            connid type sflight-connid.
SELECTION-SCREEN END OF SCREEN 500.

SELECTION-SCREEN BEGIN OF SCREEN 600 AS SUBSCREEN.
PARAMETERS: matnr type mara-matnr,
            maktx type makt-maktx.
SELECTION-SCREEN END OF SCREEN 600.

SELECTION-SCREEN: BEGIN OF TABBED BLOCK tab FOR 10 LINES,
                  TAB (20) button1 USER-COMMAND ucom1,
                  TAB (20) button2 USER-COMMAND ucom2,
                  tab (20) button3 USER-COMMAND ucom3, " Other Tabs
                  tab (20) button4 USER-COMMAND ucom4, " Other Tab
                  tab (20) button5 USER-COMMAND ucom5, " Etc
                  END OF BLOCK tab.

INITIALIZATION.
  button1 = 'Flight Details'.
  button2 = 'Material Details'. " Tab Description
  button3 = 'Material Details'. " Tab Description
  button4 = 'Material Details'. " Tab Description
  button5 = 'Material Details'. " Tab Description
  tab-prog = sy-repid.
  tab-dynnr = 500. " Initially Assign a Screen
  tab-activetab = 'PUSH1'.

AT SELECTION-SCREEN.
case sy-ucomm.
  when 'UCOM1'. " Based on the User Command Assigned above 
    tab-dynnr = '0500'. " Assign a relavent Sub Screen as declared above
    WHEN 'UCOM2'.
      tab-dynnr = '0600'.
  ENDCASE.

Cheerz

Ram

Hello Gurus,

I am trying to find a technique where I can create tab within a tab block. On a selection-screen report I am working I am creating a tab as follow. But I need two more tabs within this tab. Is it possible ? How ?

SELECTION-SCREEN BEGIN OF BLOCK BSD-2 WITH FRAME Title text-030.
SELECT-OPTIONS :
                 S_DSD  FOR  sy-datum,
                 S_DD   FOR  sy-datum,
SELECTION-SCREEN END OF BLOCK BSD-2.
SELECTION-SCREEN END OF SCREEN 700.

SELECTION-SCREEN: BEGIN OF TABBED BLOCK tab_block for 5 LINES,
 TAB (24) tab1 USER-COMMAND tabpush6
  DEFAULT SCREEN 700,
END OF BLOCK tab_block.

Regards,

Jainam.

3 REPLIES 3
Read only

Former Member
0 Likes
672

Hi Shah,

SELECTION-SCREEN BEGIN OF SCREEN 500 AS SUBSCREEN. " Use these Subscreen as mentioned below
PARAMETERS: carrid type spfli-carrid,
            connid type sflight-connid.
SELECTION-SCREEN END OF SCREEN 500.

SELECTION-SCREEN BEGIN OF SCREEN 600 AS SUBSCREEN.
PARAMETERS: matnr type mara-matnr,
            maktx type makt-maktx.
SELECTION-SCREEN END OF SCREEN 600.

SELECTION-SCREEN: BEGIN OF TABBED BLOCK tab FOR 10 LINES,
                  TAB (20) button1 USER-COMMAND ucom1,
                  TAB (20) button2 USER-COMMAND ucom2,
                  tab (20) button3 USER-COMMAND ucom3, " Other Tabs
                  tab (20) button4 USER-COMMAND ucom4, " Other Tab
                  tab (20) button5 USER-COMMAND ucom5, " Etc
                  END OF BLOCK tab.

INITIALIZATION.
  button1 = 'Flight Details'.
  button2 = 'Material Details'. " Tab Description
  button3 = 'Material Details'. " Tab Description
  button4 = 'Material Details'. " Tab Description
  button5 = 'Material Details'. " Tab Description
  tab-prog = sy-repid.
  tab-dynnr = 500. " Initially Assign a Screen
  tab-activetab = 'PUSH1'.

AT SELECTION-SCREEN.
case sy-ucomm.
  when 'UCOM1'. " Based on the User Command Assigned above 
    tab-dynnr = '0500'. " Assign a relavent Sub Screen as declared above
    WHEN 'UCOM2'.
      tab-dynnr = '0600'.
  ENDCASE.

Cheerz

Ram

Read only

0 Likes
671

Any response will be appreciated....

Read only

0 Likes
671

>

> Any response will be appreciated....

Are you sure? What about the one from Ramchander Krishnamraju?

Rob