Things to know in ABAP and ALV

Modularisation techniques subroutines Function Modules Methods events dialog modules How to use FM F4IF_INT_TABLE_VALUE_REQUEST This FM is used to display the values when u press F4 on a selection field. https://wiki.scn.sap.com/wiki/display/ABAP/ON+VALUE-REQUEST+event Internal Table events or control break statements AT FIRST AT LAST AT NEW AT END OF ON CHANGE OF Important things in ALV REUSE_ALV_GRID_DISPLAY. “Display … Continue reading Things to know in ABAP and ALV

Inner Join and parallel Cursor in ABAP

We will see some examples of inner join and parallel cursor in abap Parallel Cursor Method REPORT ZPARALLEL_CURSOR. DATA: it_ekko TYPE TABLE OF ekko, wa_ekko TYPE ekko, it_ekpo TYPE TABLE OF ekpo, wa_ekpo TYPE ekpo. DATA: lv_tabix TYPE sy-tabix. SELECT * from ekko INTO TABLE it_ekko UP TO 50 ROWS. SELECT * from ekpo INTO … Continue reading Inner Join and parallel Cursor in ABAP

Basics of SAP ABAP Reports : SE38 

Events in a classical report Load-of-praogram This event is used to load program into memory for execution and this is the first event in execution sequence. Initialization This event is used to initialize variables, screen default values and other default actions. At Selection-Screen output By using this event we can manipulate dynamic selection-screen changes. At … Continue reading Basics of SAP ABAP Reports : SE38 

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

OO ALV FACTORY METHOD

CL_SALV_TABLE is the class used for this purpose When ever we use ALV factory methods to display ALV, we don`t need to create any field catalog, we can directly add our user defined tables instance as it automatically determine fields and displays. Below demonstrate a nice example REPORT ZSAPN_ALV_MARA_FACTORY. TYPES: BEGIN OF TY_MARA, MATNR TYPE … Continue reading OO ALV FACTORY METHOD

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

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