Skip to Content

Automatic Mail to Be triggered - IT0019

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    Oct 27, 2015 at 07:07 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • avatar image
    Former Member
    Oct 27, 2015 at 07:18 AM

    Dear Dhiren,

    Check the below document for Automatic mail generation

    Auto Updation of Date Specifications and 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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 28, 2015 at 07:22 AM

    Hi Dhiren

    Please see the following links:

    Regards,

    Shirin

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 28, 2015 at 09:37 AM

    Hi Dhiren Chheda,

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

    ????

    Thanks,

    Vijay SR

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2015 at 04:16 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 31, 2015 at 03:40 AM

    This issue is resolved,

    Opted for ABAP Development

    Thanks for support friends

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.