SAP® Documentation

Single view

ABAPINSERT_ITAB_RESULT - INSERT ITAB RESULT

BAL Application Log Documentation   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

INSERT - result

Short Reference



Syntax

... ${ ASSIGNING <fs> $[CASTING$] $}
  $| ${ REFERENCE INTO dref $}.

Effect

These additions can only be used when inserting single rows. If inserted successfully, the addition ASSIGNING is used to assign the inserted row to a field symbol <fs> or the addition REFERENCE INTO is used to set a reference to the inserted row in a reference variable.

The syntax and meaning are the same as when specifying the output behavior in the statement READ TABLE and the same restrictions apply regarding the modification of key fields for primary and secondary table keys. In particular, inline declarations using the declaration operators DATA and FIELD-SYMBOL are possible.

Example

See the addition INITIAL LINE.

Example

After the DO loop, the internal table ref_tab contains references to each row of the internal table itab.

DATA:
  itab    TYPE SORTED TABLE OF string WITH UNIQUE KEY table_line,
  ref_tab TYPE STANDARD TABLE OF REF TO string.

DO strlen( sy-abcde ) TIMES.
  INSERT substring( val = sy-abcde off = sy-index - 1 len = 1 )
         INTO TABLE itab
         REFERENCE INTO DATA(dref).
  APPEND dref TO ref_tab.
ENDDO.






CPI1466 during Backup   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2602 Date: 20191215 Time: 093942     sap01-206 ( 8 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.