SAP ME



Get Example source ABAP code based on a different SAP table
  


• me ABAP_DATA_OBJECT

The Self-Reference me
Within the implementation of each instance method, an implicitly created local reference variable called ABAP_KEY me is available at runtime, which points to the instance in which the method is currently being executed. me is handled like a local constant, which means that the value of me cannot be changed in an instance method. The static type of me is the class in which the instance method is implemented.
The name me is reserved and cannot be used in a class for attributes, formal parameters, and local data objects.



Latest notes:

When an object is created, me also points to the instance of the generated subclass during the execution of an instance constructor of a superclass called using super->constructor. However, in the instance constructor of the superclass, or in methods called by the instance constructor, me-> has not effect in the method call if specified. Instead, the method implementations of the superclass are always called.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
Access to identically named data objects of a class in a method. If specified on its own, str indicates the local data object of the method. The self-reference me is used to access the instance attribute str of the method.
ABEXA 01125
ABAP_EXAMPLE_END