Pillars of SAP ABAP
ABAP(Advanced Business Application Programming) is an object-oriented programming language that supports many oops concepts like other programming languages. It supports all the four pillars of oops i.e. Inheritance, Polymorphism, Abstraction, and Encapsulation.
- Abstraction: – Abstraction in ABAP is the process of hiding irrelevant data and showing the essential data only.
- Encapsulation: Encapsulation in ABAP is one of the fundamental principles of OOP. In SAP ABAP, it means that classes encapsulate their internal details, such as data and methods, The internal implementation is hidden.
- Polymorphism: Polymorphism in ABAP enables the use of different implementations of methods with the same name. it allows us to write code that can work with objects of different classes in a uniform way.
- Inheritance: Inheritance in ABAP allows you to create new classes based on existing classes, inheriting their attributes and methods. This leads to code reuse and establishes a hierarchical relationship between classes. It is often used to model “is-a” relationships.
SAP ABAP | Object Orientation
The SAP ecosystem creates applications with the programming language SAP ABAP (Advanced Business Application Programming) t is created by SAP which is a domain-specific language, it is the 4th generation programming language. It is also called ABAP/4(Fourth Generation Language” or 4GL). mainly for enterprise resource planning (ERP) systems. The introduction of Object Orientation in ABAP increased the language’s capabilities and brought it in line with modern programming paradigms.