Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Call Sequence in ABAP Objects

Static ConstructorCall MethodCreate Object + Constructor

1. Static Constructor. The static constructor is a special static method in a class and is always named CLASS_CONSTRUCTOR. It is executed no more than once per program (and class). The static constructor is called automatically before the class is first accessed, but before any of the following actions are executed for the first time: Creating an instance of this class (CREATE OBJECT) Accessing a static attribute of this class Calling a static method of this class Registering an event handler method for an event in this class

Always consider the following points when you define static constructors: Each class has no more than one static constructor The static constructor must be defined in the public area The constructor's signature cannot have importing parameters or exceptions The static constructor cannot be called explicitly

You might also like