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: 

Question on report output to be sent as spool for a job

bala_krishna007
Participant
0 Kudos

Hi All,

I want to send the report output of a simple alv list display to be displayed and also the should start a job with the output of the current report to be sent as spool.

In simple words If I am running a report in background it creates a job and spool, now I will run in foreground I want the same report output to be displayed and also a job should be started along with the spool,

I know that if there are two reports we can submit report B from Report A with job open and submit and via job name.

please suggest

8 REPLIES 8

0 Kudos

Hello,

Did you try using the option sy-batch = ' ' and using FM's JOB-OPEN, JOB-SUBMIT and JOB-CLOSE from your program ?

Best Regards

Swanand

raymond_giuseppi
Active Contributor

Could you reformulate, do you want to

  • execute the report actually in background and display the generated spool from your original transaction
  • execute the report as if it was executed in background and display the spool
  • is this a standard report or are you allowed to change it

and why?

bala_krishna007
Participant
0 Kudos

Hi Giuseppi,

I want to run a custom report in foreground , the output is an alv list display.

The output of the report should be shown as spool where it should start a new job ,

0 Kudos

What do you mean with "where it should start a new job"?

Once the report shows the output, do you want it starts a job? Why?

bala_krishna007
Participant
0 Kudos

Hi,

Yes it should store the report output as a spool starting a new job in SM37.

thanks,

bala

0 Kudos

Why? Which is your scenario?
If you have the report running online, you already have your output!

bala_krishna007
Participant
0 Kudos

Hi Simone Milesi,

The report actually updates the description of a material via BAPI. So they want to keep track of the materials they had updated where they can check in JOB log spool.

Thanks,

bala

0 Kudos

Then send the alv via mail or store it as file somewhere.

It's surely a better option than triggering the same report you just executed via job.

And, even more, if the report updates data, you resubmit it and...try to update again??