Está en la página 1de 4

ALV with Integrated Data Access

SAP has redesigned the classical ALV to ALV with Integrated Data Access to utilize the capabilities of inmemory computing in SAP HANA.
In classical ALV, SELECT queries will be written to get the set of data from database to application layer.
All the data processing logic happens in application layer and finally the data is stored in internal table
and then this final internal table is used in ALV to display the data. All UI operations like grouping,
sorting, aggregation and paging are done in application layer itself on selected data.
But, in ALV with Integrated Data Access (ALV with IDA) only selected data is sent to the UI to display the
data. All other operations like grouping, sorting, aggregation and paging are performed in SAP HANA
database and with this the data sent to the application layer is reduced.

To start developing the ABAP ALV report using ALV with IDA we need to get
familiar with class CL_SALV_GUI_TABLE_IDA. There are 3 methods available in
this class.
1. CREATE

Create ALV with integrated data access (IDA)

2. CREATE_FOR_CDS_VIEW Create ALV with IDA for Core Data Services(CDS)


3. DB_CAPABILITIES Capabilities supported by current DB

This document explains the use of method CREATE to display the ALV.
1. Create an ABAP program in Eclipse by providing the Name and Description. Click
on Next.

2. In the Selection of Transport Request window, choose the transport request. For
saving the program in $TMP package no transport request is required. Click
on Finish.

3. Below is the ABAP code to create and display ALV with IDA which will be
displaying the data of products in ALV using ALV with IDA from single table.
REPORT zdemo_alv_ida.
PARAMETER p_table TYPE dbtabl. " Database Table
cl_salv_gui_table_ida=>create( iv_table_name = p_table )->fullscreen( )->display( ).

4. Look at the above code, it does not used any SELECT query and internal table to
get the data from database into application layer. Instead it pushed this code to HANA
database with Integrated Data Access class and this way of development paradigm is
called Code Push Down.
5. Copy and paste the code. Save and activate the ABAP program. Now execute the
ABAP program to see the output. The output will look like below.

Press F8 or Execute.

También podría gustarte