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 Vectors in C++: Key Features

Vectors are Just like arrays but with some special Features that gives you some flexibility i.e If you want to add a element at a later stage ( like a dynamic array) etc. We define a Vector asvector<data type> variable_name(size); whereExample :  vector temperature(7); It defines a vector called temperature which is of type double and stores value … Continue reading Understanding Vectors in C++: Key Features

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

Abstract Class, Interface and Proxy

Class in ABAP All of you already know what a class is and how it is created in ABAP. You can refer to the previous post to know basic terminologies. Here I will talk about some of the basics associated with these classes Abstract Class vs Interfaces Abstract Class is a special kind of class … Continue reading Abstract Class, Interface and Proxy

ABAP OBJECT ORIENTED INTRODUCTION

OBJECT ORIENTED PROGRAMMING TERMINOLOGIES in ABAP Below are some of the important concepts of OOPS ABAP:- What is a Class ? A class is a user defined data type with attributes, methods, events, user-defined types, interfaces etc. for a particular entity or business application What are Objects ? Objects are nothing but instances of classes, each object … Continue reading ABAP OBJECT ORIENTED INTRODUCTION