Hi Friends,
I want to display multiple alv on single screen for a report which has to be run in the background.
I have tried using the docking container which I found on the SCN as below;
* Check whether the program is run in batch or foreground
IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
* Run in foreground
CREATE OBJECT R_CONTROL EXPORTING CONTAINER_NAME = 'CONTAINER_1'.
CREATE OBJECT R_GRID EXPORTING I_PARENT = R_CONTROL.
ELSE.
* Run in background
CREATE OBJECT R_GRID EXPORTING I_PARENT = G_DOCK.
ENDIF.</b>
* Structure ZBA_MARA1 is defined in DDIC as linetype
CALL METHOD R_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME = 'MARA'
CHANGING
IT_OUTTAB = ITAB.
ENDIF.
But using this I am able to display only one output at a time on the screen.
Can you please let me know how to handle this issue.
Regards,
Swapnil