YouTube Icon

Interview Questions.

Top 100+ Sap Object Oriented Abap Interview Questions And Answers - Jun 01, 2020

fluid

Top 100+ Sap Object Oriented Abap Interview Questions And Answers

Question 1. Is It Mandatory To Implement All Methods Of Interface In The Class Which Includes Interface?

Answer :

No it is not obligatory to enforce all regular interface strategies however it is mandatory to implement all Abstract techniques.

Question 2. What Is An Interface In Ooabap?

Answer :

Interface is elegance which incorporates techniques without implementations.

Adv Java Interview Questions
Question 3. Can We Instantiate The Interface?

Answer :

No, we can not instantiate interface the use of create object key-word.

Question four. Can We Achieve Multiple Inheritance Using Interfaces?

Answer :

Yes, via using interface idea in SAP ABAp, we will achieve more than one inheritance

Adv Java Tutorial
Question 5. Does Polymorphism Achieved Through Interfaces?

Answer :

Yes, by means of the use of interface idea in SAP ABAP, we can polymorphism

SAP ABAP Interview Questions
Question 6. What Is The Difference Between Abstract Class And Interface?

Answer :

Abstract elegance is a category which incorporates at the least one summary technique( Method without implementation), Abstract elegance incorporates methods with implementation and without implementation and we can not create instance for the abstract class .

Abstract class is specially for inheritance .
Interface consists of strategies with out implementation .
Question 7. What Is Alias Name In Ooabap?

Answer :

Alias is an alias call for the interface approach implemented inside the elegance .

SAP ABAP Tutorial SAP ABAP Web Dynpro Interview Questions
Question 8. Can We Raise Events In Interface?

Answer :

No, you can not improve events in interface, Because there may be no Implementation for the techniques. We can create events in interfaces .

Question nine. What Is A Single-ton Class?

Answer :

Single-ton magnificence is a category which lets in to instantiate as soon as only .

Software Development Lifecycle (SDLC) Interview Questions
Question 10. What Is The Difference In Attributes Defined In The Public Versus Private Section Of A Class?

Answer :

Public attributes may be accessed by using class, subclasses and different training in which as Private attributes may be accessed by class itself best.

SAP ABAP Web Dynpro Tutorial
Question eleven. What Is The Difference In An Instance Method And A Static Method?

Answer :

Instance approach is available separately in each object (instance), static approach is worldwide and no example is required for static approach.

Sap Abap Hr Interview Questions
Question 12. What Is A Class In Ooabap?

Answer :

Class is person described facts type which incorporates techniques, events, attributes, interfaces and so on.

Adv Java Interview Questions
Question thirteen. What Is The Difference Between Singleton And Static Class In Sap Abap ?

Answer :

Before going to static classes, you should recognize static additives.

Static Components: Static additives (static attributes, static occasions and static techniques) exists globally, no want to create object/instance of the class to get admission to them, we are able to access them via the usage of static thing selector => .
Static Class: A magnificence that best includes static components and no instance additives is known as a static magnificence.
Singleton Class: It is a category which does now not allow you to create multiple times.
Software Development Lifecycle (SDLC) Tutorial
Question 14. Can We Make Methods Of Interface As Abstract And Final In Ooabap ?

Answer :

No we can't make interface strategies as abstract or final in Object Oriented ABAP

Question 15. Can We Declare Events In Interface In Ooabap ?

Answer :

Yes, we can declare events in interface in Object Oriented ABAP

SAP ABAP Dictionary Interview Questions
Question sixteen. What Is A Singleton Class In Ooabap ?

Answer :

Singleton class is a category which lets in to instantiate(Create Object) handiest as soon as .

Question 17. What Is A Global Class In Sap ?

Answer :

Global lessons and interfaces are described in the Class Builder (Transaction SE24) within the ABAP Workbench.All of the ABAP programs in an R/3 System can get entry to the worldwide instructions

SAP ABAP Enhancement Interview Questions
Question 18. What Is A Local Class In Sap ?

Answer :

Local training are defined in an ABAP program (Transaction SE38) and may most effective be used in the application wherein they're defined.

SAP ABAP Interview Questions
Question 19. What Is An Event In Ooabap ?

Answer :

Event is a mechanism by which approach of one magnificence can enhance approach of some other class, with out the chance of instantiating that elegance.

Question 20. How To Declare And Raise Events In Ooabap ?

Answer :

We need to comply with below steps while running with events in Object Oriented ABAP:

Define an event
Define a technique
Link event and method and convert the technique into occasion-handler approach
Create a triggering technique so one can improve the event
Use set handler and check in occasion handler approach to a specific instance within the program
SAP ABAP Module Pool Interview Questions
Question 21. What Is A Constructor Method In Ooabap ?

Answer :

These are unique sort of techniques
constructor technique is executed robotically every time a item is created or instantiated
These strategies are mainly used to set default values in a class
The call of the constructor technique is 'constructor'
These strategies have simplest importing parameters
There are not any exporting parameters
Question 22. What Is Abstract Method In Ooabap ?

Answer :

Abstract methods is a method which doesn't comprise any implementation.

Question 23. What Is An Abstract Class In Ooabap ?

Answer :

It is a class which includes methods with implementation in addition to methods without implementation .
Abstract magnificence is a class which contains as a minimum one abstract method.
SAP ABAP Report Developer Interview Questions
Question 24. Can We Instantiate Abstract Class In Ooabap ?

Answer :

we can't create an object to the abstract elegance as an alternative create an object to the child class and make contact with the strategies .
Abstract elegance are mainly used for developing inheritance.
SAP ABAP Web Dynpro Interview Questions
Question 25. What Is The Use Of 'defination Deferred' Keyword In Ooabap ?

Answer :

It is the key-word which suggests the class definition is not on time or postponed or Defined at some place in program.

Syntax : CLASSÂ Â DEFINITION DEFERED.

Question 26. What Are The Advantages Of Oo Alv ?

Answer :

Some of the principle advantages of Object Oriented ALV

We have no of events to be had in the classes when in comparison to ALV with feature modules which gives flexibility for the programmer to expand ALV'S for numerous eventualities.
We can show more than one ALV grid facts on a single display.
The ALV grid records is displayed inside the shape of custom field with which we will control the size of ALV grid Whereas we cannot manage the scale of the ALV with feature Modules.
We can also place exclusive UI elements like checkbox, Radiobutton on the equal display further ALV grid statistics.
SAP ABAP Data Dictionary Interview Questions
Question 27. What Are The Types Of Constructor's In Ooabap ? Explain ?

Answer :

CONSTRUCTOR's are special type of methods, constructor method is performed robotically on every occasion a object is created or instantiated.

Constructor: This technique is finished robotically each time object is created, this is used to set default values with appreciate to instance/item. The name of the constructor approach is CONSTRUCTOR.
Static Constructor: This approach is executed routinely whenever item is created, that is used to set default values globally regardless of instances/items.The call of the static constructor is CLASS_ CONSTRUCTOR.
Software Development Lifecycle (SDLC) Interview Questions
Question 28. What Is A Polymorphism In Ooabap ?

Answer :

Polymorphism is a idea through which the equal technique names will behave otherwise in exclusive training i.E every method could have it's personal implementation in different lessons however with the equal call.

Question 29. Can We Defined A Class Without A Constructor In Ooabap ?

Answer :

 Yes, magnificence can be created without any constructor. Default constructor might be created whilst we outline a class with out constructor.

SAP ABAP ALV Reports Interview Questions
Question 30. What Is A Friend Class?

Answer :

Friend class is a class it could get entry to private components of it’s pals class.

Question 31. What Is Alias?

Answer :

Instead of specifying complete call of interface techniques, we will assign it a name which can immediately trigger.

Question 32. What Is Me Variable?

Answer :

It much like a self­reference, by this we will call methods that are with in equal class without creating item.

SAP Adobe Forms Interview Questions
Question 33. How To Create A Global Class?

Answer :

With tcode SE24.

Sap Abap Hr Interview Questions
Question 34. How To A Create Object For The Class?

Answer :

Data: ref type ref to .
Create object ref.

Question 35. How To Call A Method?

Answer :

Call approach ref­>method_name .

Question 36. What Are The Differences Local & Global Classes?

Answer :

Local classes are defined domestically with in a program and the other programs can’t get entry to the same classes directly.
But international classes aren't like that they may be globally handy from ABAP surroundings.
Global instructions are centrally defined in a repository. Transaction code for international training is SE24(magnificence builder).
SAP ABAP Dictionary Interview Questions
Question 37. What Is The Difference Between Function Group And Classes?

Answer :

We can create many instances of the identical elegance with in a application, but we can't create many instances of function organization.

Question 38. How Many Types Of Classes Are There In Ooabap?

Answer :

Public elegance
Private class
Final elegance
Single­ton elegance
Abstract elegance
Persistent magnificence
Friend magnificence
Question 39. How To Define A Class Locally?

Answer :

class <cl_name> definition.
Public segment.
Methods: m1 uploading p1 type <c>
Exporting p2 kind <i>
Changing p3 type <n>
Returning p4 type <i>
Exceptions <e1>.
Protected phase.
Private segment.
Endclass.
Class <c1_name> implementation.
Method m1.­­­­­­
Endmethod.
Endclass

Question 40. How To Create An Object For Private Class?

Answer :

In widespread we can't create item for a personal magnificence, but we will get entry to static technique of a private class so name that approach using its elegance call and import that object.

For example take one static approach with an exporting parameter inner non-public class and write object introduction code in that static approach and export that item.

SAP ABAP Enhancement Interview Questions




CFG