sapdev logo background
sapdev logo sapdev logo
Comments

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



Return to SAP documentation index


INCLUDE
ARTICLE

Cannot Use STATICS in Instance Methods

The STATICS statement is not allowed in instance methods.

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


  • METHOD ...
    STATICS s ...
    ...
    ENDMETHOD.
  • Reason:


  • The STATICS statement in a method corresponds to a CLASS-DATA statement, where the visibility of the declared data objects is limited to the method. This is a potential source of misunderstanding in instance methods.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    OO_OBS_SQL_WA_1
    OO_OBS_STOP_1




    comments powered by Disqus