{"audience":"Payroll teams and HR departments that want to stop distributing printed payslips.","authorization_objects":[{"note":"Read authorization for infotypes 0001, 0002 and 0105","object":"P_ORGIN"},{"note":"Authorization to read the payroll results cluster","object":"P_PCLX"},{"note":"Authorization to send external email through SAPconnect","object":"S_OC_SEND"}],"components":[],"countries":[],"effort_days_max":8,"effort_days_min":5,"effort_size":"M","faq":[{"a":"The standard ABAP PDF conversion does not encrypt. If Adobe Document Services or an email gateway with encryption is available in the landscape it can be used; the option is assessed for the system landscape during installation.","q":"Can the PDFs be password-protected?"},{"a":"No. The program uses the company's existing remuneration statement form (PE51 or HR Forms) as it is; it only splits the output per employee and sends it.","q":"Does the remuneration statement form change?"},{"a":"The program logs the send result for each employee; the status in the SAPconnect queue can be monitored in SOST. For emails that failed, the program can be run again with the resend option.","q":"How do I track whether an email was delivered?"}],"features":[{"code":"background","label":"Runs as a background job","note":""},{"code":"test_run","label":"Test mode (check without posting)","note":""},{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"email","label":"Send the result by email","note":""},{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""}],"functions":[{"name":"CONVERT_ABAPSPOOLJOB_2_PDF","role":"Converts the employee's payslip output to PDF"},{"name":"SO_DOCUMENT_SEND_API1","role":"Sends the PDF as an email attachment"}],"gap":"PC00_M99_CEDT produces the remuneration statement as one print list for all employees; it does not create a separate PDF per employee or send it by email. Companies without a self-service portal print and hand out payslips or split and send them by hand, which takes time and risks sending a payslip to the wrong person.","id":"hcm-payslip-pdf-email","industries":[],"input_columns":[],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. For the selected payroll area and period, employees with a valid payroll result are found in HRPY_RGDIR; period dates come from T549Q. Off-cycle results can be included optionally.\n2. For each employee the valid email address in PA0105 subtype 0010 is read; without an address the employee is flagged 'no email' and skipped. The language comes from PA0002-SPRSL.\n3. The standard remuneration statement program runs in the background for the single employee with the selected form; the output is written to a spool request.\n4. The spool request is converted to PDF with CONVERT_ABAPSPOOLJOB_2_PDF; the file name contains the period and personnel number.\n5. The PDF is sent as an attachment to the employee's email address with SO_DOCUMENT_SEND_API1. The send result (sent, no email, error) is logged per employee; employees already sent for the same period are skipped unless 'resend' is selected.","module":"HCM","object_type":"form","output_columns":[{"calculated":false,"formula":"","label":"Pers. no.","source_field":"PERNR","source_table":"HRPY_RGDIR"},{"calculated":false,"formula":"","label":"Name","source_field":"ENAME","source_table":"PA0001"},{"calculated":false,"formula":"","label":"Payroll period","source_field":"FPPER","source_table":"HRPY_RGDIR"},{"calculated":false,"formula":"","label":"Result seq. no.","source_field":"SEQNR","source_table":"HRPY_RGDIR"},{"calculated":false,"formula":"","label":"Email","source_field":"USRID_LONG","source_table":"PA0105"},{"calculated":true,"formula":"Number of pages of the converted spool request","label":"PDF pages","source_field":null,"source_table":null},{"calculated":true,"formula":"Sent, test, no email, already sent or error","label":"Status","source_field":null,"source_table":null},{"calculated":true,"formula":"Message from the conversion or send function","label":"Message","source_field":null,"source_table":null}],"parameters":[{"example":"TM","kind":"select_option","label":"Payroll area","name":"S_ABKRS","ref_field":"PA0001-ABKRS","required":true},{"example":"202611","kind":"parameter","label":"Payroll period (YYYYPP)","name":"P_PERIOD","ref_field":"HRPY_RGDIR-FPPER","required":true},{"example":"00001024","kind":"select_option","label":"Personnel number","name":"S_PERNR","ref_field":"PA0001-PERNR","required":false},{"example":"TR01","kind":"parameter","label":"Remuneration statement form","name":"P_FORM","ref_field":"","required":true},{"example":"","kind":"checkbox","label":"Include off-cycle results","name":"P_OFFCY","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Resend to employees already sent","name":"P_RESEND","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Test mode (create PDFs, do not send)","name":"P_TEST","ref_field":"","required":false}],"part_of":[],"performance":"For payroll areas above a thousand employees, run the program in the background as parallel jobs split by personnel number ranges. Test the capacity of the SAPconnect send queue (SOST) during installation.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=hcm-payslip-pdf-email","related":["hcm-bank-details-changed-control","hcm-payroll-wage-type-period-variance"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Produces the remuneration statement as a bulk print list; no PDF per employee and no email.","tcode":"PC00_M99_CEDT"},{"note":"Designs the remuneration statement form; does not send it.","tcode":"PE51"}],"summary":"A custom program that, after the payroll period is closed, turns each employee's standard remuneration statement (payslip) into a personal PDF and sends it to the email address in infotype 0105. The send result is logged per employee, and resending for the same period is controlled.","tables":[{"access":"read","join_on":"","role":"Employees with a valid payroll result in the period","table":"HRPY_RGDIR","variant":"both"},{"access":"read","join_on":"PA0105-PERNR = HRPY_RGDIR-PERNR AND PA0105-SUBTY = '0010'","role":"Employee's email address (subtype 0010)","table":"PA0105","variant":"both"},{"access":"read","join_on":"PA0001-PERNR = HRPY_RGDIR-PERNR","role":"Name and payroll area","table":"PA0001","variant":"both"},{"access":"read","join_on":"PA0002-PERNR = HRPY_RGDIR-PERNR","role":"Payslip language","table":"PA0002","variant":"both"},{"access":"read","join_on":"T549Q-PABRJ = LEFT(HRPY_RGDIR-FPPER, 4) AND T549Q-PABRP = RIGHT(HRPY_RGDIR-FPPER, 2)","role":"Payroll period start and end dates","table":"T549Q","variant":"both"}],"title":"Email Payslips as PDF to Employees Program","url":"https://nekuhub.com/en/programs/email-payslip-as-pdf-program/","vendor_id":"nekudos"}