What is tabstrip in abap




















This SUB1 will be the name of the sub screen which needs to be created by specifying different screen number. In this way we are creating the other tabs also. Now we just create a sub screen by dragging the mouse pointer after selecting the sub screen from palate. The name of this will be SUB1. After that we are creating two buttons for display and clear the screen fields. After customizing and adjusting the screen elements the final screen appears as follows. Now we are creating the first sub screen SUB1 for material details.

Here the screen type will be sub screen. It will take the main screen user command. After that we need to create the screen elements for this sub screen as follows. In this way we are creating the rest of sub screens. Similarly we are creating rest of the sub screens with different screen elements. Now in PAI we have to define the button functionality at user command. Now we need to define all of those tab related subroutines to activate the tabs. Here the purpose is to active the tab with tab title as follows.

Each tab title must have a subscreen area assigned to it, in which any subscreens can be displayed. There are two ways to do this:. Only if a user action triggers the PAI event are all the entries checked and the data of all screens transported.

For more information about creating a tabstrip control in the alphanumeric mode of the Screen Painter, see Creating Tabstrip Controls in Alphanumeric Mode.

The element name of the tabstrip control is the name that you use to declare the tabstrip control in your ABAP program. Use the following statement:. Tab titles are special forms of pushbuttons and have to be maintained like pushbuttons. By default, new tabstrip controls have two tab titles. If you want your tabstrip control to have more than two tab titles, you need to create them by choosing new pushbuttons from the element palette and placing them in the tab title row.

Then you must change the Tab titles attributes. Function code that triggers the PAI event. When you page at the application server, the active tab page is controlled by the ABAP program anyway. To page through the tabstrip control, you must assign the function code to the activetab component of the control:. This statement overwrites the function code of the last active tab page with that of the new tab title. At the same time, you must ensure that the correct subscreen is inserted in the subscreen area.

Otherwise, tabstrip controls are handled like normal subscrens in ABAP programs, that is, the ABAP program of a subscreen screen must contain the dialog modules called from the flow logic of the subscreen. The next screen number of screen is statically-defined.

Its layout is as follows:. The function codes have the same name, and all have the function type P. One of the subscreen areas sub1 to sub3 is assigned to each tab title. In the same ABAP program, there are three subscreen screens to Each of these fits the subscreen area exactly. The layout is:. The screen flow logic of subscreens to does not contain any module calls. When you run the program, a screen appears on which the second tab page is active, since the program sets the activetab component of the structure mytabstrip to PUSH2 before the screen is displayed.

The user can page through the tabstrip control without the PAI event being triggered. One of the three subscreens is included on each tab page. When the user chooses Continue , the PAI event is triggered, and an information message displays the function code of the tab title of the page that is currently active.

The statically-defined next screen for screen is itself, and its layout is the same as in the above example. The same subscreen screens to are defined as in the last example. In this example, the program includes a subscreen screen in the subscreen area sub dynamically during the PBO event.

This example has the same function as the previous example, but the paging within the tabstrip control is implemented on the application server. Each time the user chooses a tab title, the function code from the OK field is assigned to the activetab component of structure mytabstrip. At the same time, the variable number is filled with the screen number of the subscreen that has to be displayed in the subscreen area SUB of the tabstrip control. Define the tab area on a screen and the tab titles.

Assign a subscreen area to each tab title.



0コメント

  • 1000 / 1000