SAP FETCH - Reference

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for FETCH

FETCH

ABAP Reference
ABAP Code Snippet


ABAP Syntax FETCH NEXT CURSOR dbcur

{ { INTO { {[CORRESPONDING FIELDS OF] wa} | (dobj1, dobj2, ...) } }
| { INTO|APPENDING [CORRESPONDING FIELDS OF] TABLE itab
[PACKAGE SIZE n] } }.
[ CREATING { READER|LOCATOR FOR { COLUMNS col1 col2 ... }
| { ALL [OTHER] [BLOB|CLOB] COLUMNS }
[READER|LOCATOR FOR ...] }
| { (crea_syntax) } ].
INTHINT CREATING addition not yet for Release 7.02
ABAP Code Snippet

What does it do? Extracts lines from the resulting set of a database-cursor opened with OPENCURSOR.

ABAP Addition INTO wa
Reads a line and assigns it to a work area wa.
INTO (dobj1, dobj2, ...)
Reads a line and assigns it to several data objects dobj1, dobj2, ...
INTO|APPENDING TABLE itab
Reads several lines and assigns them to an internal table itab resp. attaches them to the table.
CORRESPONDING FIELDS OF
Restricts the transport to homonymous components of the work areas wa resp. to the internal table itab.
PACKAGE SIZE n
Hands over the lines in pakages from n lines to the internal table itab.
CREATING READER|LOCATOR FOR ... COLUMNS ...
Specifies what type of LOB handle is created.

Return to menu