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: 

Regarding PE51

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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