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