Ansicht
Dokumentation

ABAPREAD_TABLE_ITAB_SHORTREF - READ TABLE ITAB SHORTREF

ABAPREAD_TABLE_ITAB_SHORTREF - READ TABLE ITAB SHORTREF

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

READ TABLE itab

Reference



Syntax

READ TABLE itab
           { {{FROM wa [USING KEY key_name|(name)]}
             |{WITH TABLE KEY [key_name|(name) COMPONENTS]
                              {comp_name1|(name1)} = dobj1
                              {comp_name2|(name2)} = dobj2
                              ...}
             | {WITH KEY comp1 = dobj1 comp2 = dobj2 ... [BINARY SEARCH]}
             | {WITH KEY key_name|(name)
                         COMPONENTS comp1 = dobj1 comp2 = dobj2 ... }
             | {INDEX idx [USING KEY key_name|(name)]} }
             | {WITH KEY dobj}
             | {WITH KEY = dobj [BINARY SEARCH]} }
           { {INTO wa
              [COMPARING { {comp1 comp2 ...}|{ALL FIELDS}|{NO FIELDS} }]
              [TRANSPORTING { {comp1 comp2 ...}|{ALL FIELDS} }]}
           | {ASSIGNING <fs> [CASTING]}
           | {REFERENCE INTO dref}
           | {TRANSPORTING NO FIELDS} }.


Effect

Reads a single line from an internal table itab.

Additions

  • FROM wa
    Specifies the line to be read by matching it with the key values of a work area wa.
  • INDEX idx
    Specifies the line to be read by specifying the line number idx of a table index.
  • KEY key_name$|(name)
    Specifies (statically or dynamically) a (secondary) table key used to find the line to be read.
  • WITH KEY dobj $[BINARY SEARCH$]
    Obsolete: Reads the first line for which the left-aligned content matches the content of the data object dobj. The table line is cast to the type of dobj. Tables sorted accordingly are searched using the addition BINARY SEARCH.
  • WITH KEY = dobj $[BINARY SEARCH$]
    Obsolete: Reads the first line whose entire content matches the content of the data object dobj. Appropriately sorted tables are sorted using a BINARY SEARCH.
  • INTO wa
    Assigns the read line to a work area wa.





ROGBILLS - Synchronize billing plans   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 6602 Date: 20240419 Time: 165952     sap01-206 ( 69 ms )