ABAP Internal Tables Explained: Types and Usage

Internal tables are structures which are used to store temporary data during processing of an ABAP program. Following are the different kind of internal tables STANDARD SORTED HASHED CategoryInternally managed byAccessPrimary table keyWhen to useHintsSTANDARDPrimary table index (that's why these tables are called index tables)Table indexTable keyAlways non-unique, i.e. duplicate entries are always allowedDefinition of an … Continue reading ABAP Internal Tables Explained: Types and Usage

ABAP ALV: Customizing User Commands with Callback Functions

It will be same as ALV EVENTS mentioned above only the call back program parameter will change while calling the FM REUSE_ALV_GRID_DISPLAY. we will pass the user command and perform the action accordingly. Please see the highlighted part which is different from the program mentioned for ALV EVENTS Example **&---------------------------------------------------------------------* **& Report ZALV_TEST_1 **& **&---------------------------------------------------------------------* … Continue reading ABAP ALV: Customizing User Commands with Callback Functions

Displaying multiple ALV on the same and Dynamic ALV’s

BLOCK LIST ALV is is used to display multiple ALV`s on the same screen with blocks. List of Function Modules used for blocked list ALV REUSE_ALV_BLOCK_LIST_INIT: is used to initialize blocked list ALV. REUSE_ALV_BLOCK_LIST_APPEND: is used to add blocked list ALV’s(we can add multiple). REUSE_ALV_BLOCK_LIST_DISPLAY: is used to display blocked list ALV. Dynamic ALV's *&---------------------------------------------------------------------* *& Report ZALV_DYNAMIC_TABLE *& *&---------------------------------------------------------------------* … Continue reading Displaying multiple ALV on the same and Dynamic ALV’s

Important points ALV and ALV events

FM's to remember REUSE_ALV_GRID_DISPLAY. “Display ALV grid format REUSE_ALV_LIST_DISPLAY. “Display ALV List format REUSE_ALV_COMMENTARY_WRITE. “Display Top of page, logo, etc. REUSE_ALV_FIELDCATELOGUE_MERGE. “Used to generate field catalogue REUSE_ALV_EVENTS_GET. “Use events in ALV REUSE_ALV_HEIRARCHY_LIST_DISPLAY. “Display ALV Hierarchy Field Catalog Field catalog is an internal table which is used to pass a list of fields to display in … Continue reading Important points ALV and ALV events

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