We always get confused about the type of internal tables. So ABAP knows the three table types STANDARD, SORTED, and HASHED table. Each of these table types differs in the way they are declared, accessed, and changed during runtime. Lets understand this with the help of an example For the following declaration we use the local type ty_sales_order_item which has … Continue reading Tables in ABAP : Standard Sorted and Hashed
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
How to create GUI status and Title bar in ALV reports
For example, we have the below code for ALV and the object is activated, first you need to make sure that the GUI status and titlebar are in capital letters and follow the steps double click on the line which says set pf status 2. A dialog box will appear give a short text 3. … Continue reading How to create GUI status and Title bar in ALV reports
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
Object Oriented ALV – Classic OO Approach
Steps need to follow to create OOALV Create Screen Insert Custom Container UI element. Create Module. Create instance for Custom Container and add instance to ALV. Get data from tables Set data to ALV *&———————————————————————* *& Report ZOOALV_TEST_1 *& *&———————————————————————* *& *& *&———————————————————————* REPORT zooalv_test_1. TYPES : BEGIN OF ty_mara, matnr TYPE matnr, mtart TYPE … Continue reading Object Oriented ALV – Classic OO Approach
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