Show TOC

Internal Table TOTALLocate this document in the navigation structure

Definition

The table TOTAL contains all data which are read, changed or created by the extended table maintenance, sorted in ascending order.. The data is sorted in ascending order.

The table is a formal parameter of a function module. The formal parameter TOTAL can also be accessed via the parameter <view name_TOTAL>, if: This is only possible under the following conditions:

  • the maintenance dialog is based on a view

  • the maintenance dialog was called via

    • the extended table maintenance transaction (SM30)

    • the function module VIEW_MAINTENANCE_CALL.

Structure

For views or tables without a text table, The internal table has the structure of the view or table, and also a processing and selection flag.

Example

INCLUDE STRUCTURE <view name> or <table name>

INCLDUE STRUCTURE VIMTBFLAGS

For tables with a text table, connected via the foreign key relationship TEXT, the structure of the table consists of the structure of the entity table, text table, and also two processing flags and a selection flag.

Example

INCLUDE STRUCTURE <table name>

INCLUDE STRUCTURE <text table name>

INCLUDE STRUCTURE VIMTBFLAGS

Note

The structure of the table TOTAL is not transparent. To access the table fields, it isadvisable to define a record with the appropriate structure. After assigning the header record of the table TOTAL to the record, the fields can be accessed via the record. You can also use pre-defined table total header record field symbols .

Processing and Selection Flags

Each record in the table TOTAL contains processing and selection flags. They can be found in a loop for each record in the table.

  • Processing flag: The processing flag can be accessed via the field symbol <ACTION> . It specifies whether the table record is unchanged (original), changed, new or flagged for deletion.

    If the maintenance dialog is based on a table with a text table, connected via the foreign key relationship TEXT, the field symbol <ACTION> only points to the entity table, not to the text table. The text table therefore has its own processing flag with the same semantics. Thiis can be accessed via the Field symbol <ACTION_TEXT> .

  • Selection flag: The selection flag can be accessed via the field symbol <MARK> . It states whether the current record was marked or not.