Application Development and Automation 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: 
Read only

Background job processing for interactive ALV reports

Former Member
0 Likes
1,471

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,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,032

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.

5 REPLIES 5
Read only

Former Member
0 Likes
1,033

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.

Read only

JoffyJohn
Active Contributor
0 Likes
1,032

check the sytem variable

SY-BATCH = 'X' for background exceution and write logic to show write the secondary list

Read only

Former Member
0 Likes
1,032

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

Read only

Former Member
0 Likes
1,032

Hi ,

see this example wiki...

http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-ProgramforALVBlocklist

Prabhudas

Read only

Former Member
0 Likes
1,032

thanks...all replies are helpful....