Spool number report change for 8.00A

Document ID : KB000089263
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Spool number report change for 8.00A
Resolution:
Detailed Description and Symptoms

Spool number is no longer a part of the SAP report for version 8.00A. How can we get this again in order to use it in our jobs?

In version 8.00A, the "reports" section of the job was cleaned up so that only requested information is listed in the report.  Some information available previously by default is no there.


Investigation
You can select the various reports to print in the SAP tab under "Optional reports" including "Spool directory" and "Step lists"—which now contains the spool number in a different format.  A sample script has been written to access this spool number for use in a PREP_PROCESS_REPORT.

Solution

To make e.g. the PREP_PROCESS_REPORT work again in version, you have to use: SSTP Step-list report for SAP jobs (ABAP jobs) instead of REP.  So the script in the Post Process tab will look like this:

:SET &HND# = PREP_PROCESS_REPORT(, , "SSTP","*Spool*")
:PROCESS &HND#
:  SET &LINE# = GET_PROCESS_LINE(&HND#)
:  SET &LINE# = STR_CUT(&LINE#,49,5)
:  PRINT "Spool Id = &LINE#"
! :  SET &TEST# = "PLOG FOUND"
:  TERM_PROCESS
:ENDPROCESS
:CLOSE_PROCESS &HND#

If you run this job and the "Step lists" tab is empty then you have to modify your STYLESHEET to display this information.