sapdev logo background
sapdev logo sapdev logo
Comments

SAP OO OBS VERSION 1 documentation, setup help and example usage



Return to SAP documentation index


INCLUDE
ARTICLE

Cannot Use VERSION Addition

The VERSION addition in the Open-SQL statements DELETE
and MODIFY (and of course in the obsolete statements READ TABLE and LOOP AT ) is not allowed in ABAP Objects.

  • In ABAP Objects, the following statements cause an error message:


  • DELETE dbtab VERSION vers.
    MODIFY dbtab VERSION vers.
  • Correct syntax:


  • vers = 'T' vers.

    DELETE (vers) FROM dbtab.
    MODIFY (vers) FROM dbtab.
  • Reason:


  • The VERSION addition only works with database tables whose name satisfies the naming convention for R/2-ATAB tables. Dynamically defining the database table with bracketed field names replaces the
    VERSION addition.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    OO_OBS_TABLES_WA_1
    OO_OBS_WHERE_1




    comments powered by Disqus