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