ABAP OO Class Methods

CL_SALV_TABLE SAP Class - Basis Class for Simple Tables

CL_SALV_TABLE is a standard SAP object class available within R/3 SAP systems depending on your version and release level. Below is the standard documentation available for this class interface including details of any methods, attributes, events etc...

You can view this information and more if you enter the class name CL_SALV_TABLE into the relevant SAP transactions such as SE24, SE80 or even SE84. Also see the Resources section below to view other useful tips, screenshots, links and general information related to this SAP class and its methods. Or even add your own for future reference.

This OO class has a superclass assigned to it, which means it will inherit its objects and methods. The superclass for CL_SALV_TABLE is CL_SALV_MODEL_LIST

Methods of CL_SALV_TABLE
A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.

Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD CL_ABAP_CHAR_UTILITIES=>methodname EXPORTING/IMPORTING...

CONSTRUCTOR - Constructor
DISPLAY - Output table
FACTORY - Get New Instance for ALV Table Object
GET_AGGREGATIONS - Get Aggregation Object
GET_COLUMNS - Get Column Object
GET_EVENT - Get Event Object
GET_FILTERS - Get Filter Object
GET_FUNCTIONS - Get Function Object
GET_METADATA - Gest the Metadata from the Front End in the PAI
GET_SELECTIONS - Get Selection Object
GET_SORTS - Get Sort Object
REFRESH - Rebuild Display
SET_DATA - Create New Instance with New Data Structure
TO_XML - To Xml

CL_SALV_TABLE Attributes
List of attributes within class CL_SALV_TABLE. These can be referenced using the following syntax CL_SALV_TABLE=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.

CONTAINER_NAME - Container Name
DISPLAY_OBJECT - ALV: Data Element for Constants
R_AGGREGATIONS - Aggregation Information
R_COLUMNS - Column Info
R_CONTAINER - Abstract Container for GUI Controls
R_FILTERS - Filter Info
R_SELECTIONS - Selections
R_TABLE - Data Table

Events of the Class CL_SALV_TABLE
Events are created within your class using special event handler methods. These must be registered at runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT EXPOTING...