SAP CLASS COMPONENT SELECTOR



Get Example source ABAP code based on a different SAP table
  


• => ABAP_SELECTOR

Class Component Selector
A static component comp of a class is accessed using the following name:
class=>comp
In this case, no instance of the class has to be created. The symbol => is the class component selector. The name class of a class must be to the left of the class component selector. The name comp of the component must be to the right of the class component selector.
The class component selector can also be used to access the data types and constants of an interface:
intf=>type, intf=>const
The name intf of an interface must be to the left of the class component sector. The name type of a data type defined using TYPES or a constant const defined using CONSTANTS must be to the right of the object component selector.



Latest notes:

It is also possible to access the static components of a class using the object component selector if an instance of the class was created.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
Declaration of a class factory and access to its static attribute oref.
ABEXA 00855
ABAP_EXAMPLE_END