ABAPCONTROLS_TABSTRIP - CONTROLS TABSTRIP

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

CONTROLS - TYPE TABSTRIP

Short Reference



Syntax

CONTROLS contrl TYPE TABSTRIP.

Effect

Declaration of a tabstrip control. If you specify the type TABSTRIP in the CONTROLS statement, adeep structure is created with the name of thecontrol and the type CXTAB_TABSTRIP of thetype groupCXTAB. From this structure, only the component ACTIVETAB is required in the program.

During the PBO processing, the active tabstrip page is specified by assigning the function code of atab title to the component ACTIVETAB. The first tabstrip page is active by default. Whenscrolling in the SAP GUI, the tabstrip control can thus be initialized. For anyscrolling in an ABAP program, the tabstrip page selected by the user must be activated by this assignment. You must also ensure that the desiredsubscreen is included in thescreen flow logic using theCALL SUBSCREEN statement.

During PAIprocessing, the component ACTIVETAB contains the function code of the active tab title. When scrolling in the SAP GUI, you can thus ascertain which tabstrip page is currently displayed.

Note

The same applies to the inclusion of subscreens of tabstrips using CALL SUBSCREEN as for normal subscreens.

Example

If, on a subscreen, a tabstrip control is defined with three untyped tab titles with the function codes"TAB1", "TAB2", and "TAB3" and a subscreen area SUB, the scrolling can be programmed in ABAP as follows.In a PBO module, prepare_tabstrip, the component activetab of the structure tab_stripcreated using CONTROLS is assigned the function code of the first tab title. After a tab titlehas been selected, this component is set to the relevant function code in the PAI module handle_user_command. The number of the desiredsubscreenscreen is assigned to the data object dynnr that is used for including the subscreen in the screen flow logic. The corresponding programming of the screen flow logic can be seen in the example forCALL SUBSCREEN.

CONTROLS tab_strip TYPE TABSTRIP.
DATA: ok_code      TYPE sy-ucomm,
      dynnr        TYPE sy-dynnr.
...
MODULE prepare_tabstrip OUTPUT.
  IF tab_strip-activetab IS INITIAL OR
     dynnr IS INITIAL.
    tab_strip-activetab = 'TAB1'.
    dynnr = '0110'.
  ENDIF.
ENDMODULE.
MODULE handle_user_command INPUT.
  CASE ok_code.
    WHEN 'TAB1'.
      dynnr = '0110'.
    WHEN 'TAB2'.
      dynnr = '0120'.
    WHEN 'TAB3'.
      dynnr = '0130'.
    ...
  ENDCASE.
  IF ok_code(3) = 'TAB'.
    tab_strip-activetab = ok_code.
  ENDIF.
ENDMODULE.


Addresses (Business Address Services)   CPI1466 during Backup  
This documentation is copyright by SAP AG.


Length: 4991 Date: 20120522 Time: 040900     triton ( 169 ms )