Show TOC

Table ControlLocate this document in the navigation structure

Integration

The Table Control screen element is mapped onto the Web Dynpro UI element Table, which contains a set of TableColumn elements. The TableColumn consists of a caption for the column header and a Web Dynpro UI element that was obtained by transforming a non-container screen element.

Table Control Mapping Rules

Table Property Bound to Context Value

AccessibilityDescription

 

INITIAL

DataSource

Node TABLE_DATA

The data for the cells in the table control

Design

 

ConstantStandard

Enabled

 

ConstantTrue

FirstVisibleRow

Attribute TC_TOP_LINE (default0)

First visible line in table control

FirstActualRow

Attribute TC_TOP_LINE (default0)

First visible line in table control

FooterVisible

Attribute FOOTER_VISIBLE

If true, the table footer with the paging arrows is visible.

ReadOnly

 

ConstantFalse

RowCount

 

Constant-1

SelectionMode

 

ConstantNone Note: The selection mode for the table control (Selectability attribute for rows) is mapped by inserting a special DynproTableColumn that contains checkboxes with ID MARK for the selection markers.

Tooltip

 

INITIAL

Visible

Attribute VISIBLE (defaultvisible/2)

Element runtime attributeActive

VisibleRowCount

Attribute TC_LINES

Number of visible lines in the table control. Set at runtime using theLINES attribute of the table control structure.

Width

 

INITIAL

TableColumn Mapping Rules

TableColumn Property Bound to Context Attribute Value

Design

 

ConstantStandard

FilterValue

 

INITIAL

HAlign

 

ConstantAuto

Resizable

 

ConstantTrue

Selected

COLUMN_SELECTED

True, if the column for table control is selected. Set at runtime using theSELECTED attribute of theCOLS table, which is part of the table control structure.

Visible

COLUMN_VISIBLE

True, if the column is to be visible. Set at runtime using the VISIBLE attribute of theCOLS table, which is part of the table control structure.

Width

WIDTH

Width of the column (in character grids). Set at runtime using theSCREEN_LENGTH attribute of theCOLS table, which is part of the table control structure.

Context Structure

Context Structure of the Table

The context node for a table control (marked with 1 in the figure above) contains the following elements:

  • A node with cardinality 0:n for the table data (2 in above image), which is used as the data source for the Table UI element.
  • The subnodes of the table data node (3 in above figure) contain the data for the table cells. The structure of these nodes is element-specific and corresponds to the context structure of the non-container screen elements. If a row selection attribute is set, a node with the name of the corresponding ABAP variable is created. It stores the data for the selection column.
  • Nodes for the table columns (4 in above figure). These nodes contain the context attributes used for binding TableColumn properties as described above.