Notification Email For Due Date.

Hi all,
I would like to seek help from you all guys in this scenario.
I have a table with a column "due_date", I want my application to automatically send email to the end user when the sysdate is 1 day before the due date.
What should I do,please advice..
Thanks for sharing.

1. Create a procedure to send mail as mentioned by Shan above..
eg.
create or replace procedure snd_mail
is
ws_id number;
begin
select max( workspace_id) into ws_id from apex_applications ;
wwv_flow_api.set_security_group_id(ws_id);
FOR C1 IN ( SELECT email_id from sample_table where  due_date - sysdate <= 1 )
loop
      APEX_MAIL.SEND(
      P_TO       => c1.email_id,
      P_FROM     => '[email protected]',
      P_BODY     => 'Body of the email',
      P_SUBJ     => 'Subject of the email');
      APEX_MAIL.PUSH_QUEUE;
  end loop;
end;2. Schedule the above procedure to run daily
begin
  dbms_scheduler.create_job(
    job_name => 'TESTJOB',
    job_type => 'stored_procedure',
    job_action => 'snd_mail',
    number_of_arguments => 0,
    start_date => systimestamp,
    repeat_interval => 'FREQ=DAILY',
    end_date => null,
    job_class => 'DEFAULT_JOB_CLASS',
    enabled => true,
    auto_drop => TRUE,
    comments => NULL
end;Regards,
Shijesh
Edited by: Apex_Noob on Dec 21, 2009 10:03 AM

Similar Messages

  • Special GL  asking for Due Date

    Hi SAP Gurus,
                When I am trying to post the customer invoice with t.code F-22 and put the Special Ledger indicator it is asking for Due Date as a mandatory field but it should not be because of the payment terms.
    Is there any configuration I can use payment terms with special GL indicators for customer and vendor documents.
    Is there an option to get the payment terms from the company view when we are creating invoices in special GL indicators. Because the due date that appears, instead of baseline date, payment terms and days as in a common invoice.
    Regards,
    Sim

    Go to T.Code - OB41 (Field Status for Posting Keys)
    Selct Posting Key - 01 & Go inside
    Go Inside to Group - Payment Transactions
    & Check Out whether Due Date Field is with Required Entry or not. If it is so then make it Optional.
    Similarly, Check out Special GL Reconciliation A/C . Through FS00,Check out the Field Status Group of the same (Mostly, it will be G067- Recon.A/Cs) & make the Due Sate Field Optional there as well in Payment Transactions.
    Regards..
    Ameya....

  • Baseline Date for Due Date Calculation required for S/L indicators

    Hello,
    Iu2019m facing the following problem
    Iu2019m trying to insert an invoice (using a customer master record) but the system blocks me because the field ZFBDT (Baseline Date for Due Date Calculation) is a Required entry.
    The strange thing is  that if I use a S/L indicators the field is mandatory, if not the date may be defaulted.
    I checked in OB41 but there are non differences between Special PK and normal PK.
    Any ideas?
    Thanks in advance
    Alberto

    Dear Alberto,
    the field "Due On (BSEG-ZFBDT)" cannot be controlled with field status.
    It is controlled by field attribute of screen painter (Tcd: SE51).  If
    you look at element attribute for "Due On" field, a flag for required
    entry is activated.  In this case, field status has no control over
    the field.
    As of release 3.1G, field BSEG-ZFBDT is hardcoded in most FI screens
    to be mandatory and cannot be influenced by any field status
    changes. This situation is only valid when posting with special G/L
    indicator (ie PK 29/39).
    SAP development team has determined that this is a critical field.  The
    reason behind this is that this special GL screen and the data entered
    here are very important to many other programs. This data affects
    liabilities and receivables where due date is necessary almost
    everytime. Thus, we changed this field in this screen in order to
    prevent problems in many other areas. The reason is explained further
    in note 95079.
    I hope this helps You.
    mauri

  • Advaned warning for due date based on statuses

    Hi,
    While searching transactions, for the due date some icons are coming like(green squere, yellow triangle, tick mark, grayed dimond) and so on.
    can I maintain these icons based on statuses. Presently tick mark is coming for one of the statuses maintained in the status management. But for this we didn't maintained any configuration settings at IMG --> CRM --> Interaction center Web client --> Agent Inbox --> Map item attributes to inbox Attributes --> Define advanced warning for due date.
    Required quick response as it is business critical requirement.
    Thanks,
    Chandu

    Hello Praeva ,
    The event 1330 has a sample FM FKK_SAMPLE_1330. It doesnt even have a Standard Function Module.
    You need to create a Installation-Specific FM and put your code to determine the Due Date based on the logic.
    Rgds
    Ram Kumar.

  • Single notification email for all users

    Hi friends,
    Is there any way of setting a single notification email for all users in oracle 11i so that all the notification email goes to that email address (for test purpose only)?
    thanks in advance.
    LISAN

    See MOS Doc 562551.1 (Workflow Java Mailer FAQ ) and search for "override address". More details in MOS Doc 828812.1 (How To Stop Old Outbound Workflow Notification Email Messages During Clone Activity)
    HTH
    Srini

  • Disabling subscription notification email for specific folders

    Hi is it possible to disable subsription notification email for specific folders.
    We have a custom application which sends notifications and hence do not want duplication of mails.
    Thanks
    rocky

    Hi Rocky,
    If these folders are in a separate repository, the subscription service can be disabled.(not configured) for this repository.
    Regards,
    Isvarya

  • Reminder Workflow does not recalculate new date to send email, if due date is changed

    I created a basic reminder workflow using due date, and status column. it works well.
    Let's say, I want to send a reminder email 2 days prior to the due date.
    I used Add -2 to due date and set a variable
    then used Pause variable
    if status is not equal to completed
    then send email
    And I have this set to initiate when a new item is created, and modified.
    However, if the due date is changed, it does not recalculate the new date to send the reminder email.  Help!

    Hi MonalisaM,
    The in-progress workflow instance will be unable to re-start itself when list item is modified, but I think you can design workflow with using the second workflow to update the list item one filed, then this update triggers
    the first workflow again.
    Stop this reminder workflow (first workflow) when due date is changed, then this will trigger the second workflow to change another custom column(e.g. Flag), then the first workflow will be triggered due to this custom column
    Flag value changed by second workflow, I mean the second workflow is used to upadate this custom list item one filed(e.g. Flag) in order to trigger the reminder workflow(first workflow).
    You can read the following article for more information to understand how to make the first workflow re-start by using second workflow.
    http://sharepoint713.blogspot.com/2011/09/sharepoint-designer-workflow-to-send.html
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to set up notification email for Full CPU utilization on OEM12c?

    I have found a Oracle Doc,Is that's the way email notifications are setup?How can i check that after setting the notifications?
    4.1.2.3 Subscribe to Receive E-mail for Incident Rules
    An incident rule is a user-defined rule that specifies the criteria by which notifications should be sent for specific events that make up the incident. An incident rule set, as the name implies, consists of one or more rules associated with the same incident.
    When creating an incident rule, you specify criteria such as the targets you are interested in, the types of events to which you want the rule to apply. Specifically, for a given rule, you can specify the criteria you are interested in and the notification methods (such as e-mail) that should be used for sending these notifications. For example, you can set up a rule that when any database goes down or any database backup job fails, e-mail should be sent and the "log trouble ticket" notification method should be called. Or you can define another rule such that when the CPU or Memory Utilization of any host reach critical severities, SNMP traps should be sent to another management console. Notification flexibility is further enhanced by the fact that with a single rule, you can perform multiple actions based on specific conditions. Example: When monitoring a condition such as machine memory utilization, for an incident severity of 'warning' (memory utilization at 80%), send the administrator an e-mail, if the severity is 'critical' (memory utilization at 99%), page the administrator immediately.
    You can subscribe to a rule you have already created.
    From the Setup menu, select Incidents, then select Incident Rules.
    On the Incident Rules - All Enterprise Rules page, click on the rule set containing incident escalation rule in question and click Edit... Rules are created in the context of a rule set.
    Note: In the case where there is no existing rule set, create a rule set by clicking Create Rule Set... You then create the rule as part of creating the rule set.
    In the Rules section of the Edit Rule Set page, highlight the escalation rule and click Edit....
    Navigate to the Add Actions page.
    Select the action that escalates the incident and click Edit...
    http://docs.oracle.com/cd/E24628_01/doc.121/e24473/notification.htm#CACHDCAD

    Make sure you have correct thresholds...
    from target home>monitoring>"Metric and Collection Settings"
    Check the incident rule for warning and critical events for host targets
    Setup>Incident>Incident Rules

  • Drill down report for due date analysis for customer open items

    Hi, in transaction FDI0 i am using report 0SAPDUEAN-01 Due Date Analysis for Open Items .The reason i am using this is that s_alr_87012178 caters for only 6 intervals. With this report , i get 8 intervals:
    daily intervals Due Not Due Total OI
    0 - 30 0,00 0,00 0,00
    31 - 60 67.000,00- 0,00 67.000,00-
    61 - 90 0,00 0,00 0,00
    91 - 120 20.020,86 0,00 20.020,86
    121 - 150 3.270,00 0,00 3.270,00
    151 - 180 0,00 0,00 0,00
    181 - 210 0,00 0,00 0,00
    211 - 99999 0,00 0,00 0,00
    Total open items 43.709,14- 0,00 43.709,14-
    Is it possible to change the intervals through custo? i need intervals:
    0 - 30
    31 - 60
    91-120
    121-150
    151-365
    >365

    Hi AA
    refer this link where in I have given the screen shots
    http://img233.imageshack.us/g/86081486.jpg/
    The 1st screen shot is COPY of the Std Form
    The 2nd scren shot shows how to add new interval
    Br, Ajay M

  • How to configure notification emails for reports output or alerts for all users in r12

    Hi,
    I need to configure notification emails. I have provided settings in OAM-> Workflow and SMTP IP address in settings and only Outbound. I am able to test for my user ID.
    I want to know how to redirect emails or alerts for users like when a user runs a report he should get notification email in his outlook about the report output and details. In settings it only points for one replyto field. How do I mention all user ID's?
    Regards,
    Mohammed

    Hi Mohammed,
    You may check on XML bursting for XML based reports.
    In addition, also see links:
    http://oracle.anilpassi.com/email-output-of-concurrent-program-request.html
    Anil: Oracle Apps Concurrent program Output as Email
    Oracle ERP World: Email the output of a concurrent program as Attachment
    Also see:
    How to Redirect Output from Printer to Mail Message after Running Report (Doc ID 1036586.6)
    Thanks &
    Best Regards,

  • Please help. Text fields launch email for XML data

    Let me start by saying I have only been using LiveCycle for two days. I did buy a book and have exhaustuvley searched for a solution....with that said....
    After completing almost the entire form, somehow or other I managed to make all the text fields but one initiate email of xml data as soon as you try to type in them in PDF preview or reader or pro.
    I added a new text field for test and it does NOT do the same thing. I can't for the life of me figure out how to turn this off.
    Issue:
    When checking pdf preview, if I click inside a text field to type, it stops the preview and launches an email window with a blank XML file. It does the same thing if I open the file in Reader or Pro.
    Solution I am looking for:
    My form is nearly complete and i would hate to have to start all over. Basically, I do NOT want the text fields to initiate an email of the form data. I just want the user to be able to type in them as required. In my opinion this should only happen with the "email form" button.
    Thanks,
    Joe
    [email protected]

    funny, i found a workaround. after nearly 3 hours and finally posting here, in 15 minutes i found something. I still would like to know
    what caused this if anyone knows.....
    Fix:
    By selecting the text field and changing object type to "Text" then changing it back to "TextField" then save, it now works fine. Of course I had to do it on all 25 fields but way better than redoing all the custom fields i created.

  • Notification Emails for User Administration

    Hi all,
    I'd like to configure the Netweaver system to automatically send out mails to users when the account is created using "Generate Password".
    This system is a pure Java system and does not have the ABAP components and therefore I am not able to use the SCOT or RZ10 tcode to configure the SMTP.
    I have went to User Aministration > Configuration > Notification Email and set the hostname there. It does not send out any mails. Am I missing any steps? Any help is appreciated.

    The javamail has to be set in ConfigTool for Netweaver to send mails.

  • Notification email for workflow

    I have configured the smtp server and also the email transport and channels and the channel orginators.Emails are sent for subscription service and also 'send to' works fine.
    But the problem is that the notification emails are not sent to the approvers when a document is sent for an approval cycle.
    I have also seen that the permissions for etc\notification folder is readonly for 'Everybody'
    Please can any one tell what i am missing.

    Hi Aamod,
    Look at the permissions set for the /etc/notifications folder. The "Everyone" group (or at least, the roles for your users) must have read access on this folder which contains the xml templates for the notification e-mails. This could explain why content_admin and super_admin roles receive e-mails and others do not.
    Also check the following links:
    Notification By Mail
    http://help.sap.com/saphelp_nw04/helpdata/en/89/c5fd430b63c74bbdfaa5f2ec9bb20b/frameset.htm
    Email Notification
    http://help.sap.com/saphelp_nw04/helpdata/en/41/080aab7cefe34d8acb04861a467efc/frameset.htm
    I think this will help you.
    Thanx & Regards
    Anish

  • Query for due date

    Hi All,
    How to write a query for an alert to be generated 5 days before the document due date?
    thanks
    SV Reddy

    Hi Everybody for your valuable suggestions.
    When we execute this query in normal mode by going to user query menu, it returns some records that can be displayed on to the screen in a separate window.  When you attach this query to an Alert, how the Alert will trigger ?
    Is it when the query returns more than 1 record then the name of the Alert will display in the inbox of the user ? 
    OR
    Is it the result of the query displayed in the window?
    What will happen when this query returns 0 records ?  means is that true the alert wont be triggerred ?
    What is the base criteria that an alert take in to consideration when to send a popup to the specified users?
    Please reply
    Thanks

  • Notification Email for UWL

    Hi,
    We have a requirement to send all UWL notification emails to Outlook Inbox of the users.
    Is it sufficient to make the appropriate settings in
    Syst admin>Syst Config>UWL>workflow>Mail
    Are any other settings required?(Groupware transports,system creation etc)
    Thanks
    Rocky
    P.S:Will reward points for helpful answers.

    Hi rocky kurien  ,
    These websites may be useful for u:
    Getting Started – Using SAP Software
    http://help.sap.com/download/documentation/additional/getstart/netweaver/GettingStarted_nw2004s_EN.pdf
    How to…Integrate the BW Reporting Agent With the Alert Framework
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/031faa90-0201-0010-23b3-a5b88e812d15
    New Forums in the SAP NetWeaver Portal
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/204bb3bc-10ea-2910-448a-a780c63978cd
    http://www.uisol.com/uisol/papers/UISO-PGandE_Paper_Distributech_2006.pdf
    cheers!
    gyanaraj
    ****Pls reward points if u find this helpful

Maybe you are looking for