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

Programatically saving a job spool to a file

Former Member
0 Likes
422

Hello,

I am writing a bespoke program in which I call a SAP Standard program using the submit command.

I am creating a background job which will have multiple steps (each of which is a call to the standard program but with different parameters).

I want the job to produce a single spool rather than a spool per step of the job.

I can do this manually by changing the Spool Request Attributes (under Print Specifications) for each step such that "No new spool File" is set to Yes.

I have tried to use the Print Parameters option within the submit command todo the same thing but I keep getting multiple spools.

Can anyone help please?

Or if anyone knows another way of outputting the spool to a file that would be great.I have found a few functions which allow you to export th spool to memory and then read it later from there but the FM WRITE_LIST only seems to write to the screen not to a file.

Thanks,

Ruby

1 REPLY 1
Read only

Former Member
0 Likes
390

perhaps understanding why the system produces varíous spool files might give you a clue to solve the problem. some notes explain in detail about that - have a look:

note 3079 and the faq's 504952.