12-09-2008 11:48 AM
Hi all,
when I run a report with 2 ALV Grids on the same screen. Only the first ALV prints out, not the second one. I tried implementing Docking Container logic, but still only the first one show when I run in batch. How do we display both the grids.
Please find the logic I am using.
data: doc type ref to cl_gui_docking_container .
if cl_gui_alv_grid=>offline( ) is initial.
create object or_custom_container
exporting container_name = c_container.
create object grid
exporting i_parent = custom_container.
else .
create object grid
exporting i_parent = doc .
endif .
Thanks ,
Pradeep.
12-09-2008 4:53 PM
Hi pradeep,
This is the SAP standarad functionality u can't chenge this.
If you have two lavgrids it will display one one alngrid.
If you want to check after displaying the ALV click on the print button.It will display only one alv in spool.
It is not possiable to display two alv grids in Spool or in abckground.
Thanks
12-10-2008 4:20 AM
Hi,
According to the standard SAP functionality, ALV grids cannot be displayed in spool/background.
So if you want to display ALV in spool use the ALV List display.
Regards,
Mansi.
12-10-2008 7:25 AM
Hi Manasi,
Thanks for your reply, By using the docking container logic we can display the alv grid the problem is we can display only one grid while the report is run in background.
As per your solution if we use alv list display can we display two alv reports on the same page when the report is run in background?
Thanks,
Pradeep
12-10-2008 12:01 PM
Hi Pradeep,
IF you use ALV grid also then u can see the grid as list also. but only one grid output you can see.
Same problem with the list alos.
Whether it is list or grid in the spool it will display one one in the spool.
Thanks
05-04-2009 2:21 PM
Hi,
'm facing the same problem. Have you got any solution for this?
Regards,
Viji