Reports are a major part of application development used to display data to users. There are three main types of reports:
Classical Reports
- Simplest and most basic report type.
- Output is in line-by-line format using
WRITE
statements. - Limited formatting, but supports interactive features like
AT LINE-SELECTION
.
Used for: Simple lists, master data overviews, basic reporting.
Interactive Reports
- Extension of classical reports.
- Allows drill-down capability: click on a row to see detailed data (secondary list).
- Can have up to 20 secondary lists.
Used for: Master-detail views, like viewing sales orders from a list of customers.
Key event: AT LINE-SELECTION
ALV Reports (ABAP List Viewer)
- Provides a powerful, flexible, and interactive table display.
- Includes sorting, filtering, exporting, column formatting, etc.
- Can be simple ALV, ALV Grid, or ALV with OO (Object-Oriented) approach.
Used for: Complex and user-friendly reporting.
Main function modules/classes:
REUSE_ALV_GRID_DISPLAY
CL_GUI_ALV_GRID
CL_SALV_TABLE
(for OO ALV)