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: 

How save spool automatically to local file ?

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

Regards

Mahendra Reddy

raymond_giuseppi
Active Contributor
0 Kudos

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

0 Kudos

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)