06-30-2016 9:00 PM
Hi,
I am converting a SAPSript using SX_OBJECT_CONVERT_OTF_PDF to convert a PDF which I email out using CL_BCS, I also need to be able to send the PDF to the LP01 SPOOL. How can I programatically force the PDF to the spool and retrieve the spool ID?
I have also tried conververting using CONVERT_OTFSPOOLJOB_2_PDF, however even though I have set ls_itcpo-tdgetotf = ' '. I am not always getting a SPOOL ID which then will not allow the conversion to complete successfully. I have tried setting SAVE_OTF_SPOOL to 'ON' in RSTXPDF3 which does work, however the OSS note says not to leave this setting on for long.
I need to be able to both Email and send the PDF to the LP01 spool if there is an email address or just spool the PDF if there is no email address.
any input would be appreciated.
Thanks,
Jim
07-01-2016 1:18 PM
Since you already have the OTF data, why not submit that to spool? Function: PRINT_OTF.
Thanks,
Juwin
07-01-2016 7:04 AM
Why don't you print the SAPscript form instead of the PDF? (because PDF is not native in SAP systems, which only print natively ABAP lists and OTF, converters are provided to convert these formats to printer formats PCL, PostScript (etc.))
07-01-2016 1:18 PM
Since you already have the OTF data, why not submit that to spool? Function: PRINT_OTF.
Thanks,
Juwin
07-01-2016 5:11 PM