SAP CONTROLS TABSTRIP ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• TYPE TABSTRIP CONTROLS

CONTROLS, TYPE TABSTRIP
Short Reference

ABAP_SYNTAX
CONTROLS contrl TYPE TABSTRIP.

What does it do?
Declares a tabstrip control. If the type TABSTRIP is specified in the statement CONTROLS, a deep structure is created with the name of the control and the type cx_tabstrip of the type pool CXTAB. From this structure, only the component activetab is required in the program.
In PBO processing, the active tabstrip page is specified by assigning the function code of a tab title to the component activetab . The first tabstrip page is active by default. When scrolling in the SAP GUI, the tabstrip control can be initialized in this way. When scrolling in an ABAP program, the tabstrip page selected by the user must be activated by this assignment. At the same time, it must be ensured that the required subscreen is included in the dynpro flow logic using the statement CALL SUBSCREEN.
In PAI processing, the component activetab contains the function code of the active tab title. When scrolling in the SAP GUI, the tabstrip page currently being displayed can be determined in this way.



Latest notes:

The same applies to the inclusion of subscreens of tabstrips using CALL SUBSCREEN as to regular subscreens.
ABAP_HINT_END



Example ABAP Coding

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

Return to menu