sapdev logo background
sapdev logo sapdev logo
Comments

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



Return to SAP documentation index


INCLUDE
ARTICLE

Cannot Use the LOCAL Statement

The LOCAL statement is not allowed in ABAP Objects.

  • In ABAP Objects, the following statement causes an error message:


  • LOCAL f.
  • Cause:


  • The LOCAL statement protects global data objects from being changed in subroutines. This is pointless when you use methods, since methods are designed to work with the attributes of classes. You can create local data objects in methods and subroutines for internal purposes.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    OO_OBS_LITERALS_1
    OO_OBS_LOGICAL_1




    comments powered by Disqus