Skip to Content

How save spool automatically to local file ?

Mar 21, 2017 at 02:12 PM


avatar image

Hi experts,

I would like to know if there is any possibility- I would prefer some standard SAP functionality and ignore coding as much as possible - to save the result of the job (spool) automatically into a local file after background has been finished ?

Many thanks in advance,

Br David

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Mar 21, 2017 at 02:35 PM

Hi David,

May be not to local file.

However you can save to Application server or send job result via mail.

You can find code for converting spool jobs to pdf on community. Thanks


Mahendra Reddy

10 |10000 characters needed characters left characters exceeded
Raymond Giuseppi Mar 21, 2017 at 03:31 PM

There are some OSS notes to read (e.g. 6753 - Printing in file (to magnetic tape) or elsewhere for Unix) search for your OS.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Else, without your 'ignore coding as much as possible', you could

  1. Prevent immediate printing or insure keep after printing in print parameter of report
  2. Build a wrapper to copy spool(s) of previous background job step(s) to some file
  3. Call the wrapper in last step of background job

for second step loop in TBTC_SPOOLID with keys returned by GET_JOB_RUNTIME_INFO. then either copy the raw data from SAP or convert it to pdf (report RSTXPDFT4 or FM like CONVERT_OTFSPOOLJOB_2_PDF and CONVERT_ABAPSPOOLJOB_2_PDF)