ABAP Keyword Documentation → ABAP - Short Reference
FETCH - Short Reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
FETCH NEXT CURSOR dbcur
{ { INTO { {[CORRESPONDING FIELDS OF] wa} | (dobj1, dobj2, ...) } }
| { INTO|APPENDING [CORRESPONDING FIELDS OF] TABLE itab
[PACKAGE SIZE n] } }.
Effect
Extracts lines from the resulting set of a database-cursor opened withOPENCURSOR
.
Additions
-
INTO wa
Reads a line and assigns it to a work areawa
. -
INTO (dobj1, dobj2, ...)
Reads a line and assigns it to several data objectsdobj1
,dobj2
, ... -
INTO|APPENDING TABLE itab
Reads several lines and assigns them to an internal tableitab
resp. attaches them to the table. -
CORRESPONDING FIELDS OF
Restricts the transport to homonymous components of the work areaswa
resp. to the internal tableitab
. -
PACKAGE SIZE
n
Hands over the lines in pakages fromn
lines to the internal tableitab
. -
CREATING READER|LOCATOR FOR ... COLUMNS ...
Specifies what type of LOB handle is created.