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

Module Pool Programming

Former Member
0 Likes
508

Hi Guys,

Can U explain Tapstrip used in Module pool program.

If possible provide sample code.

Regards,

Swetha Venkatesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
466

Hi Swetha,

<u><b>Defining a Tabstrip Control:-</b></u>

To define a simple tabstrip control, you must:

Define the tabstrip area.

Define the tab titles.

Define and assign a subscreen area.

Program the flow logic.

Procedure

The procedures in this document are different if you are using the fullscreen editor in alphanumeric mode. For further information, see Creating a tabstrip control in alphanumeric mode.

<u><b>Defining the Tabstrip Area:-</b></u>

With the Screen Painter in change mode, choose the tabstrip control icon from the element palette.

The mouse pointer changes its shape.

Set the position of the top left-hand corner of the tabstrip with a single click, and keep the mouse button pressed.

Drag the object out to the required size and release the mouse button.

If necessary, you can still change the position and size of the tabstrip control.

Assign a field name to the new tabstrip control.

Enter any further tabstrip attributes as required.

The field name of the tabstrip control is the name that occurs in the CONTROLS statement in the ABAP program.

<b><u>Defining The Tab Titles</u></b>

By default new tabstrip controls come with two tab titles. In technical terms, you process tab titles exactly like pushbuttons. If you want your tabstrip control to have more than two tab titles, you must create further pushbuttons.

Double-click a tab title to open the corresponding attribute window (for the (pushbutton

Enter a field name or a function code. If required, change the field text or insert an icon.

Choose Pushbutton from the element palette and place it in the tab title row to create a new tab title.

Repeat steps 1 and 2 for each new tab title.

Just like normal pushbuttons, you can assign dynamic texts to tab titles.

Assigning Subscreen Areas

You assign a subscreen area to each tab page. There are different ways of doing this. You can either assign a different subscreen area to each tab page or a single subscreen area to all tab pages.

<u><b>The procedure is as follows:-</b></u>

Select a tab title.

In the element palette, choose Subscreen area.

Drag and drop the subscreen area into the tab page.

Enter a field name for the subscreen area.

Alternatively, you can assign the subscreen to the tab page using the reference field in the subscreen area attribtues or the field list. Enter the field name of the subscreen area in this field.

<u><b>Programming the Flow Logic:-</b></u>

Insert the following statement into the PBO processing block of the screen flow logic:

CALL SUBSCREEN <subscreen> INCLUDING <progname> <dynnr>.

Insert the following statement into the PAI processing block of the screen flow logic:

CALL SUBSCREEN <subscreen>.

Insert a CONTROLS statement for the tabstrip control in the global data declarations for your program as follows:

CONTROLS <tab_strip_name> TYPE TABSTRIP.

Field Explanation

<subscreen> Name of the subscreen area.

<progname> Name of the module pool containing the screen on which you want to create the tabstrip control.

<dynnr> Number of the screen you want to display.

<tab_strip_name> Field name of the tabstrip control.

<b>Reward points if useful.</b>

Regards,

Kavitha.

2 REPLIES 2
Read only

Former Member
0 Likes
467

Hi Swetha,

<u><b>Defining a Tabstrip Control:-</b></u>

To define a simple tabstrip control, you must:

Define the tabstrip area.

Define the tab titles.

Define and assign a subscreen area.

Program the flow logic.

Procedure

The procedures in this document are different if you are using the fullscreen editor in alphanumeric mode. For further information, see Creating a tabstrip control in alphanumeric mode.

<u><b>Defining the Tabstrip Area:-</b></u>

With the Screen Painter in change mode, choose the tabstrip control icon from the element palette.

The mouse pointer changes its shape.

Set the position of the top left-hand corner of the tabstrip with a single click, and keep the mouse button pressed.

Drag the object out to the required size and release the mouse button.

If necessary, you can still change the position and size of the tabstrip control.

Assign a field name to the new tabstrip control.

Enter any further tabstrip attributes as required.

The field name of the tabstrip control is the name that occurs in the CONTROLS statement in the ABAP program.

<b><u>Defining The Tab Titles</u></b>

By default new tabstrip controls come with two tab titles. In technical terms, you process tab titles exactly like pushbuttons. If you want your tabstrip control to have more than two tab titles, you must create further pushbuttons.

Double-click a tab title to open the corresponding attribute window (for the (pushbutton

Enter a field name or a function code. If required, change the field text or insert an icon.

Choose Pushbutton from the element palette and place it in the tab title row to create a new tab title.

Repeat steps 1 and 2 for each new tab title.

Just like normal pushbuttons, you can assign dynamic texts to tab titles.

Assigning Subscreen Areas

You assign a subscreen area to each tab page. There are different ways of doing this. You can either assign a different subscreen area to each tab page or a single subscreen area to all tab pages.

<u><b>The procedure is as follows:-</b></u>

Select a tab title.

In the element palette, choose Subscreen area.

Drag and drop the subscreen area into the tab page.

Enter a field name for the subscreen area.

Alternatively, you can assign the subscreen to the tab page using the reference field in the subscreen area attribtues or the field list. Enter the field name of the subscreen area in this field.

<u><b>Programming the Flow Logic:-</b></u>

Insert the following statement into the PBO processing block of the screen flow logic:

CALL SUBSCREEN <subscreen> INCLUDING <progname> <dynnr>.

Insert the following statement into the PAI processing block of the screen flow logic:

CALL SUBSCREEN <subscreen>.

Insert a CONTROLS statement for the tabstrip control in the global data declarations for your program as follows:

CONTROLS <tab_strip_name> TYPE TABSTRIP.

Field Explanation

<subscreen> Name of the subscreen area.

<progname> Name of the module pool containing the screen on which you want to create the tabstrip control.

<dynnr> Number of the screen you want to display.

<tab_strip_name> Field name of the tabstrip control.

<b>Reward points if useful.</b>

Regards,

Kavitha.

Read only

Former Member
0 Likes
466

Swetha,

You create Tabstrip program by using Wizard for Tabstrip with different options and different programs

First take minimum options.. and continue with every new oprion. Every time go through the program (code) and like this u can learn Tabstrip very effectively.

Regards,

manju