SAP

How does OData service works

OData services works through entity sets and entities. Data is represented in the form of Tables. Tables are referred as Entity sets and the lines of record are referred as entities. The Data is accessed through the following OData methods. These OData methods are referred as CRUD methods. OData Method Http Method Description and its …

How does OData service works Read More »

What is OData service in SAP

It is a http type protocol The protocol is between the other applications (Web browser etc) and SAP system. The OData-open data protocol supports two formats Atom and JSON. It can also be controlled in different ways through URLs. It follows the REST Architecture (Client/Server). The Data from the source side and the server side …

What is OData service in SAP Read More »

How to color the complete column of the SAP ALV Display of type CL_SALV_COLUMN_TABLE

The method set_color of the class CL_SALV_COLUMN_TABLE can be used to color the column of SAP ALV Display. The color codes are much similar to old ALV Display of type CL_GUI_ALV_GRID DATA lr_all_columns TYPE REF TO cl_salv_columns_table. DATA lr_single_column TYPE REF TO cl_salv_column_table. Lr_all_columns = lr_salv_table->get_columns( ). Lr_single_column ?= lr_all_columns->get_column(‘CONTACT_NAME’). DATA ls_color_column TYPE lvc_s_scol. Ls_color_column-col …

How to color the complete column of the SAP ALV Display of type CL_SALV_COLUMN_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 optimize the width of the column of type CL_SALV_COLUMNS_TABLE

               The width of the column is optimized through three methods. Optimize all columns. Optimize one single column. Manually set the width of columns. The optimization is based on the content of the ALV Table. Optimize all columns. In order to optimize all the columns of the ALV Table, call the set_optimize method of the …

How to optimize the width of the column of type CL_SALV_COLUMNS_TABLE Read More »

How to set the column position using the class CL_SALV_COLUMNS_TABLE?

The column position in the ALV Display can be controlled using the set_column_position method of the class CL_SALV_COLUMNS_TABLE. There are two parameter used in the method call. The column name identifies the column to be positioned. The position parameter mentions the position of the column in ALV Display. Let us look at the following example: …

How to set the column position using the class CL_SALV_COLUMNS_TABLE? Read More »

What is the difference between data reference and object reference in SAP ABAP

PARAMETER DATA OBJECT DEFINITION DATA lr_ref TYPE REF TO data. DATA lr_object TYPE REF TO object. CREATION CREATE DATA lr_ref TYPE REF TO (‘ZIF_INSTANCE’). CREATE OBJECT lr_object TYPE (‘ZCL_CLASS’). DEREFERENCE It can be dereferenced. The object or any value can be assigned to dereferenced reference variable.lr_ref->* = lr_object Object references cannot be dereferenced. This notation …

What is the difference between data reference and object reference in SAP ABAP Read More »