‎2008 Feb 05 11:07 AM
What is the difference between Table Controls and Tab Strips?
‎2008 Feb 05 12:26 PM
hi,
Table control.
A table control is an area on the screen in which the system displays data in tabular form. It is processed
using a loop. The top line of a table control is the header line, which is distinguished by a gray separator.
Within a table control, you can use table elements, key words, templates, checkboxes, radio buttons,
radio button groups, and pushbuttons. A line may have up to 255 columns; each column may have a
title.
You can display or enter single structured lines of data using a table control.
Features:
Resizable
table for displaying and editing data
The user or program can change the column width and position, save the changes, and reload
them later
Check column for marking lines - marked lines are highlighted in a different color
Line selection: Single lines, multiple lines, all lines, and deselection
Column headings double as pushbuttons for marking columns
Scrollbars for horizontal and vertical scrolling
You can fix any number of key (leading) columns
Cell attributes are variable at runtime
The table control contains a series of attributes that are controlled entirely at the presentation server.
These are:
Horizontal
scrolling using the scrollbar in the table control
Swapping
columns
Changing
column widths
Selecting
columns
Selecting
lines
The PAI processing block is triggered when you scroll vertically in the table control or save the user
configuration.
When you create a table control, you must create:
A table control area
Table control fields
-
Tab Strip
Tabstrip controls provide you with an easy, user-friendly way of displaying different components of an
application on a single screen and allowing the user to navigate between them. Their intuitive design
makes navigation much easier for end users.
Tabstrip controls are a useful way of simplifying complex applications. You can use tabstrip controls
wherever you have different components of an application that form a logical unit. For example, you
might have a set of header data that remains constant, while underneath it, you want to display various
other sets of data.
You should not use tabstrip controls if:
You need to change the screen environment (menus, pushbuttons, header data, and so on) while
processing the application components. The screen surrounding the tabstrip must remain constant.
The components must be processed in a certain order. Tabstrip controls are designed to allow
users to navigate freely between components.
The components are processed dynamically, that is, if user input on one tab page leads to other tab
pages suddenly appearing.
Tabstrip controls are compatible with batch input processing.
A tabstrip control consists of individual pages. These consist of the tab page and the tab title.
The tabstrip control may only have one row of tab titles.
If the tabstrip control contains too many pages, it will not be possible for all of the tab titles to be
displayed at once. If this happens, the system displays a scrollbar with which you can scroll through the
remaining tab pages. In the top right-hand corner of the tab is a pushbutton. If the user clicks this, a list
of all of the tab titles is displayed. The active tab title is marked with a tick.
A page element consists of a tab title, a subscreen area, and a subscreen.
From a technical point of view, the system handles tab titles like pushbuttons.
The contents of page elements are displayed using the subscreen technique. You assign a subscreen
area to each page element, for which you can then call a subscreen.
You create a tabstrip control by carrying out the following three steps:
Define the tab area.
Define the tab titles and, if necessary, add further tab titles.
Assign a subscreen area to each page element.
To create a tabstrip control area, choose Tabstrip control from the object list in the Screen Painter and
place it on the screen. Fix the top-left hand corner of the table control area, and then drag the object to
the required size.
Assign a name to the tabstrip control in the Object name attribute. You need this name to identify your
tabstrip control.
In your ABAP program use the CONTROLS statement to declare an object with the same name. Use
TABSTRIP as the type.
The type TABSTRIP is defined in the type pool CXTAB. The field ACTIVETAB contains the function
code of the tab title of the currently active tabstrip. The other fields are reserved for internal use.
The default number of tab pages for a tabstrip control is two.
Hope this is helpful, Do reward.
‎2008 Feb 05 11:08 AM
Tabstrips and Table Controls come under CONTROL. They are special type of GUI elements. The structure is defined in type-pool CXTAB
Table Control:
A table control is an area on the screen in which you can display data in tabular form. You process it using a loop. Table controls are comparable to step loop tables. While a table control consists of a single definition row, step loop blocks may extend over more than one row. Table controls are more flexible than step loops, and are intended to replace them
Use:
Table controls allow you to enter, display, and modify tabular data easily on the screen.
They provide the following functions:
On definition:
Fixed columns
Column headers
At runtime:
Vertical and horizontal scrolling.
Modifiable column width.
Row and column selection.
Movable columns
Settings can be saved.
Sample Programs for Table Control:
demo_dynpro_tabcont_loop
demo_dynpro_tabcont_loop_at
TabStrips:
A tabstrip is a grouping element that can display different application elements on a single screen. A tabstrip consists of one or more pages and each page has a title.
Use
To display a hidden tab page, move the focus to the title of the page and choose [Space].
Sample Programs for TabStrips:
demo_dynpro_tabstrip_local
demo_dynpro_tabstrip_server
‎2008 Feb 05 11:50 AM
Tab Strip:
A tabstrip control is a screen object consisting of two or more pages. Each tab page consists of a tab title and a page area. If the area occupied by the tabstrip control is too narrow to display all of the tab titles, a scrollbar appears, allowing you to reach the titles that are not displayed. There is also a pushbutton that allows you to display a list of all tab titles.
Tabstrip controls allow you to place a series of screens belonging to an application on a single screen, and to navigate between them easily. The recommended uses and ergonomic considerations for tabstrip controls are described in the Tabstrip Control section of the SAP Style Guide.
From a technical point of view, a tab page is a subscreen with a pushbutton assigned to it, which is displayed as the tab title.
The tabstrip control is the set of all the tab pages. Tabstrip controls are therefore subject to the same restrictions as subscreens. In particular, you cannot change the GUI status when you switch between pages in the tabstrip control. However, they are fully integrated into the screen environment, so present no problems with batch input.
Table Controls: http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm
Regards.
‎2008 Feb 05 12:26 PM
hi,
Table control.
A table control is an area on the screen in which the system displays data in tabular form. It is processed
using a loop. The top line of a table control is the header line, which is distinguished by a gray separator.
Within a table control, you can use table elements, key words, templates, checkboxes, radio buttons,
radio button groups, and pushbuttons. A line may have up to 255 columns; each column may have a
title.
You can display or enter single structured lines of data using a table control.
Features:
Resizable
table for displaying and editing data
The user or program can change the column width and position, save the changes, and reload
them later
Check column for marking lines - marked lines are highlighted in a different color
Line selection: Single lines, multiple lines, all lines, and deselection
Column headings double as pushbuttons for marking columns
Scrollbars for horizontal and vertical scrolling
You can fix any number of key (leading) columns
Cell attributes are variable at runtime
The table control contains a series of attributes that are controlled entirely at the presentation server.
These are:
Horizontal
scrolling using the scrollbar in the table control
Swapping
columns
Changing
column widths
Selecting
columns
Selecting
lines
The PAI processing block is triggered when you scroll vertically in the table control or save the user
configuration.
When you create a table control, you must create:
A table control area
Table control fields
-
Tab Strip
Tabstrip controls provide you with an easy, user-friendly way of displaying different components of an
application on a single screen and allowing the user to navigate between them. Their intuitive design
makes navigation much easier for end users.
Tabstrip controls are a useful way of simplifying complex applications. You can use tabstrip controls
wherever you have different components of an application that form a logical unit. For example, you
might have a set of header data that remains constant, while underneath it, you want to display various
other sets of data.
You should not use tabstrip controls if:
You need to change the screen environment (menus, pushbuttons, header data, and so on) while
processing the application components. The screen surrounding the tabstrip must remain constant.
The components must be processed in a certain order. Tabstrip controls are designed to allow
users to navigate freely between components.
The components are processed dynamically, that is, if user input on one tab page leads to other tab
pages suddenly appearing.
Tabstrip controls are compatible with batch input processing.
A tabstrip control consists of individual pages. These consist of the tab page and the tab title.
The tabstrip control may only have one row of tab titles.
If the tabstrip control contains too many pages, it will not be possible for all of the tab titles to be
displayed at once. If this happens, the system displays a scrollbar with which you can scroll through the
remaining tab pages. In the top right-hand corner of the tab is a pushbutton. If the user clicks this, a list
of all of the tab titles is displayed. The active tab title is marked with a tick.
A page element consists of a tab title, a subscreen area, and a subscreen.
From a technical point of view, the system handles tab titles like pushbuttons.
The contents of page elements are displayed using the subscreen technique. You assign a subscreen
area to each page element, for which you can then call a subscreen.
You create a tabstrip control by carrying out the following three steps:
Define the tab area.
Define the tab titles and, if necessary, add further tab titles.
Assign a subscreen area to each page element.
To create a tabstrip control area, choose Tabstrip control from the object list in the Screen Painter and
place it on the screen. Fix the top-left hand corner of the table control area, and then drag the object to
the required size.
Assign a name to the tabstrip control in the Object name attribute. You need this name to identify your
tabstrip control.
In your ABAP program use the CONTROLS statement to declare an object with the same name. Use
TABSTRIP as the type.
The type TABSTRIP is defined in the type pool CXTAB. The field ACTIVETAB contains the function
code of the tab title of the currently active tabstrip. The other fields are reserved for internal use.
The default number of tab pages for a tabstrip control is two.
Hope this is helpful, Do reward.