ALV stands for ABAP List Viewer, used to display data as report/List. ALV is similar to classical reports but it will give additional features to the programmers.
Following are simple steps to build ALV,
- Data declarations
- Fetch the required data form the tables
- Prepare field catalog
- Build up the event table if required
- Display ALV output by Calling FM
Data Declaration
Declare the internal tables, work area, variables & constants which are require holding the data & further processing.
Fetch the required data from the data base table
Fetch & process the required data from the table & populate the data to be displayed in the final internal table.
Prepare Field catalog
Field catalog defines the format & properties of the fields to be displayed in the ALV output.
Build Event table
Prepare the internal tables which will hold the ALV events such as TOP_OF_PAGE, END_OF_PAGE.
Display ALV output
Display data in the ALV output by invoking FM (Function Modules).
REUSE_ALV_GRID_DISPLAY, REUSE_ALV_LIST_DISPLAY, REUSE_ALV_HIER_DISPLAY etc.
Thanks & Regards,
Venugopal M N