SAP OO OBS STATICS 1

Get Example source ABAP code based on a different SAP table
  


ABAP Code Snippet
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.