We have created a Z program “/1pyxxfo/zhr_payslip_ksa_prnt” to generate Pay slips in Adobe forms to get pdf output.
Now we are required to send emails to all employees with this pdf as the attachment so we created another program “ZRHR_PAYSLIP_EMAIL_SEND” to call the first program and generate spool output. After this, we try to read the spool which fails. Below is the screenshot for your reference.
We tried a number of ways to read the spool but all fail. e.g. 'CONVERT_ABAPSPOOLJOB_2_PDF' / 'RSPO_RETURN_BIN_DATA' / 'RSPO_RETURN_SPOOLJOB'/ 'FPCOMP_CREATE_PDF_FROM_SPOOL'
We have two printers LP01 and LOCL, it does not work on both, It also fails when trying to execute the spool through “RSTXPDFT4”. Also, the generated pdf files don't have any pages and it's not able to open.
Kindly advise how I can resolve this issue.