Complete SAP ABAP DEVELOPER Reporting Guide: Classical Reports, Events, Inner Joins & Interactive Reports Explained
SAP ABAP Classical Reports, Events, Inner Joins & Interactive Reporting – Complete Real-Time Guide
SAP ABAP reporting is one of the most important skills for every ABAP consultant. In real-time projects, you will work with Classical Reports, Interactive Reports, Select-Options, Events, System Fields, Inner Joins, and Database Access Enhancements.
This article provides step-by-step explanations, tables, events, and real-time ABAP programs.
🟦 1. What is a Classical Report in SAP ABAP?
A Classical Report displays output in a single list (basic list). It supports multiple list levels but mainly focuses on the primary output.
✔ Real-Time Use Cases
- Display vendor master list
- Material master reports
- Purchase order list
- Customer list
- Simple data extraction reports
🟦 2. Events Used in Classical Reports (Explained with Examples)
SAP ABAP Classical Reports trigger several system-defined events:
🔹 1. INITIALIZATION
Used to set default values in the selection screen.
🔹 2. AT SELECTION-SCREEN
Used for validation of selection screen fields.
🔹 3. START-OF-SELECTION
Default event for data selection logic.
🔹 4. END-OF-SELECTION
Used to process or display final output.
🔹 5. TOP-OF-PAGE
Used to display custom headers.
🔹 6. END-OF-PAGE
Used for page footer.
🟦 3. Complete Classical Report Program Using LFA1 Table
✔ Fields used
- LIFNR – Vendor Number
- NAME1 – Name
- ORT01 – City
- PSTLZ – Postal Code
✔ Real-Time Classical Report Program
🟦 4. Inner Join in SAP ABAP (Real-Time Example)
Inner Join is used when data is required from multiple related tables.
✔ Real-Time Scenario
Join SCARR (Airline Carrier) and SPFLI (Flight Schedule).
🟦 5. Interactive Reports in SAP ABAP
Interactive Reports allow the user to go from Basic List → Secondary List → Detailed List.
THE BELOW EVENTS ARE USED IN DEVELOPING ALV REPORTS.
- LEARN SAP ABAP ALV REPORTS PROGRAMS.
Main Events in Interactive Reports
| Event | Purpose |
|---|---|
| START-OF-SELECTION | Displays basic list |
| AT LINE-SELECTION | Triggered on double click |
| TOP-OF-PAGE DURING LINE-SELECTION | Header for secondary list |
| END-OF-PAGE | Footer section |
🟦 6. System Fields Used in Interactive Reports
Field | Description |
|---|---|
| SY-LSIND | List level index |
| SY-LISTI | Called from which list |
| SY-LISEL | Selected line content |
| SY-CUROW | Cursor row |
| SY-CUCOL | Cursor column |
| SY-UCOMM | Function code |
| SY-PFKEY | Status of the list |
Comments
Post a Comment