SAP SYSTEM-CALL ITAB ABAP Statements

Get Example source ABAP code based on a different SAP table
  


SECRET

SYSTEM-CALL - Editing Internal Tables
ABAP Code Snippet

ABAP_VARIANTS:
1 SYSTEM-CALL ITAB_DELETE_LIST TABLE itab1 •-LIST itab2
[NO-CHECK] [USING KEY key].
2 SYSTEM-CALL ITAB_INFO TABLE itab1 OPCODE op
{VALUE f|PROTOCOL itab2}.

ABAP_VARIANT_1 SYSTEM-CALL ITAB_DELETE_LIST TABLE itab1 •-LIST itab2
[NO-CHECK] [USING KEY key].

What does it do? The system deletes the lines of internal table itab1 whose line numbers are specified in internal itab2.

The table of line numbers itab2 must have the same type as
i and the numbers of the lines that are to be deleted must be unique and in ascending order. That is, itab2 must follow a strict order from line 1 to line n (where line n is the final line of internal table itab2). Otherwise, the system returns a runtime error.

If you declare the optional addition NO-CHECK the calling program is responsible for guaranteeing that itab2 contains only valid line numbers in ascending order.

The optional USING KEY addition can be used to determine the table key that deletes the lines specified in the parameter TABLE t .

ABAP_VARIANT_2 SYSTEM-CALL ITAB_INFO TABLE itab1 OPCODE op
{VALUE f|PROTOCOL itab2}.

What does it do? The system provides information from the header of the internal table itab1. It determines which information is provided from the header using the OPCODE field. According to OPCODE the results are stored either in the field f or in the log table itab2.

The field f must be of type i and itab2 must be a table of the line type c with length 72.

At present, the system supports the following OPCODEs:
'IT_OCCU'Returns the actual value of OCCURS used in the table itab1 in the field f
'IT_HSDIR'In the field f, returns the value 1 (if an internal COLLECT hash management for table itab1 exists) or 0 (if it does not, or if it no longer exists).
'IT_FSREGCNT'Number of field symbols registered for the table.
'IT_LENG'Length of line in table
'IT_FILL'Extent to which table is filled
'IT_GETSTOR'Writes information about the memory allocated to and used by the table itab1 to the log table itab2.
'IT_TYPE_INFO'Writes information about the type of the internal table itab1 to the log table itab2. The first three lines contain the CRC64 hash values of the line types, the key definition, and the table type itself. The following three lines contain the values for the table type, the number of key fields, and the uniqueness indicator. 'IT_REF_COUNT'Reference counter to the shared part of the table header

Return to menu