cancel
Showing results for 
Search instead for 
Did you mean: 

How to send payslip to different mails

0 Kudos

Hi Experts,

My requirement is sent the payslip to the respected employee through the mail. I have created a Z program and Z smartform to print payslips of 200 employees. I have converted the smartform to pdf and I have used SO_NEW_DOCUMENT_ATT_SEND_API1 function module. Here, How can I give all employee emails and how can I send mail to the respected employee without displaying smartform output to the user.

0 Kudos

sorry, I forgot to mention I didn't use any oops concept in this program

Accepted Solutions (0)

Answers (1)

Answers (1)

kaus19d
Active Contributor
0 Kudos

Hi Muralidhar G,

Since you want send the payslips to the employees mailboxes, having their SAP User Id should be updated with their correspondance mail-ids. Then you would need a "Send Job" which runs monthly once to send out all your employees payslips. So, for non-SAP employees, their mailboxes can be triggered manually too. So here comes, your mailbox should be configured to send out mails (SCOT configuration from BASIS side).

SAP Menu->Human Resources->Payroll->Region->Country->Payroll Accounting->HR Form: Print and Mail

Coming back to your initial query, you can also follow the below for sending out payslips,

https://answers.sap.com/questions/4189461/index.html

https://answers.sap.com/questions/8957298/how-we-can-sent-the-payslip-through-email.html

https://blogs.sap.com/2012/07/06/email-hr-payslips-as-pdf-attachment/

http://www.pdfencryption.de/fscenario.php

Thanks,

Kaushik