Sap Abap
Sap Abap
z
z
Note: -
REUSE_ALV_GIRD_DISPLAY is the function module which
is used to display the output in a grid format.
REUSE_ALV_LIST_DISPLAY is the function module which
is used to display the output in a list format.
The input for the above two functions modules are two internal
tables.
1. Data internal table
2. Field CatLog internal table
z
Note: -
In SLIS we have one type i.e. SLIS_T_FIELDCAT_ALV which
contains all the fields related to field CatLog internal table. So
we simply declare our internal table by referring this.
SLIS is the type group which contains all the types related to
ALV.
Note: -
Whenever we are referring any type under any type group then
we must include the type group name by using “type-pools”
keyword.
z
List of ALV’s
ALV with structure
ALV with field cat log
ALV with layout options
ALV with field cat log merge
ALV with totals and sub totals
ALV with LOGO/ TOP OF PAGE / END OF LIST
Interactive ALV
Interactive ALV by calling a transaction
hierarchical ALV
Blocked ALV
ALV with Structures
Business Requirement
Develop a material master Report which displays all the fields
z
STEPS
Declare an internal table and work area for MARA table
Write an select statement to fetch the data
Call the function module REUSE_ALV_GRID_DISPLAY and
specify the Below parameters
Structure Name
Program Name
Itab Name
z
Top_of_page: -
It’s an event which is triggered at the top of each page.
Top_of_list: -
It’s an event which is triggered at the top of displayed output
list.
End_of_page: -
It’s an event which is triggered at the end of each page.
End_of_list: -
It’s an event which is triggered at the end of displayed output
list.
z
User command: -
It’s an event which is triggered at the time of user clicks on any
record of any list as well as any menu item.
This event acts like both at line-selection & at user-command.
Pf_status_set: -
It’s an event which is triggered at the time of attaching our GUI
to the program.
z
Whenever we are working with events then we must declare an event internal Table which
contains 2 Fields.
event
z
REUSE_ALV_COMMENTARY_WRITE: -
It’s the function module which is used to display the text top or
bottom events.
The input for the above function module is an IT which contains
two fields.
z
z
1. REUSE_ALV_LIST_DISPLAY
2. REUSE_ALV_GRID_DISPLAY
3. REUSE_ALV_HIERSEQ_LIST_DISPLAY
4. REUSE_ALV_COMMENTARY_WRITE
5. REUSE_ALV_BLOCK_LIST_DISPLAY
6. REUSE_ALV_FIELD CATALOG_MERGE
1. SLIS_T_FIELDCAT_ALV
2. SLIS_T_ALV
3. SLIS_T_LIST HEADER
4. SLIS_SELFIELD
5. SLIS_T_EXTAB
6. SLIS_LAYOUT_ALV
7. SLIS_KEYINFO_ALV
z
THANK YOU