Category: OOABAP

Garbage collector in SAP ABAP

1 Introduction As a developer, we need not to explicitly configure memory allocation and deallocation in the system. This process triggers automatically, when the object is created memory is automatically allocated to it and when it is terminated the memory is destroyed by the background process called Garbage Collector to free up the space for […]

Continue Reading

Events in ABAP Class

3 Introduction Events in ABAP Class are the functions in a class which triggers the event handlers of other class based on the outcomes. With the use of events, any number of event handler methods can be called. The link between the triggering event and event handler is decided at run-time. Definition An event is […]

Continue Reading

Interface in ABAP

3 Introduction As we know that the principles of Object-Oriented Programming are Encapsulation, Abstraction, Inheritance and Polymorphism. Polymorphism is implemented through Interfaces. It defines the ability of a message to be displayed in many forms. It allows an interface to have multiple implementations.  In this article we will discuss Interface in ABAP OOPs in detail. […]

Continue Reading

Alias in SAP Classes

4 Introduction An alias in general term is used to indicate the alternate name for a given person, or thing. Similarly, in OOPs ABAP, an alias is an alternate name given to the interface methods implemented in the class. Whenever we implement the interface in a class, the interface method is copied with naming convention […]

Continue Reading

Class Method in SAP OOABAP

3 Introduction A method defines the behaviour of an object. It can access all the attributes and hence can change the status of the object. In this article we will discuss Class Method in SAP OOABAP. There are a few points to consider while declaring the method: The method definition is defined in the class […]

Continue Reading

Objects in ABAP

3 Introduction Objects in ABAP are special variables that have distinct characteristics and behaviors in general terms known as attributes and methods. The attributes define the state of an object and a method defines the behavior or actions performed by the object. An object has three main characteristics- State – State defines the set of […]

Continue Reading

Class Constructor in a Class

4 Introduction We have understood about constructors in our previous article, a constructor is a special method that is invoked automatically at the time object is created or instantiated. It has two types: Instance Constructor and Static Constructor. The static constructor also called as class constructor is invoked whenever there is first call to the […]

Continue Reading

Translate »