03-21-2017 2:12 PM
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
03-21-2017 2: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
Regards
Mahendra Reddy
03-21-2017 3: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.
03-23-2017 7:46 AM
Else, without your 'ignore coding as much as possible', you could
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)