SAP OO OBS WRITE TO 1
Get Example source ABAP code based on a different SAP table
ABAP Code Snippet ARTICLE
No WRITE TO for Internal Tables The
WRITE TO statement is not allowed in ABAP Objects for internal tables.
In ABAP Objects, the following statement causes an error message:
WRITE ... TO itab • idx.
Correct syntax:
FIELD-SYMBOLS <(><)> TYPE ...
READ TABLE itab • idx ASSIGNING <(><)>.
WRITE ... TO <(><)>.
Reason:
Field symbols can be used for direct access to table rows. The WRITE TO statement for table rows is superfluous.