Top OOPS ABAP Interview Questions (2024) | TechGeekNext


Top OOPS ABAP Interview Questions (2024)

  1. What is OOPS ABAP?
  2. What are the basic OOPS concepts in SAP ABAP?
  3. What is the differences between POP and OOP in SAP ABAP?
  4. What role does POP play in ABAP?
  5. What is class and object in oops SAP ABAP?
  6. What are the types of classes in in OOPS SAP ABAP?
  7. What are the different types of access specifiers in OOP ABAP?
  8. What is ME Operator in SAP OOPSABAP?
  9. What is Encapsulation in OOPS ABAP?
  10. What is Polymorphism in SAP OOABAP?
  11. Is multiple inheritance allowed in OOPSABAP?
  12. What is OOPS ALV in ABAP?
  13. What is difference between Singleton and Static class in OOPS ABAP?
  14. What is a BADI in SAP ABAP?
  15. What is difference between BAPI and Badi in SAP ABAP?
  16. What is an FM in SAP OOPSABAP?

Q: What is OOPS ABAP?
Ans:

In order to create business applications for the SAP environment, SAP created the programming language known as ABAP. Object-oriented programming is made feasible by the ABAP Objects component. The ABAP programming interface is used by SAP NetWeaver's Application Server ABAP (AS ABAP).

Q: What are the basic OOPS concepts in SAP ABAP?
Ans:

Software design is made simpler by object-oriented programming (OOP) which make it simpler to learn, maintain, and reuse.

The basic principles of OOPABAP are as follows:

  1. Inheritance
  2. Encapsulation
  3. Polymorphism

Q: What is the differences between POP and OOP in SAP ABAP?
Ans:

POP OOP
POP is an abbreviation for Procedure-Oriented Programming. OOP is Object-Oriented programming.
During problem-solving, POP utilizes a top-down approach. OOP utilizes a bottom-up approach.
It breaks a program into smaller Procedure known as functions or modules. It breaks a program into smaller part known as objects.
It does not use the OOP concept (inheritance, polymorphism and encapsulation). It uses the OOP concept (inheritance, polymorphism and encapsulation).
Example : C, VB, FORTRAN, Pascal Example : C++, JAVA, VB.NET, C#.NET

Take a look at our Suggested Posts :

Q: What role does POP play in ABAP?
Ans:

SAP originally created ABAP as a POP (Procedural Oriented Programming) language, modified it and transformed it into an OOP language. As a result, ABAP now adheres to object orientation principles and concepts that are similar to objects.

Q: What is class and object in oops SAP ABAP?
Ans:

An object is an attribute (also known as an instance) of a class with information and behavior/state. A class is a structured grouping of objects that mostly includes data fields and attributes related to the data.

Syntax:

CLASS <class_name> DEFINITION.
//class implementation
  //method syntax
  METHOD
   ....
  ENDMETHOD
ENDCLASS

Q: What are the types of classes in in OOPS SAP ABAP?
Ans:

A class can be of two types:

  1. Local: Only programs on the local application server have access to local classes. The ABAP Editor is used to define local classes.
  2. Global: Programs on all application servers have access to global classes. Using the Class Builder tool, users can create global classes.

Q: What are the different types of access specifiers in OOP ABAP?
Ans:

The following types of access specifiers are used in OOP SAP ABAP:

  1. Public
    A class member, such as a variable, method, or data member, can be accessed from anywhere inside the program if a public access modifier is prefixed to it. In other words, they can be accessible both from inside and outside of the various classes.
  2. Private
    The private modifier can only be accessed from inside the same class; it cannot be accessed from outside the class.
  3. Protected
    If we make them protected, only classes that inherit from them will be able to access them.

Q: What is ME Operator in SAP OOPSABAP?
Ans:

ME is considered like a local constant, therefore an instance method cannot change the value of me. The class in which the instance method is implemented is the static type of me. For attributes, formal parameters, and local data objects, the name "me" is reserved and cannot be used.

Q: What is Encapsulation in OOPS ABAP?
Ans:

Encapsulation is an Object Oriented Programming (OOP) pWhat is Polymorphism in SAP OOABAP?rinciple that connects data and functions that work with the data while protecting both from outside intervention and manipulation. The OOP aspect of data hiding resulted from data encapsulation.

Q: What is Polymorphism in SAP OOABAP?
Ans:

  1. Polymorphism refers to the process of redefining methods in order to overload or override them.
  2. When we use the same method name but different parameters, we are using overloading methods.
  3. When we override a method, we use the same method name and parameters but rather an inheritance association link the two methods.

Q: Is multiple inheritance allowed in OOPSABAP?
Ans:

Multiple inheritance is not supported by ABAP objects, however a class can implement multiple polymorphism interfaces.

Q: What is OOPS ALV in ABAP?
Ans:

The object-oriented ALV is an ABAP ALV. The standard list format and user interface for all ABAP programs are provided by ALV (ABAP List Viewer). The flexibility and utilization of OOPS ALV in SAP ABAP allows for the creation of interactive, emerging lists.

Q: What is difference between Singleton and Static class in OOPS ABAP?
Ans:

A class that can only have one instance is referred to as a singleton class. In contrast, a static class does not need to be instantiated because it only has static methods and attributes.

Q: What is a BADI in SAP ABAP?
Ans:

A new SAP Object Oriented improvement method called BADI (Business Add-In) is utilized to add our own business functionality to the already-existing SAP standard functionality. In SAP R/3, BADIs are accessible as of system release 4.6c.

Q: What is difference between BAPI and Badi in SAP ABAP?
Ans:

Nothing more than an Function Module (FM), BAPI (Business Application Programming Interface) is used to load data into the SAP system. Data from the legacy system could be present. BADI - They are an upgrade that can be added to the default SAP software in accordance with company needs. BADI is a more recent iteration of user exits that makes use of the ABAP OOPs concept.

Q: What is an FM in SAP OOPSABAP?
Ans:

In the SAP System, users can encapsulate and reuse global functions using function modules. In a central function library, they are managed. Numerous preconfigured function modules that are part of the SAP System are accessible from any ABAP program.








Recommendation for Top Popular Post :