CL_SALV_TABLE

How to fill icons in SAP ALV Display of type CL_SALV_TABLE

In order to fill icons in ALV Table, we must add an additional field of type ICON_D. The type ICON_D is of datatype CHAR with length 4. This is later filled with the icon code. Step1: Define the icon field TYPE-POOLS: icon. TYPES: BEGIN OF ty_contact.                   INCLUDE STRUCTURE ztt_db_table2.                   TYPES: icon_field …

How to fill icons in SAP ALV Display of type CL_SALV_TABLE Read More »

What is the difference between check box and check box hotspot cell type in CL_SALV_TABLE?

Checkbox Checkbox Hotspot It is used just as a display of checkbox. It mentions that the particular line of record is selected. It can be used to trigger an event of type LINK_CLICK. The value of the checkbox cannot be changed. The value of checkbox can be changed. It is not used to manipulate the …

What is the difference between check box and check box hotspot cell type in CL_SALV_TABLE? Read More »

How to use various cell types in new SAP ALV Display of type CL_SALV_TABLE?

               The various cell types can be used both in container mode and complete mode. The cell types are constructed based on the Attribute of the Interface ‘IF_SALV_C_CELL_TYPE’. Type of cell Attribute of IF_SALV_C_CELL_TYPE Display mode container / complete Event Text => Text Both – Checkbox => Checkbox Both – Checkbox hotspot => checkbox_hotspot Both …

How to use various cell types in new SAP ALV Display of type CL_SALV_TABLE? Read More »

How to rename columns in SAP ALV DISPLAY of type CL_SALV_COLUMNS_TABLE.

The columns can be renamed with the object of the class cl_salv_column_table. There are four methods available such as SET_SHORT_TEXT (), SET_MEDIUM_TEXT(), SET_LONG_TEXT and SET_TOOLTIP(). The method can be chosen based on our requirement of text length. DATA lr_salv_columns_table TYPE REF TO cl_salv_columns_table. DATA lr_salv_column_table TYPE REF TO cl_salv_column_table. DATA lv_short_text TYPE scrtext_s. DATA lv_medium_text …

How to rename columns in SAP ALV DISPLAY of type CL_SALV_COLUMNS_TABLE. Read More »

How to insert and delete column in SAP ALV Display of type CL_SALV_TABLE.

The column is inserted through the field catalog of the ALV Table. It is set during the method call FACTORY (). Step1: Extend the structure either locally or globally through the Transaction SE11 with the additional field. TYPES: BEGIN OF ty_contact.                             INCLUDE STRUCTURE ztt_db_table2.                             TYPES: contact_age TYPE ZDE_contact_age.               END OF …

How to insert and delete column in SAP ALV Display of type CL_SALV_TABLE. Read More »

How to activate the functions Toolbar of new ALV Display CL_SALV_TABLE

By default, the function toolbar is not displayed in the new ALV Display. It must be activated. The functions object is retrieved from the ALV Object. In order to activate the complete function toolbar, the set_all( ) method of the function object must be called. DATA lr_functions_list TYPE REF TO cl_salv_functions_list. lr_functions_list = lr_alv_object->get_functions( ). …

How to activate the functions Toolbar of new ALV Display CL_SALV_TABLE Read More »