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