cancel
Showing results for 
Search instead for 
Did you mean: 

How to return a Spool request number

kowong
Participant
0 Kudos

Hi All,

SUBMIT YMM00001 TO SAP-SPOOL

SPOOL ....

ARCHIVE PARAMETE.....

........

AND RETURN

VIA JOB LOCAL_JOB-JOBNAME NUMBER LOCAL_JOB-JOBCOUNT

WITH para.........

Can anyone tell what's the code to return Spool request number after submit a background job ?

Message was edited by: Kokwei Wong

Accepted Solutions (1)

Accepted Solutions (1)

former_member188685
Active Contributor
0 Kudos

Hi,

there is one way...

before submitting get the latest spool number from TSP01 table(with date,user,latest one),which will store the spool numbers.

after submitting again get the latest spool number from

TSP01 table(with date, user,latest one)

and compare both of them previous one and present one.

if they are same then no spool, if they are not same then take the present one as new spool generated.

Regards

vijay

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi kokwei,

1. I don't think using submit,

there is any DIRECT way

to knowing the spool number.

2. For what purpose do u require this spool number?

3. U can use fm LIST_FROM_MEMORY

to get the contents of the list output

which is in memory/spool.

regards,

amit m.