Hi Gurus!!
I have a issue with a cl_salv_table=>factory attached to a Docking Container.
Here is my code set up, which might be wrong actually:
I've created a simple report, with a TOP and some include for PBO, PAI and routines. In the Report, I call a Screen, here 2000.
The TOP contains
DATA: docking_container TYPE REF TO cl_gui_docking_container, gc_table_alv TYPE REF TO cl_salv_table.
The Screen Flow is basic:
PROCESS BEFORE OUTPUT. MODULE status_2000. * PROCESS AFTER INPUT. MODULE user_command_2000.
With status_2000:
MODULE status_2000 OUTPUT. SET PF-STATUS 'STATUS'. * SET TITLEBAR 'xxx'. * Initialization of docking container IF docking_container IS INITIAL. CREATE OBJECT docking_container EXPORTING side = cl_gui_docking_container=>dock_at_bottom EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. MESSAGE a500. ENDIF. CALL METHOD docking_container->set_height EXPORTING height = 170. ENDIF. ENDMODULE. " STATUS_2000 OUTPUT
Then the Screen PAI looks dumb, but in this example, I have drastically made the code simpler 😉