
Explore the overview of object oriented programming, contrast with procedural programming, and learn how classes, objects, attributes, and methods create reusable blueprints and instances in ABAP.
Define a sap abap oop class with attributes and methods, using public, private, and protected access, and implement a square class with set side and calculate area.
Create objects from a class using reference variables and arrow notation to access methods and attributes in sap abap o o p. Implement lcl square to calculate area.
Explore how a constructor initializes a new ABAP object, using self-reference and direct access to private attributes, and computes a rectangle's area via length and width.
Learn how static attributes and static methods work in abap object oriented programming (oop) using a vehicle class, counting created instances and encapsulating access with class-level data.
Explore inheritance and polymorphism in ABAP object oriented programming by building a superclass vehicle and a subclass car, implementing constructors, attributes (make, model, serial no), and a display method.
Explore polymorphism in object oriented programming with the LCL vehicle hierarchy, showing LCL track overriding estimate_fuel and using super to access superclass attributes for display.
Explore narrowing casts in ABAP object oriented programming by casting subclass vehicles (car, truck, bus) to a vehicle reference, storing them in an internal table, and displaying subclass attributes.
Master widening cast in ABAP OOP by assigning a superclass reference to a subclass object, accessing inherited and subclass attributes and methods, and handling errors with try and catch blocks.
Define an interface in SAP ABAP and implement it across multiple classes to simulate inheritance, exposing methods like get attributes and get lability, and test via objects.
Apply narrowing cast in interface by storing objects from implementing classes in an internal table of interface references and accessing only interface methods such as get rewards.
Widening cast in interface demonstrates accessing LCL hotel methods via an interface reference, using the get number of rooms method, and handling type checks with try-catch for non-hotel objects.
Learn how to define, trigger, and handle events in ABAP OOP, register event handlers, and implement a vehicle rental example with event-driven interactions.
Explore global classes and interfaces in ABAP OO, using z-prefixed names, and implement a ZCL_vehicle with private attributes, a constructor, get_attributes, and a static get_count to track instances.
Overview of chapter 7 presents using a standard class to display data, handle click and edit events, and work with flight, car, and sub plane tables.
Create a standard oops alv grid demo: build a program, declare alv grid objects, populate an internal table with carrier data, and display and customize the grid layout.
This lab demonstrates creating an ABAP OOP ALV grid with a docking container in fullscreen, instantiating the container class, wiring constructor parameters (width 5000), and testing.
Display icons in an ALV grid with SAP ABAP OOP by using internal table field and field catalog to show green light for values above 50 and red light otherwise.
Color rows and cells in an ABAP ALV grid using OOP, defining a color field and applying colors to specific fields and rows.
Learn to hide standard toolbars in an alv grid using SAP ABAP object oriented programming, by adjusting internal tables and constants to control toolbar visibility.
Learn to build an ABAP OOP ALV grid with clickable and editable cells, configuring internal tables, layout styles, and hotspots to manage editability and user interaction.
Learn to handle click and double-click events in an alv grid using an event handler class, define public methods, register handlers, and display the selected row details.
Catch the edit finished event in an alv grid using abap oop, implement an event handler, and refresh the grid to synchronize data after editing.
Object Oriented Programming approach has many advantages comparing to other programming approaches . one of them is , more powerful in data management .
because of these advantages , many of programming language implement this programming approach .
SAP ABAP runtime has supported object oriented programming approach, form a long time ago . so, there are many of SAP features using this programming approach , such as : BADI , Reporting (ALV Grid OOP) , Webdynpro and so on . and of course there will be more of sap features by using this programming approach . so as SAP Developer you have to master this programming approach , if you want to always be on top of sap technologies .
this tutorial provide the basic & intermediate level of OOP material in SAP ABAP . one of them is, how to create alv grid OOP . if you have more experience with procedural ALV grid (REUSE_ALV_GRID_DISPLAY ), you will find more advantages if you use this type of ALV . OK , enjoy this tutorial ! .