‎2010 Sep 27 11:19 AM
Hello Everyone,
I have scheduled the background job for the Interactive report. After completion of job , I checked the spool request.
But in that it is showing only output from first screen i.e. basic list only. It is not showing output from detailed list.
I want to create spool request which will contain both basic list and detailed list also.
Is it possible?
Please help....
thanks,
‎2010 Sep 27 12:07 PM
Hi Kirti,
When you run an ALV report in the background - you will only see the basic list as an ABAP list. The ALV functionality requires an active UI session at runtime to be able to be interactive - and as you run it in background - that is not the case. All you see attached to the job is a spool display of the basic list converted to list output (as you have noted in your post).
If you were to design your report in such a way that the selection logic is seperated from the user interface - one thing you could do - is store the results in a flat file or table with a batch program - and then have a small abap just for the interactive part - to run off of the stored data - but it probably requires a bit of redesign / recoding work.
‎2010 Sep 27 12:07 PM
Hi Kirti,
When you run an ALV report in the background - you will only see the basic list as an ABAP list. The ALV functionality requires an active UI session at runtime to be able to be interactive - and as you run it in background - that is not the case. All you see attached to the job is a spool display of the basic list converted to list output (as you have noted in your post).
If you were to design your report in such a way that the selection logic is seperated from the user interface - one thing you could do - is store the results in a flat file or table with a batch program - and then have a small abap just for the interactive part - to run off of the stored data - but it probably requires a bit of redesign / recoding work.
‎2010 Sep 27 12:15 PM
check the sytem variable
SY-BATCH = 'X' for background exceution and write logic to show write the secondary list
‎2010 Sep 27 12:28 PM
Hi,
Use Bloack ALV display for displayingh the basic list and 2nd list at the same time in the spool. Fm is REUSE_ALV_BLOCK_LIST_DISPLAY.
Amitava
‎2010 Sep 27 12:34 PM
Hi ,
see this example wiki...
http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-ProgramforALVBlocklist
Prabhudas
‎2010 Sep 27 1:04 PM