
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.
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 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.
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.
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.
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.
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 ! .