Key Principles of SAP ABAP
- Objects: ABAP objects are instances of classes that include both data (attributes) and methods (functions or procedures). Objects represent real-world elements or concepts, making complex systems easier to describe and operate with.
- Attributes: Attributes in ABAP refer to the data or variables associated with a class or object. These attributes define the state or properties of an object and are used to store and manage data within the context of an object-oriented program
- Methods: Methods in ABAP are the functions or processes that are associated with a class. They define the actions or procedures that may be performed on objects of that class. Methods can be called to change the data of an object or to perform certain tasks.
- Interfaces: The interface in SAP ABAP is different from the class, it can not have any implementation like the class. It defines a set of method declarations that a class must implement without providing any implementation detail of that method. Interface helps in achieving multiple inheritance. Multiple inheritance can be defined as a class can inherit multiple interfaces. Due to Inheritance interface provides a base for polymorphism because the method declared in the interface behaves differently in different classes. Like class Interface can be defined locally or globally in the ABAP programming language.
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.