Ansicht
Dokumentation

ABAPCONTROLS_TABSTRIP - CONTROLS TABSTRIP

ABAPCONTROLS_TABSTRIP - CONTROLS TABSTRIP

BAL_S_LOG - Application Log: Log header data   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

CONTROLS, TYPE TABSTRIP

Short Reference



CONTROLS contrl TYPE TABSTRIP.

Effect

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.

Note

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

Example

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.






rdisp/max_wprun_time - Maximum work process run time   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 3802 Date: 20240329 Time: 084852     sap01-206 ( 66 ms )