cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic Mail to Be triggered - IT0019

dhirenchheda9
Participant
0 Kudos

Automatic Mail to Be triggered

Hello Experts,

Please help me!!

Scenario: Employee Joined on 01.01.2015

6 months’ Probation period, so IT-0019 is been set accordingly

Reminder date is set to 10 days prior to completion of probation period

10 days before completing probation period(reminder date), automatically mail has to be triggered to manager, reminding for the completion of probation period.

Please advise the best solutions for the same.

Regards,

Dhiren

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dhiren,

   Write one report program, for the same...

Steps :-

1. Select all the records from pa0019 where remider date eq sy-datum

2.Loop the selected records , and pass it to the mail sending FM ( Send email from ABAP with class CL_BCS - Code Gallery - SCN Wiki    or using fm SO_NEW_DOCUMENT_ATT_SEND_API1)


3.Put that report program as background job , everyday by morning 3 A.M

So for daily basis it will read the reminder date from pa0019, by sy-datum

Sure it will work

Thanks,

Vijay SR

dhirenchheda9
Participant
0 Kudos

Hello Vijaya kumar,

Thank you for your immediate reply.

But please can you tell me how the mail id to be linked, as mail has to be triggered to employees manager.

Former Member
0 Kudos

Hi Dhiren,

use the FM's

RH_GET_LEADING_POSITION

RH_STRUC_GET


for get managers for the employees, then pass the employee manager number to Infotype 0185 subty 0010 for get email id for the manager


or


Ask you Functional consultant how to find supervisor for the employee . from hrp1001 tbale, they will guide you, write a simple selecty query for the same


For getting Mail id , pass the employee number to IT0185 , and corresponding Email subtype, you will get


Thanks,

Vijay SR

Answers (5)

Answers (5)

dhirenchheda9
Participant
0 Kudos

This issue is resolved,

Opted for ABAP Development

Thanks for support friends

jagan_gunja
Active Contributor
0 Kudos

Check S_PH0_48000450 - Date Monitoring (under HR-> Pers.Mgt-> Admin-> InfoSystem-> Reports-> Employee).  Though it says date monitoring, it is described as Task monitoring.  The output can be sent to the employee's manager.

Alternatively, you can copy the related program as a Z- pgm and modify as required.  It is also possible to use ABAP Enhancement to modify a SAP standard program.

Custom development should be resorted to only when you can not use nor adopt existing programs.

Former Member
0 Kudos

Hi Dhiren,

I also got the same object,

could you please upload some sample code for the same.

(Notification mail trigger before 15 days for probation period.)

Thanks,

Kumar

Former Member
0 Kudos

Hi Dhiren Chheda,

   Did you got the Employees Manager by above said....

????

Thanks,

Vijay SR

Former Member
0 Kudos

Hi Dhiren

Please see the following links:

Regards,

Shirin

Former Member
0 Kudos

Dear Dhiren,

Check the below document for Automatic mail generation

And take the Abaper help for sending mail's for the specific user/admin by using program with daily checking of any notifications are there or not for that particular day.

Best regards