The normal wanted highlights of any report are "section arrangement", arranging, sifting, subtotals, sums and so on. To carry out these without any preparation , a great deal of coding exertion is to be put. To keep away from that we can utilize an idea called ABAP List Viewer (ALV).
In this instructional exercise you will learn:
Every one of these reports give capability modules which help in creating wanted yield absent a lot of exertion. Gives see them access detail -
Straightforward Report
Significant capability modules in these report are -
Reuse_alv_fieldcatalog_merge
Reuse_alv_list_display
Reuse_alv_events_get
Reuse_alv_grid_display
Reuse_alv_commentary_write
REUSE_ALV_FIELDCATALOG_MERGE
This capability module is utilized to populate a field list which is vital for show the information in ALV.In the event that the result information is from a solitary word reference table and every one of the segments are chosen, then, at that point, we really want not solely make the field list. Sufficiently its to specify the table name as a boundary (I_structure_name) in the REUSE_ALV_LIST_DISPLAY. However, in different cases we want to make it.
Note : Fieldcatalog can be filled physically likewise by topping off every one of the necessary subtleties into the inner table
Significant boundaries in are:
1. Trade:
I_program_name : report id
I_internal_tabname : the inward result table
I_inclname : incorporate or the report name where every one of the unique structures are dealt with.
2. Evolving
ct_fieldcat : an inward table with the sort SLIS_T_FIELDCAT_ALV which is proclaimed in the kind pool SLIS.
REUSE_ALV_LIST_DISPLAY
This is the capability module which prints the information.
The significant boundaries are:
1. Trade:
I_callback_program : report id
I_bypassing_buffer : 'X'
I_buffer_active : ' '
I_callback_pf_status_set : routine where a client can set his own pf status or change the usefulness of the current pf status.
I_callback_user_command : routine where the capability codes are taken care of.
I_structure name : name of the word reference table
Is_Layout : design to set the format of the report
It_fieldcat : inward table with the rundown of all fields and their characteristics which are to be printed (this table can be populated naturally by the capability)
It_events : inward table with a rundown of all potential occasions of ALV and their comparing structure names.
2. Tables:
a. t_outtab : interior table with the information to be yield
REUSE_ALV_EVENTS_GET:
Returns table of potential occasions for a rundown type
1. Import:
Et_Events :The occasion table is gotten back with all conceivable CALLBACK occasions for the predefined list type (segment 'NAME'). For occasions to be handled by the Callback, their 'Structure' field should be filled. Assuming the field is introduced, the occasion is disregarded. The passage can be perused from the occasion table, the field 'Structure' filled and the section changed utilizing constants from the kind pool SLIS.
2. Trade:
I_list_type: 0 = basic rundown REUSE_ALV_LIST_DISPLAY
1 = progressive consecutive rundown REUSE_ALV_HIERSEQ_LIST_DISPLAY
2 = basic block list REUSE_ALV_BLOCK_LIST_APPEND
3 = various leveled successive block list REUSE_ALV_BLOCK_LIST_HS_APPEND
REUSE_ALV_GRID_DISPLAY
Another capability from ABAP4.6 rendition, to show the outcomes in network as opposed to a see.
Boundaries : same as reuse_alv_list_display
Note:Grid can't deal with high volumes. Capabilities like sort, looking down consumes a great deal of assets/time if the volume of information to be shown is high. There is no obvious definition to such an extent that on the off chance that how much information is X go for rundown or matrix yet the designer needs to accept a call in view of his experience. While possibly not certain, then list is the better choice
REUSE_ALV_COMMENTARY_WRITE
This is utilized in the Top-of-page occasion to print the headings and different remarks for the rundown.
Significant Parameters
It_list_commentary : Internal table with the headings of the sort slis_t_listheader.
This inner table has three fields:
Typ : 'H' - header, 'S' - choice, 'A' - activity
Key : just when typ is 'S'.
Data : the text to be printed
Block Report
This seems to be a basic report however this report has the elements of arranging and separating only.This report is utilized on the off chance that you need to show more than one report on the result. In fact talking in the event that you have various inner table with information to be shown as isolated hinders then we go for block report of ALV.The significant capabilities utilized for making this report are:This capability module show the rundown with information attached by the above capability.Boundaries : All the boundaries are discretionary.
Progressive Reports
Progressive showcase is utilized for showing information that are connected. Like deals request and thing subtleties. Here deals request subtleties can be the header information though them things in the business request can be the thing informationThe capability module utilized for this isREUSE_ALV_HIERSEQ_LIST_DISPLAYTablest_outtab_header : Header table with information to be yieldt_outtab_item : Name of the inner table in the program containing the result information of the least ordered progression level.Every one of the meanings of interior tables, designs and constants are proclaimed in a kind pool called SLIS. This inward table can be populated naturally by utilizing REUSE_ALV_FIELDCATALOG_MERGE'.
Show Variants
Show variations are utilized to set the default properties of an alv yield like sort standards, separating models, adding up to and subtotaling and so forth
Show variations can be client explicit and standard (standard variations can be utilized by any client )
Sort of show variations that can be saved is constrained by the boundary i_save that is passed in capability modules reuse_alv_list_display/reuse_alv_grid_display
You can give a choice on the determination screen to choose what show variation to be utilized
The normal capability modules connected with choosing/approving presentation variations are.
Click Here For More Detail
What is ABAP? Full Form, Meaning, History
ABAP Data Dictionary Tutorial – Table, Lock Object, View & Structure