Abap Alv Oops Interview Questions And Answers May 2026

2. How do you handle events like "Double Click" or "Hotspot Click" in OOP?

: Create a class with a method FOR EVENT double_click OF cl_gui_alv_grid .

To enable editing, you must modify the Field Catalog ( LVC_S_FCAT ). Set the EDIT field to 'X' for the desired column. Use the method set_ready_for_input on the grid instance. Abap Alv Oops Interview Questions And Answers

: When the user clicks, the system automatically calls your method. 3. How do you make specific cells or rows editable?

This is a common "gotcha" question. When a user types in an editable ALV, the backend internal table is not updated until the data is validated. Calling grid->check_changed_data manually triggers the validation and synchronizes the frontend grid with your backend internal table. 5. How do you refresh the ALV after data modification? To enable editing, you must modify the Field

Use the method refresh_table_display . You can pass a soft_refresh parameter (type LVC_S_STBL ) to maintain the user's current scroll position and selected rows while updating the content. Advanced Technical Patterns Field Catalog Generation

: The physical area on a screen where the grid is rendered. Critical Interview Questions and Insights : When the user clicks, the system automatically

The CL_SALV_TABLE class is often preferred for simple, read-only displays. It uses a "Factory" pattern ( cl_salv_table=>factory ). It is much faster to implement because it doesn't require a screen or container definition, but it is intentionally limited—it does not support cell-level editing without significant workarounds. Summary Table: Key Classes Class Name CL_GUI_CUSTOM_CONTAINER Binds the ALV to a specific area on a GUI screen. CL_GUI_ALV_GRID The engine that renders and manages the grid data. LVC_S_FCAT Structure for defining column attributes (Field Catalog). LVC_S_LAYO Structure for defining overall grid appearance (Layout).