Category: OOABAP

  • Class Method in SAP OOABAP

    Preface – This post is part of the Object Oriented ABAP series. 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…

  • Objects in ABAP

    Preface – This post is part of the Object Oriented ABAP series. 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…

  • Class Constructor in a Class

    Preface – This post is part of the Object Oriented ABAP series. 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…

  • Message Class in SAP ABAP

    Preface – This post is part of the Object Oriented ABAP series. Introduction To issue a message or warning or error or any kind of information in ABAP, either we have to hard code that message or maintain it in text symbols. What if the same message is required somewhere else like in any other program…

  • SAP ABAP Unit Testing Class

    Preface – This post is part of the Object Oriented ABAP series. Introduction ABAP unit testing is a methodology for software development. Whenever we create a class, it is mandatory to create its test class to check the behavior of our code if it is working exactly as it was expected.  While developing any object, it…

  • Exception Class in SAP ABAP

    Preface – This post is part of the Object Oriented ABAP series. Introduction To understand an exception class, we need to understand what is an exception and when it is raised. When we execute any program, some discrepancies can occur due to which a normal flow of execution gets interrupted and the behavior will not be…

  • Local Classes in SAP ABAP

    Preface – This post is part of the Object Oriented ABAP series. Introduction One of the flavors of ABAP classes (Global Classes) we have already discussed in the last article. Another flavor of ABAP class are Local Classes. The only difference between a local class & global class is visibility & accessibility. A local class can…

  • Super Class in SAP ABAP

    Preface – This post is part of the Object Oriented ABAP series. Introduction One of the three pillars of OOABAP uses this concept of Super class to achieve ‘Inheritance’. Super class allows us to extend that class by creating a subclass of it. This subclass will have all the properties of a super class, plus it…

  • Global Class in SAP ABAP

    Preface – This post is part of the Object Oriented ABAP series. Introduction From the reference of an article: SAP ABAP Classes we have discussed the flavors of ABAP Classes & we came to know that ABAP classes are available in two flavors, one of which is Global Class. The visibility section of the global class…

  • Singleton Class in ABAP

    Preface – This post is part of the Object Oriented ABAP series. Introduction Sometimes there is a need to instantiate an object at a time, that means only one instance is required at one point of time. This is a very common requirement while designing an application. To achieve such a scenario, there is one concept…