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: 

Background job display issue

former_member206377
Active Contributor
0 Kudos

Hi All,

I have a requirement where a report has to be run in background on a particular day every year. The data should be fetched from DB when the batch job is executed and the result should be stored in a table.

When the transaction for thsi report is accessed, it should fetch the data that has been fetched by background job and display it in ALV grid format.

Since the logic to display the output in ALV format also is in the same report that is scheduled to run in background, will there be any error message in the log when the background job is executed ?

Your inputs would be greatly appreciated.

Thanks,

Vasuki

1 REPLY 1

gerd_rother
Active Participant
0 Kudos

Hi Vasuki,

This depends on how your program works. I would write the program so in background it never runs into the part where the report is created (and of course in dialog it should not run into the data fetching part).

If you use the "REUSE_ALV_..._DISPLAY" function modules and they are executed in background those FMs simply create a spool list.

But why would you put both parts into one program? It does not make things easier. If you have some common program logic you should instead put them into reusable program objects, such like function modules or classes.

Regards,

Gerd Rother