How to send a reminder maill at 3 months before retiring date?

Dear all,
if I need to send a reminder mail to the related HR administrator before 3 months of the employee's retire date, how should I do it?
Should I write a batch program for it? 
Thanks a lot for any suggestions!

Hello Lucy
               You can shedule this program for running every day at 12 o clock.it will not affect system performance.Check infotype 41date type - 42 last working day.(provided you are updating while hiring date type 42).
Program Logic :
1. Check infotype 41 date type 42.
2.Check the difference in dates and months (system date and date type 42) using function module (HR_HK_DIFF_BT_2_DATES).
3.If 3 months ,send a remainder mail.
Hope this will help you for coding.
Regards,
Manoj.
Message was edited by:
        manoj kumar

Similar Messages

  • How to get LASTDAY for each and every month between given dates..

    Hi Friend,
    I have a doubt,How to get LASTDAY for each and every month between given dates..
    for ex:
    My Input will be look like this
    from date = 12-01-2011
    To date = 14-04-2011
    And i need an output like
    31-01-2011
    28-02-2011
    31-03-2011
    is there any way to achieve through sql query in oracle
    Advance thanks for all helping friends

    Here's a 8i solution :
    select add_months(
             trunc(
               to_date('12-01-2011','DD-MM-YYYY')
             ,'MM'
           , rownum ) - 1 as results
    from all_objects
    where rownum <= ( months_between( trunc(to_date('14-04-2011','DD-MM-YYYY'), 'MM'),
                                      trunc(to_date('12-01-2011','DD-MM-YYYY'), 'MM') ) );
    The above two query is worked in oracle 11GActually the first query I posted is not correct.
    It should work better with
    months_between(
       trunc(to_date(:dt_end,'DD-MM-YYYY'),'MM'),
       trunc(to_date(:dt_start,'DD-MM-YYYY'),'MM')
    )Edited by: odie_63 on 12 janv. 2011 13:53
    Edited by: odie_63 on 12 janv. 2011 14:11

  • How to send automatic "reminder mails" after certain time

    Hi Experts,
    There is a problem which I am not able to solve, Please help !
    Requirement: 1. After the creation of a certain task, a mail should go to the user... this I have done using the Java Mail API.
    *2. After 2 days if the user don perform certain task, a reminder mail should be send to him EVERYDAY after the INITIAL 2 days.*
    how to achieve this in the Java mail.. I have heard of Java mail Schedulers but I am not able to find it.. If you can give me some guide or some steps or some article for this I would be very very gratefu to you.
    Please treat it as urgent and give your valuable suggestions.
    Thanx in advance.
    Regards,
    Rajat

    Nope. It means that if you want to schedule something, use code which does scheduling. Like Quartz for example. Bear in mind that the "something" in this case would involve sending an e-mail, but your scheduler wouldn't care about that.

  • How to send (Dunning) reminder before due dates.

    Hi ,
    As per the customer requirement, i have to send a dunning reminder before due (10,5,2) days. Let me know if there is any standards available or any alternate solution.
    Regards
    KC
    Edited by: SAPFINANCE on Jul 7, 2010 3:23 AM

    yes if the any single due items are there to that particular dunning date, it is possible to print the not due items(open items) from the following setting.
    Check in the dunning settings in FBMP. if you have to  tick  "print all Items" check box in Dunning levels tab. If this is ticked then it will cover all items.
    without having any due item standard SAP will not allow to print dunning letter.
    for example customer account having 5 line items, out of which one line item today is due date, remaining 4 line items not due as on today and it will be due on after 12.08.2010. If you run the dunning letter with today date system will show today due item and also shows the other 4 line items with due dates and days arrears. printout also shows the total of due items and account balances. due item  same as one item, account balances same as total 5 line item total.
    due date showing future date for 4 line items, days errors showing days in Minus sign.

  • ** How to send 2 IDocs DEBMAS06, ADRMAS03 only if both contains data?

    Hi Friends,
    My scenario is like below. Whenever create a new customer or change an existing customer (XD01/XD02), we distributes the IDoc DEBMAS06 & ADRMAS03 from one SAP system to other SAP system through XI.
    The present scenario  is if DEBMAS06 IDoc gets failed (due to some reason) and ADRMAS03 created successfully it will be distributed to XI and processed successfully and reaches the target system. But, the customer wants only when both IDocs created successfully, the XI should process the message.
    To achieve this,
    1) Both IDocs are exported and the occurrences of  IDoc node changed to  0..1 .
    2) Now the DEBMAS06 IDoc segment occurrence is 0..1 likewise ADRMAS03 IDoc segment occurrence is 0..1. Both are imported in External Definitions.
    3) Created Message Mapping - Source Side 2 Messages (DEBMAS.DEBMAS06) & (ADRMAS.ADRMAS03). Likewise, the target side the same 2 messages.
    4) We put the condition by checking IDoc Node and tested that it is working fine. (DEBMAS06-E1KNA1M-KUNNR is not initial then only ADRMAS03 IDoc will be created. Likewise, ADRMAS03-E1ADRMAS-OBJ_ID is not initial then only DEBMAS06 IDoc will be created.)
    5)  We created 4 Message Interfaces and one interface mapping. Source Side 2 Interfaces are there : DEBMAS06_OUT, ADRMAS03_OUT. Target Side 2 interfaces DEBMAS06_IN, ADRMAS03_IN. The mapping program created in Step 4 is used . Consistency is checked. It is OK. Tested the mapping. Fine.
    Now, how do we configure receiver determination in Integration Directory Side ? Because, Sender Side 2 interfaces are there ?
    Kindly reply me friends about the ID configuration briefly for the above design.
    Thanking you.
    Kind Regards,
    Jegathees P

    Hi,
    You have 2 sender interfaces, so you will need to have a BPM which will collect these 2 IDOCs in 2 receive steps and map them to target interfaces.......in BPM you can have a wait step to collect the IDOCs and if in this time the IDOCs didnot arrive, you can cancel the BPM process, so stopping these IDOCs to reach target system.
    Regards,
    Rajeev Gupta

  • How to send a list item value to URL to open data related to item value

    Hi,
    Iam using Apex4.0 and iam facing some problem. Iam unable to send selected list item value to the url specified in the HTMl region.
    Here i want to open the data related to list item value in other page.
    List item - :Familyp
    i want to pass this selected value to the url and when ever user selected the list item and clicks on the url, then it should display the item value related data in new page.
    I tried with &FamilyP in url but it's not working. Any one help me plz.
    Regards
    Vamsi.Tata

    Is it a normal Select list or Multi Select list?
    If you have select list that allows you to select multiple options then you cannot pass it through URL. Multi-select /Shuttle keep colon separated list in the item, and this confuses Apex because the Apex URL uses colons for a different purpose. No escaping or URL encoding will help.
    If it is normal select list that allows selection of only one option then you can pass through the url. Unless of course the data has a colon in it.
    For multi-select, and when the value contains colon, the only way is to save the value in session state, same page item or any other place like Application Item, and then reference it at the other end. Never pass through the URL.
    Regards,

  • How to remove all records(Truncate) In SalesForce Object before load data in to it ?

    I'm loading data from Oracle to SalesForce staging object.Here i have to remove all the records in SFDC object before load data. Please guide me ,My work struck due to this

    I'm loading data from Oracle to SalesForce staging object.Here i have to remove all the records in SFDC object before load data. Please guide me ,My work struck due to this

  • Learning Solution - Need to send a reminder e-mail to all participants

    I need to be able to send a reminder e-mail to all participants in a course.  I would like the e-mail to be sent to the participants 7 days prior to the start date of the course.
    We currently use SMARTFORMS to send an e-mail to a participant when he is booked into a course.  We would like to send the same e-mail to the participant 7 days prior to the start of the course as a reminder. 
    Would I accomplish this using a workflow?  Does anyone know a function that could be used to send the same e-mail again?  We have not been able to find the code to send the e-mail to the participant again.

    Hii Karen,
    We are also facing the same problem, but with the same i also want to know that how to send an e-mail to a participant when he is booked into a course coz for me its not working.
    Could you please tell me the steps to follow.
    Thanks & Regards,
    Nidhi

  • Send a reminder mail to a person in 'Assigned To' 7 days before the 'Due Date'

    I want to create a workflow on SharePoint list and it should send a notification email to 'Assigned To' person before 7 days of Due Date (another column in the list).
    I'm new to SharePoint. Please explain the steps in detail.
    Any suggestions would be greatly appreciated. Thank you.

    Hi Sekhar,
    Hope the below links should be useful to you.
    http://sharepoint713.blogspot.in/2011/09/sharepoint-designer-workflow-to-send.html
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/e85c2fcb-81fa-4c8d-9f0d-3c4799de771b/send-a-reminder-mail-5-days-before-and-1-day-before-the-due-date?forum=sharepointcustomizationlegacy
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/1e2912f4-3119-49b0-b620-e67f629596d0/how-to-send-alert-on-2-days-before-of-task-due-date?forum=sharepointcustomizationlegacy
    https://mysharepointchronicles.wordpress.com/2012/11/05/sharepoint-list-with-workflow-email-reminder-set-to-send-30-days-from-created-date/
    http://markeev.com/Articles/item-expiration-reminders-in-sharepoint-using-workflow.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to send the email alert to some users (defined users hasn't post document to a library within a specified time frame)

    Hi,
    Native alert on a document library can setup to email to the predefined user when any changes on the document.
    However, I would like to setup a document library and alert me when
    [email protected] [email protected]
    [email protected] hasn't yet put a document to the library by 2014-07-01 (e.g today is 2014-06-26). The reminder email will send to
    [email protected] [email protected] on 2 days before the dead line (ie. 2014-06-29) because
    [email protected] and [email protected] hasn't put their file to the library on or after 2014-06-29..
    Thanks

    Hi,
    http://stackoverflow.com/questions/17571562/creating-email-alert-workflow-for-sharepoint-file-libraries
    http://stackoverflow.com/questions/18868479/how-to-send-automatic-email-notification-to-user-two-days-before-expiry-date
    http://social.msdn.microsoft.com/Forums/en-US/acb12dd2-d6a5-4b7e-b233-037558bfa2e5/start-workflow-x-days-before-expiry-date?forum=sharepointcustomizationlegacy
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Send reminder 30 days before expire date?

    Hi, I hope someone can help me with that.
    I am getting in an "expireDate" from a Database.
    It can be for ex. "5/21/2007" . This date is a String.
    30 days before that expireDate is reached, I want to send a
    reminder to the client, like
    "your membership is going to expire".
    How can I find the date ! 30 days before it expires?
    Best regards,
    Luciewong

    Hi, to All,
    unfortunately still I could not get the solution for my
    problem.
    I have 2 strings coming in from a Database.
    todayDate = "9/7/2006";
    expireDate = "4/20/2007";
    // now, I could find the difference in months with the code
    below>
    aDate = todayDate;
    bDate = expireDate;
    TimeUsed.text =
    monthsBetween(toDate(aDate),toDate(bDate));//<<will be "7"
    function toDate(str){
    var d_arr = str.split('/');
    return new Date(d_arr[2],d_arr[0],d_arr[1]);
    //xxx
    function monthsBetween(d1,d2){
    var d_date = new Date(d1.valueOf());
    var t_date = new Date(d2.valueOf());
    var m = -1;
    //xxx
    while(d_date<=t_date){
    //xxx
    d_date.setMonth(d_date.getMonth()+1);
    m++;
    return m;
    //xxx
    //This will return me the difference between the 2 date
    strings in months, great, but can I get the d a y s between??
    Thank you for your help.
    Luciewong

  • How to send report output to  two  detinations at a time from command line?

    Hi ,
    how to send my report to two detinations at a time from command line i.e FILE and Mail ?
    i created batchfile in that i mentioned one line for file(DESTYPE=FILE) perpose and another line for mail perpose(DESTYPE=Mail).i don't want to mention to lines.
    i want to send my report out put two destinations at a time insted of running two times.
    thx in advance.....
    raghu

    hello,
    did you try to use distribution for that ? check out the reports distribution facilities available in 6i.
    regards,
    the oracle reports team

  • How to send data from internal table to the shared folder in ABAP

    Hi experts,
             My requirement is to transfer data from a file to shared folder. i just did reading data from a file to a internal table. Now i want to send this internal table data into a shared folder which is  "
    xxx\y\z....".
    I do not have any idea on how to send data from internal table to the shared folder path.
    can anybody please help me out how to do this?
    Thanks & Regards
    Sireesha.

    Where that folder is located, its on presentation server i.e. desktop or application server.
    If its on presentation server, use FM GUI_UPLOAD.
    If its on application server, then use DATASET functions. Have a look at below link.
    [File Handling in ABAP|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htm]
    I hope it helps.
    Thanks,
    Vibha
    Please mark all the useful answers

  • How to send File on application server for Attachment

    Hi,
    Friends in my application file is to be sent with Email as an attachment.
    all this to be done via servlet for that i have to send the file to application server from there servlet will send mail via Email server.
    How can send this file to server.
    plz help me .
    Thanks

    Hi,
    The following program illustrates the creation of ifle in app server and reading the file from appli server:
    DATA: ITAB LIKE vbakOCCURS 0 WITH HEADER LINE.
    PARAMETERS: P_VBELN LIKE VBAP-VBELN.
    START-OF-SELECTION.
      SELECT *
        FROM VBAP
        INTO TABLE ITAB
    WHERE VBELN = P_VBELN
        PERFORM WRITE_DATA.
        PERFORM READ_DATA.
    *&      Form  WRITE_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM WRITE_DATA.
    OPEN DATASET 'VBAP_DATA' FOR OUTPUT IN TEXT MODE.
    LOOP AT ITAB.
    TRANSFER ITAB TO 'VBAP_DATA'.
    ENDLOOP.
    CLOSE DATASET 'VBAP_DATA'.
    CLEAR: ITAB, ITAB[].
    ENDFORM.                    " WRITE_DATA
    *&      Form  READ_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM READ_DATA.
    OPEN DATASET 'VBAP_DATA' FOR INPUT IN TEXT MODE.
    DO.
    READ DATASET 'VBAP_DATA' INTO ITAB.
    IF SY-SUBRC <> 0.
    EXIT.
    ENDIF.
    APPEND ITAB.
    ENDDO.
    CLOSE DATASET 'VBAP_DATA'.
    LOOP AT ITAB.
    WRITE:/ ITAB-VBELN,
            ITAB-POSNR.
    ENDLOOP.
    ENDFORM.                    " READ_DATA
    If it is helpful rewards points
    Regards
    Pratap.M

  • [SOLVED]How to send email to a local user?

    I have installed Mutt, msmtp, procmail and I can send and receive emails to/from remote hosts and I'd like to send email locally also (to the recipients on the same machine as the sender).
    When I try to send email to a local user from the root account -
    echo "Test message" | mail -s "Test subject" localuser
    then I get an error that connection to the port 25 is refused. Because the /etc/msmtprc file contains the 'localhost' as the default account's host, and on the local host I don't have a mail server listening on 25 port running.
    When I try to send email from a non-root account which has in /$HOME/.msmtprc file a real email account on a remote server, then of course there is an error that the domain for the email address 'localuser' is not recognized.
    How can sending email to local users be enabled?
    Last edited by nbd (2014-09-30 22:33:37)

    If I understand correctly, postfix it's a constantly running daemon. Seems to be an overhead for delivering only from time to time sent messages.
    ewaller wrote:
    > Out of the box, sendmail should be safe, but I think you have to enable local mail.
    Currently I have msmtp-mta installed, which is described as having sendmail functionality. If I install sendmail - will it be possible to send local email without running email daemons?

Maybe you are looking for

  • How to retrieve data from a REF CURSOR using OCI 8.0?

    I found an example in Oracle docs (shown below) that discusses how to bind a REF CURSOR for later data retrieval, but it does not explain actually how to do the later data retrieval. I hope someone can explain it to me. Thanks The OCI provides the ab

  • Tuning of very small procedure

    Hi All, We are using the following procedure to get respective sequence number by passing the table name as parameter: ================================ CREATE OR REPLACE procedure SEQ_GEN(Tbl_name in varchar2, SEQ_NO out number) is seq_name varchar2(

  • Is there any documentation on PHYS-FS for content engine

    I am in process of replacing a fail disk on CE 5.5.11.2 model WAE-7326-K9. The disk currently has PHYS-FS, CDNFS, MEDIAFS and CFS configured. Can someone provide details on PHYS-FS.

  • ESSBASE + OBIEE Dashboards or OBIEE ADMIN TOOL + OBIEE Dashboards.

    Hi all, Hi all, I am currently working on the proposal for a Financial BI reporting project for a company in the UK and would like to know the advantages of using ( ESSBASE + OBIEE Dashboards) solution over (OBIEE ADMIN TOOL + OBIEE Dashboards). As t

  • What shall I do to make my hard rive visible and usable on my new mac book pro please ...

    Hello ! Can someone help me ? What shall I do to make my hard rives visible and usable on my new mac book pro please ... Nothing happened when I plug in as it used to be on my old white Mac Book ... Same when I plug them through a hub satelite multi