03-29-2007 10:51 AM
Need help in SAP HR issue.
My requirement is to generate PDF for payslip of an employee and store the same in SAP table.
SAP standard programs use HR form (transaction PE51) to generate payslips. I need to know, how to convert this generated payslip for an employee into PDF file (one PDF per employee).
If we run the payslip program in background and the use program RSTXPDFT4 to generate PDF, it returns me the single PDF for all employees. So this way can not be used.
Please advice.
Regards,
sarath
03-29-2007 11:12 AM
You can send the list output to spool.
print-on ...
PERFORM REPORT_OUTPUT.
print-off.
From there, you can convert that to pdf.
fm CONVERT_ABAPSPOOLJOB_2_PDF
Getting that pdf conversion done, you can send thE same to mail..
fm SO_NEW_DOCUMENT_ATT_SEND_API1
hopen it helps
reward poins if helpfull
navjot
03-29-2007 11:12 AM
You can send the list output to spool.
print-on ...
PERFORM REPORT_OUTPUT.
print-off.
From there, you can convert that to pdf.
fm CONVERT_ABAPSPOOLJOB_2_PDF
Getting that pdf conversion done, you can send thE same to mail..
fm SO_NEW_DOCUMENT_ATT_SEND_API1
hopen it helps
reward poins if helpfull
navjot