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: 

Recover spool of step 1 from step2 in a job

former_member582701
Contributor
0 Kudos

Hi!

We have a job which contains one step.

Now, we have to add a new step in order to do some things (we can not change the program of first step)

We need to obtain some information from the spool generated in the first step. How we can get this spool number?

In SY-SPONO we will have this spool number? Also, if first step generates more than one spool number. How we can recover all of them?

Thank you in advance

1 REPLY 1

ThomasZloch
Active Contributor
0 Kudos

In that second program, call FM GET_JOB_RUNTIME_INFO to obtain JOBCOUNT of the presently running job. With JOBCOUNT, read table TBTCP to obtain LISTIDENT of step 1. LISTIDENT is the spool number, use that to call FM RSPO_RETURN_ABAP_SPOOLJOB to obtain the spool.

Greetings

Thomas