sapdev logo background
sapdev logo sapdev logo
Comments

SAP OO OBS WRITE TO 1 documentation, setup help and example usage



Return to SAP documentation index


INCLUDE
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 INDEX idx.
  • Correct syntax:


  • FIELD-SYMBOLS TYPE ...

    READ TABLE itab INDEX 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.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    OO_OBS_WRITE_AT_1
    OO_TRANSACTION_ABEXA




    comments powered by Disqus