Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to display two alv grids on the same screen through background job

Former Member
0 Kudos

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.

5 REPLIES 5

tarangini_katta
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

Hi,

'm facing the same problem. Have you got any solution for this?

Regards,

Viji