ABAYTHON

How to display icon in SAP ALV cell

There are three important steps involved in displaying icon in the ALV cell. Extension of Internal table with the additional field ICON_D. Filling the icon field to the records of ALV table. Assignment of field ‘ICON’ to field catalog. Extension of Internal table with field ICON_D. TYPES: BEGIN OF ty_contact.                             INCLUDE STRUCTURE ztt_db_table2.                             …

How to display icon in SAP ALV cell Read More »

How to set the cell of the ALV List as a Dropdown list in SAP ABAP?

It is used to provide a list of values as a Drop down List. There are three important steps involved in setting the cell as a drop down list. Filling the internal table lvc_t_dral. Setting the fields drdn_hndl, drdn_alias of field catalog. Call the method set_drop_down_table of the ALV object. Filling the internal table lvc_t_dral. …

How to set the cell of the ALV List as a Dropdown list in SAP ABAP? Read More »

How to set the position of column in SAP ALV List using Field catalog

The column position in the SAP ALV List can be changed using the COL_POS field of the field catalog. In the below example, the ‘contact_address’ column is set in the first position of the SAP ALV List. Field-SYMBOLS: <ls_field_cat> TYPE lvc_s_fcat. LOOP AT lt_field_cat ASSIGNING <ls_field_cat> WHERE fieldname = ‘CONTACT_ADDRESS’.      <ls_field_cat> -col_pos = 1. …

How to set the position of column in SAP ALV List using Field catalog Read More »