Show TOC

Internal Table EXTRACTLocate this document in the navigation structure

Definition

The table EXTRACT is the work table for the data display. At run-time it contains all data, which was selected from the TOTAL table in the extended table maintenance. The selection is made by the user by function calls, for example, all read, all marked entries, all changed entries. The data is sorted in ascending order.

The table is a formal parameter of a function module. The formal parameter EXTRACT can also be accessed via the parameter <view name_EXTRACT>, 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 EXTRACT 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 EXTRACT to the field record, the fields can be accessed via the field record. You can also use the predefined internal table EXTRACT work area field symbols .

Processing and Selection Flags

Each record in the table EXTRACT 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 <XACT> . 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 <XACT> only refers to the entity table and 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 <XACT_TEXT> . Selection flag

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