ABAP on Cloud Exception Handling

Exceptions are way to communicate that something went wrong. An exception is a problem that arises during the execution of a program. When an exception occurs the normal flow of the program is disrupted and the program application terminates abnormally, which is not recommended, therefore these exceptions are to be handled. ABAP exception handling is built upon … Continue reading ABAP on Cloud Exception Handling

Instance vs Class Constructors: ABAP Explained

What is a constructor? Constructor is a special type of method for initializing the attributes of the class.It gets triggered automatically when an object is created.It never returns any value.It can be declared in the Public Section only. Instance Constructor An instance constructor in ABAP is specific to each object, meaning it is automatically executed … Continue reading Instance vs Class Constructors: ABAP Explained

Understanding ‘me’ Variable in OO ABAP

Often times you might have come across me variable in OO ABAP today with an small example we will see how it is being used in the programs *&---------------------------------------------------------------------**& Report y_class_basics*&---------------------------------------------------------------------**&*&---------------------------------------------------------------------*report y_class_basics.class abap_basics definition.public section. data : num type i value '10'. methods display.endclass.class abap_basics implementation. method display. data : num type i value '200'. … Continue reading Understanding ‘me’ Variable in OO ABAP

Understanding CDS Views in ABAP and Interview Questions

What is CDS ? CDS view is a service directly by HANA core CDS artifacts are present and execute on database(HANA or other) layer. This is called code push down where Application layer logic can be easily moved to Database layer for execution. This has many performance advantages if used carefully. Can be assigned to … Continue reading Understanding CDS Views in ABAP and Interview Questions

ABAP Casting: Narrow vs Widening Explained

When we assign the instance of the Subclass back to the instance of the Superclass, than it is called the “Narrow Casting”, because we are switching from a “More Specific view of an object” to “less specific view”. When we assign the instance of the Superclass to the Subclass, than it is called the Widening … Continue reading ABAP Casting: Narrow vs Widening Explained

Key OOP Concepts Explained: ABAP Terminologies

OBJECT ORIENTED PROGRAMMING TERMINOLOGIES in ABAP Below are some of the important concepts of OOP:- Global ClassGlobal Class is an ABAP object which can be accessible via SAP Class Builder, T-code for SAP Class Builder is SE24. Local ClassLocal classes are classes which are available in ABAP programs, we can access them via ABAP editor … Continue reading Key OOP Concepts Explained: ABAP Terminologies

What does ‘?=’ means in CL_SALV_TABLE class

This ‘?=’ denotes a widening cast operator. In widening cast we assign reference of superclass to reference of subclass. Suppose u have a superclass lcl_vehicle its reference is r_vehicle. abd you have its subclass lcl_car with reference r_car. r_car ?= r_vehicle. ‘?=’ denotes the WIDECASTING Operator in ABAP Object. The assignment of an object reference … Continue reading What does ‘?=’ means in CL_SALV_TABLE class

NARROW AND WIDE CASTING IN SAP ABAP

When we assign the instance of the Subclass back to the instance of the Superclass, than it is called the “Narrow Casting”, because we are switching from a “More Specific view of an object” to “less specific view”. When we assign the instance of the Superclass to the Subclass, than it is called the Widening … Continue reading NARROW AND WIDE CASTING IN SAP ABAP

EXCEPTIONS IN SAP ABAP

Exceptions are way to communicate that something went wrong. An exception is a problem that arises during the execution of a program. When an exception occurs the normal flow of the program is disrupted and the program application terminates abnormally, which is not recommended, therefore these exceptions are to be handled. ABAP exception handling is built upon … Continue reading EXCEPTIONS IN SAP ABAP