ERPClimb logoERPClimb

SAP ABAP ALV Reports Interview Questions

ALV Reports is a standard block in SAP ABAP interviews. It is rarely asked as a definition; it is asked as a situation you have to talk your way through.

Master classical and modern ALV reporting with CL_SALV_TABLE, REUSE_ALV_GRID_DISPLAY, field catalogs, layouts, hotspots, events, editable ALV, colors and real project drill-down scenarios.

This page carries 15 reviewed SAP ABAP alv reports interview questions, each with a complete written answer and no sign-in required. The set breaks down into 6 foundational, 7 mid-level and 2 advanced questions, so you can start at the top for a first interview or skip ahead to the scenario-based items for a senior round.

Treat the answers as a starting structure, not a script. Interviewers in SAP ABAP rounds follow up on whatever you sound least certain about, so the value is in being able to keep going after the first answer.

15 ALV Reports questions with answers

easyALV Reports

1. Difference between CL_SALV_TABLE and CL_GUI_ALV_GRID.

CL_SALV_TABLE is a simpler, read-only grid built on the same technology. CL_GUI_ALV_GRID is a control-based grid supporting editable cells, split screens and custom toolbars but is heavier to code.
easyALV Reports

2. What is ALV and why is it preferred over WRITE lists?

ALV (ABAP List Viewer) is a standard grid that provides sorting, filtering, layout variants, export to Excel, print preview and integration with authorisations — all without extra coding. WRITE lists have none of that.
easyALV Reports

3. What are the main differences between CL_SALV_TABLE and REUSE_ALV_GRID_DISPLAY?

REUSE_ALV_* is the older function-module-based ALV; it is verbose and less object-oriented, but supports editable cells. CL_SALV_TABLE is a modern OO wrapper that is simpler to build, supports full-screen and container display, functions, sort/filter, top-of-page, and event handling via CL_SALV_EVENTS_TABLE. It does NOT support editable ALV out of the box; for editable use CL_GUI_ALV_GRID with SET_TABLE_FOR_FIRST_DISPLAY.
easyALV Reports

4. A finance ALV shows technical field names as headers and amounts converted to text columns, so totals and currency formatting don't work. How do you fix the field catalog?

Technical headers mean the catalog lacks texts — usually because the output structure uses generic types instead of DDIC data elements, or the catalog was built manually without texts. I would type the output structure with data elements (or ref_table/ref_field in the catalog) so headers and F1 help come from DDIC, and set coltext only where a different label is needed. Amounts must stay numeric (CURR/packed) in the output table, not converted to text; then do_sum works and cfieldname links each amount to its currency column (WAERS) so decimals are correct per currency. Quantities get qfieldname for the unit. Result: correct headers, sums, subtotals and currency formatting, and Excel export keeps numbers.
easyALV Reports

5. A reconciliation ALV uses only green and red cell backgrounds to show matches and mismatches. What would you improve?

Color alone is a problem: color-blind users cannot distinguish red and green, colors are lost when exported to Excel, and there is no filterable value. I would add a status column with a clear value (Matched / Difference / Missing) and optionally an icon or traffic light (exception column with 1/2/3) so users can sort and filter on it. Colors remain as an extra signal: row color via info_fname or cell color via lvc_t_scol for the differing field only. The color and status rules sit in one routine, agreed with the business, and are consistent across reports. The status column also appears in exports.
easyALV Reports

6. A finance ALV report selects data inside the display routine and mixes reconciliation logic with field catalog code. How would you structure it?

I would separate the report into clear stages: selection screen and checks (AT SELECTION-SCREEN), data retrieval (SELECTs into internal tables, ideally with joins or FOR ALL ENTRIES and no SELECT in loops), processing (reconciliation logic producing the output table), and display (field catalog, layout, ALV call). Each stage is its own FORM in legacy style or method of a local class lcl_report. The display routine should only receive the prepared output table. Reconciliation rules go into their own unit so they can be tested and reused, and the output structure is a dedicated type (preferably DDIC) for the catalog. This makes performance tuning, changes to layout and logic independent of each other.
mediumALV Reports

7. A logistics cockpit implements delivery blocking directly inside the ALV toolbar event handler, including SELECTs, updates and COMMIT per row. What is wrong and how would you restructure it?

The event handler should only interpret the user action: read selected rows (get_selected_rows), confirm, call the business logic and refresh the grid. Putting database updates and a COMMIT per row inside it mixes UI with business logic, prevents reuse (e.g. by a background job) and makes the operation non-atomic. I would move blocking into a service class or FM that takes the list of deliveries, locks them, uses the standard API (BAPI/FM for delivery changes) rather than direct table updates, collects messages and commits once (or per logical unit as required). The handler calls it, shows the message log and updates the status column before refresh_table_display.
mediumALV Reports

8. A finance inquiry report was built with CL_GUI_ALV_GRID, a screen and a container, but it is display-only. Would you rebuild it with CL_SALV_TABLE? What are the trade-offs?

For a display-only inquiry, CL_SALV_TABLE is simpler: no screen, no container, no field catalog — factory, functions, columns and display. Less code means fewer bugs and faster changes. It supports sorts, aggregations, layouts, hotspots and double-click via events, and can also run inside a container. Trade-offs: SALV is not designed for editing, offers fewer events and less toolbar control than CL_GUI_ALV_GRID, and column settings are done via objects with exceptions (CX_SALV_NOT_FOUND). If the report may soon need editing or complex toolbar logic, keeping CL_GUI_ALV_GRID is reasonable. I would not rewrite a stable report just for style; I'd use SALV for new display reports and when the existing one needs major changes anyway.
mediumALV Reports

9. A finance ALV opens billing documents with SET PARAMETER and CALL TRANSACTION, but some users get errors and others see documents they should not. How do you make the drill-down robust?

I would first verify the navigation: correct parameter ID from the data element of the billing document number (check it in SE11), the right transaction (VF03) and AND SKIP FIRST SCREEN. Then authorization: before calling, check S_TCODE for VF03 (or use CALL TRANSACTION … WITH AUTHORITY-CHECK in newer releases) and give a clear message instead of an error screen. The called transaction also checks its own business authorizations, so documents outside the user's sales org are blocked there — but the list itself should not show them either, so the report checks sales org authorization when selecting data. Finally, read the clicked row by the index provided by the event on the original table, so sorted or filtered views don't open the wrong document.
mediumALV Reports

10. In a custom transaction with CL_GUI_ALV_GRID, the screen becomes slower on every refresh and eventually hangs. What is the likely cause and fix?

The typical cause is creating the container and grid in PBO on every screen round trip. Each time a new control is created and stacked on the old ones, consuming frontend and backend resources. The fix is the standard pattern: IF go_grid IS INITIAL — create container, grid, catalog and call set_table_for_first_display once. Afterwards only update the internal table and call refresh_table_display( is_stable = … ) to keep the scroll position. On leaving the screen, free the container (go_container->free( )) and clear references. I would also check that the output table is global (the grid holds a reference) and that event handlers are registered only once.
mediumALV Reports

11. An editable ALV for approvals updates every displayed row on save, even unchanged ones, and occasionally overwrites another user's change. How do you fix the save logic?

First, call check_changed_data( ) so pending input is transferred. Then determine only the changed rows — either from the DATA_CHANGED event (collect row IDs from mt_good_cells) or by comparing with a copy of the original table. Only those are saved. To prevent overwriting, lock the entries with an ENQUEUE lock object when entering edit mode (or before saving) and reread/compare a change timestamp before updating; if the record changed meanwhile, reject and inform the user. Validation happens in DATA_CHANGED with protocol entries, the update is done in one LUW with one COMMIT (or via the proper API), and a change log records who approved what.
mediumALV Reports

12. A sales ALV shows one grand total for invoices in USD, EUR and GBP. Why is that wrong and how do you fix it?

Adding amounts in different currencies is meaningless. ALV handles it correctly only if each amount column has a currency reference: with cfieldname set, ALV totals per currency and shows one total line per currency instead of a single mixed sum. So I set cfieldname = 'WAERK' on the amount columns, add a default sort by currency (and e.g. customer) with subtotals, and keep do_sum on the amount. If the business needs one comparable total, I add a converted column in company currency (CONVERT_TO_LOCAL_CURRENCY with a defined rate type and date) and total that. Users can save a layout with their preferred grouping.
mediumALV Reports

13. A custom aging ALV hides credit limit fields for some users using no_out, but still selects all customers and all fields. Is this secure? How do you fix it?

No. no_out only hides the column initially; users can display it through the layout dialog, and export contains all data in the output table. Also, selecting all customers ignores organizational authorization. I would check authorization on credit control area / company code at the selection screen and remove rows for org units the user may not see (checking each distinct value once). For the credit limit, a separate authorization (standard object or custom via SU21) decides whether the value is filled; without it the field is cleared or masked in the output table and the column set to tech. Export functions can be excluded for restricted users. Finally, test with a restricted user and trace checks with STAUTHTRACE.
hardALV Reports

14. Business asks for editable ALV that posts to backend. How do you design it?

Use CL_GUI_ALV_GRID with an event handler for DATA_CHANGED, validate rows in the handler, buffer changes into an internal table, and post via BAPI on SAVE. Wrap the persistence in a class so the same logic can back a Fiori equivalent later.
hardALV Reports

15. ALV freezes on a 500k row internal table. Options?

Load in packages with a progress indicator, filter server-side before display, switch to a Fiori list report with paging, or use hierarchical ALV to collapse detail rows. Avoid TOP-OF-PAGE reprocessing on every scroll.

Related lesson

ALV Reports Part 4: The Field Catalog in Depth

Related topics

Next practice step

Go deeper on this topic