The table "TOTAL" contains all data which are read, changed, and created in the view cluster maintenance. The data is sorted in ascending order.
You can access the table "TOTAL" for a view cluster subobject via the field symbol <VCL_TOTAL>, if the routine VCL_SET_TABLE_ACCESS_FOR_OBJ has been called previously for this subobject.
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.
INCLUDE STRUCTURE <view name> or <table name>
INCLUDE STRUCTURE VIMFLAGTAB
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.
INCLUDE STRUCTURE <table name>
INCLUDE STRUCTURE <text table name>
INCLDUE STRUCTURE VIMTBFLAGS
The structure of the table "TOTAL" is not transparent and the table has no header line. To access the table fields, it isadvisable to define a record with the appropriate structure. The fields can be accessed via the record after assigning an "TOTAL" table entry to the record, e.g. in a loop over the table or in a READ TABLE statement.
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.
Changing "TOTAL"
If the table "TOTAL" is to be changed, for example, to create, delete, or change hidden entries, the form routine EDIT_VIEW_ENTRY must be called as external perform in the function group containing the generated maintenance dialog modules for the subobject. The routine changes the entry in the data tables, sets the processing flag and updates the view maintenance internal status information for the subobject.
EDIT_VIEW_ENTRY routine interface
Specify parameters:
Parameter |
Explanation |
---|---|
EXTRACT |
Data table 'EXTRACT' of subobject |
TOTAL |
Data table 'TOTAL' of subobject |
HEADER |
Subobject header entry management table |
NAMTAB |
Subobject field information management table |
SELLIST |
Selection conditions against which the validity of the entry to be created is checked |
ENTRY |
Subobject entry to be changed |
ACTION |
Type of change to be made. Possible values: 'DEL' : ENTRY is to be deleted 'UPD' : ENTRY is to be created if no entry with that key exists, or to be changed 'UDL' : ENTRY is to be retrieved from deletion |
The routine returns the return code SY-SUBRC = 0 if the action was successful.
Delete an entry:
data: error_flag(1) type c, Teilobjekt_wa like 'Teilobjektname'. * Zugriff auf Daten und Verwaltungstabellen für Teilobjekt bereitstellen vcl_set_table_access_for_obj using 'Teilobjektname' changing error_flag. Teilobjekt_wa =.... perform edit_view_entry(saplfugr) * saplfugr ist das Rahmenprogramm, der zur Generierung * benutzten Funktionsgruppe tables <vcl_extract> <vcl_total> <vcl_header> <vcl_namtab> <vcl_dpl_sellist> using Teilobjekt_wa 'DEL'.
Create a new entry:
The entry to be created is checked against the conditions in the parameter SELLIST. If the subobject contains subset fields, an appropriate list of conditions must be passed for this entry.