Couldnt able to receive for over due issues

Hi all,
i have a package which will send email if the issue is on a overdue and this is it
-- Create a package to check for overdue issues
-- and send notification email to project lead.
CREATE OR REPLACE package it_check_overdue_issues
AS
    PROCEDURE email_overdue;
END;
-- Create package body.
-- Either replace the value of 'c1.person_email' in the
-- code below with valid email or make sure the data in
-- the IT_PEOPLE.PERSON_EMAIL column has valid email addresses.
CREATE OR REPLACE PACKAGE BODY it_check_overdue_issues
AS
PROCEDURE email_overdue
IS
    l_msg_body varchar2(32000) := null;
    l_count number             := 0;
BEGIN
FOR c1 IN
    (SELECT pr.project_id,
        pr.project_name,
        pe.person_name,
        pe.person_email
    FROM it_projects pr,
        it_people pe
    WHERE pr.project_id = pe.assigned_project
        AND pe.person_role = 'Lead')
    LOOP
    FOR c2 IN
        (SELECT i.target_resolution_date,
            i.issue_summary,
            p.person_name,
            i.status,
            i.priority
        FROM it_issues i,
            it_people p
        WHERE i.assigned_to_person_id = p.person_id (+)
            AND i.related_project_id = c1.project_id
            AND i.target_resolution_date < SYSDATE
            AND i.status != 'Closed'
    ORDER BY i.target_resolution_date, i.issue_summary)
LOOP
    IF l_count = 0 THEN
        l_msg_body :=
        'As of today, the following issues '||
        'are overdue:'||chr(10)||
        chr(10)||
        ' Project: '|| c1.project_name ||chr(10)||
        chr(10)||
        '     Target: '||c2.target_resolution_date ||chr(10)||
        '    Summary: '||c2.issue_summary ||chr(10)||
        ' Status:     '||c2.status ||chr(10)||
        ' Priority:   '||c2.priority ||chr(10)||
        'Assigned to: '||c2.person_name;
    ELSE
        l_msg_body := l_msg_body ||chr(10)||
        chr(10)||
        '     Target: '||c2.target_resolution_date ||chr(10)||
        '    Summary: '||c2.issue_summary ||chr(10)||
        '     Status: '||c2.status ||chr(10)||
        ' Priority:   '||c2.priority ||chr(10)||
        'Assigned to: '||c2.person_name;
    END IF;
    l_count := l_count + 1;
END LOOP;
IF l_msg_body IS NOT NULL THEN
APEX_MAIL.SEND(
   p_to => c1.person_email,
   p_from => c1.person_email,
   p_body => l_msg_body,
   p_subj => 'Overdue Issues for Project '||
                   c1.project_name);
END IF;
l_count := 0;
END LOOP;
END email_overdue;
END it_check_overdue_issues;According to the package, if the issue target resolution date is greater than the sysdate then, the email has to go to the project lead corresponding to that respective project saying that the issue is on overdue.
But im couldnt able to receive any emails, as i checked with an example of raising an overdue issue specifying the target date for that issue as 23-06-2011, so it is less than sysdate so therefore an email has to go to the project lead of that respective project.
But im not receiving any email to me, as i defined myself as a project lead for that overdue project.
What is wrong with the query or with my understanding of the above query.
Thanks
Regards.
Mini

Hi Robbie,
Thanks for the reply
My package is working perfectly and this is it
-- Create a package to check for overdue issues
-- and send notification email to project lead.
CREATE OR REPLACE package it_check_overdue_issues
AS
    PROCEDURE email_overdue;
END;
-- Create package body.
-- Either replace the value of 'c1.person_email' in the
-- code below with valid email or make sure the data in
-- the IT_PEOPLE.PERSON_EMAIL column has valid email addresses.
CREATE OR REPLACE PACKAGE BODY it_check_overdue_issues
AS
PROCEDURE email_overdue
IS
    l_msg_body varchar2(32000) := null;
    l_count number             := 0;
BEGIN
FOR c1 IN
    (SELECT pr.project_id,
        pr.project_name,
        pe.person_name,
        pe.person_email
    FROM it_projects pr,
        it_people pe
    WHERE pr.project_id = pe.assigned_project
        AND pe.person_role = 'Lead')
    LOOP
    FOR c2 IN
        (SELECT i.target_resolution_date,
            i.issue_summary,
            p.person_name,
            i.status,
            i.priority
        FROM it_issues i,
            it_people p
        WHERE i.assigned_to_person_id = p.person_id (+)
            AND i.related_project_id = c1.project_id
            AND i.target_resolution_date < SYSDATE
            AND i.status != 'Closed'
    ORDER BY i.target_resolution_date, i.issue_summary)
LOOP
    IF l_count = 0 THEN
        l_msg_body :=
        'As of today, the following issues '||
        'are overdue:'||chr(10)||
        chr(10)||
        ' Project: '|| c1.project_name ||chr(10)||
        chr(10)||
        '     Target: '||c2.target_resolution_date ||chr(10)||
        '    Summary: '||c2.issue_summary ||chr(10)||
        ' Status:     '||c2.status ||chr(10)||
        ' Priority:   '||c2.priority ||chr(10)||
        'Assigned to: '||c2.person_name;
    ELSE
        l_msg_body := l_msg_body ||chr(10)||
        chr(10)||
        '     Target: '||c2.target_resolution_date ||chr(10)||
        '    Summary: '||c2.issue_summary ||chr(10)||
        '     Status: '||c2.status ||chr(10)||
        ' Priority:   '||c2.priority ||chr(10)||
        'Assigned to: '||c2.person_name;
    END IF;
    l_count := l_count + 1;
END LOOP;
IF l_msg_body IS NOT NULL THEN
APEX_MAIL.SEND(
   p_to => c1.person_email,
   p_from => c1.person_email,
   p_body => l_msg_body,
   p_subj => 'Overdue Issues for Project '||
                   c1.project_name);
END IF;
l_count := 0;
END LOOP;
END email_overdue;
END it_check_overdue_issues;According to the package the email has to go to the project lead of the corresponding project saying that the 'issue is overdue'
if i compile the package
begin
it_check_overdue_issues.email_overdue;
end;means, it is compiling successfully and also im receiving mails(as to project lead)
But if i schedule to execute the package by defining time interval means, it is not working as this job is compiling successfully but im not receiving any mails from this job and this is it
DECLARE
    jobno number;
BEGIN
    DBMS_JOB.SUBMIT(
        job => jobno,
        what => 'BEGIN it_check_overdue_issues.email_overdue; END;',
        next_date => SYSDATE,
        interval => 'SYSDATE + (2/1440)');
    COMMIT;
END;
According to this job it will execute the package for every 2min. so for every 2 min ill be receiving mails. but im not receiving emails for every 2 min as this job is not working. But this job compiled without any error.
Regards,
Mini

Similar Messages

  • My iphoto9 has not been able to open for over 10 days!!  I can't load my Christmas pics, etc.  I know the pics are still there because I can access them through a round about way.  Can anyone help me to OPEN iPHOTO!?

    My iphoto9 has not been able to open for over 10 days!!  I can't load my Christmas pics, etc.  I know the pics are still there because I can access them through a round about way.  Can anyone help me to OPEN iPHOTO!?

    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store or have a Recent Mac you can find it in your Purchases List.

  • KMTL - How to add Column for OVER DUE DAYS in report

    Dear Concern,
          We are Microsoft Dynamics NAV 2013 users, We want a little change on Reminder Report (In report there is due date we inserted column for OVER DUE DAYS right side to Due Date column in we required Expression of which type of formula that
    shows us the Over Due Days for particular.
    Please every one confirm or suggest for this error.
    Thanks & regards,
    Laxman Sonar

    Hi Laxman Sonar,
    Per my understanding that you have an date field(Due Date) in the report and now you want to get the over due days based on this field and display at right of the date field in the report, right?
    I have tested on my local environment that we have two method to do this, one is to add the datediff functon in the query to get the overdue days and another method is to using expression in the report.
    Details information below for your reference:
    Method one:
    Modify the query as below to get the new field(OverDue Days):
    SELECT   DueDate, DATEDIFF(day, DueDate, GETDATE()) AS OverDueDays
    FROM      tableName
    Method Two:
    Add an calculated fields and then add the expression below to get the value for this field or just add expression directly in the new field:
    =Datediff("d",Fields!DueDate.Value,Today())
    If your problem still exists, please try to provide us some sample date and more details information about your requirements.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Over due items are not considered in credit check for customer

    Hi Gurus;
    We have static credit active for the sales order which is blocking  if the  sales value is more than the customer credit balance   but it is not checking for over due item i.e the billing document  whose accounting document  hasn't been cleared yet .Though i have maintained same number days for payment terms and risk category  for the customer .
    Kindly guide me if have missed out any configuration or setting .
    Thanks in advance .

    Hi Nuru,
    Hope you are using automatic credit check and not simple crdit check ..Check that.
    Is ur update group a standard one..?
    Please paste screenshots of FD33, credit status, OVA8 etc.
    Regards
    Jobi

  • Purchasing 11i - Unable to receive for a po line

    Hi
    Initially I got this query as simple payable issue
    A PO shipment where PO Qty is say 50 and already received is say 48. the user is now trying to find expected receipt for the PO and is unable to find it.
    Gets error AP-PO-14094: No records meet your search criteria
    When I checked from the back-end I could find that user had matched an invoice to the same PO and was later cancelled.
    Now user is not able to receive for the balance Qty 2
    Need help to analyse this using sql query
    Application instance is 11.5.10.2
    Thanks in Advance
    Shanks

    941473 wrote:
    Hi All,
    I am trying to get the Quantity released for a po line in the back end. But I could not find this in any or the main tables even the value is shown in frond end for that line.
    Min Max Planning creates a requisition, then the requisition is automatically converted
    into a BPO(Blanket Purchase Order) release.
    Quantity_Released = ? - I want to know from where does oracle
    get these values. of course calculated but from where
    i need release quantity of a single release(BPO) .
    Please help.
    Thanks
    Edited by: 941473 on Jun 18, 2012 11:56 PM
    Edited by: 941473 on Jun 19, 2012 12:00 AMCheck in PO_LINE_LOCATIONS_ALL with balnket PO header id..u will be seeing the quantity..quantity received..rejected..
    Mahendra

  • Over due shipment

    hi all
    Can we get standard report from SAP for over due shipment for a particular date.
    Delivery date report for 26/09/08 (what are the material delivery date falling due on today as per PO?)
    Thanks in advance

    hi,
    try table :
    VEPVG : Delivery due....
    VTTP : Shipping item...
    LIKP : Delivery header..
    VEPO : Shipping item content...
    Hope it helps...
    Regards
    Priyanka.P

  • TS2755 I have 3 phones on one Icloud account. It has been this way for over a year with no issues. After and update on of the lines started getting text messages from all 3 phones. We fixed the send and receive and it was fixed. It is doing it again.

    I have 3 phones on one Icloud account. They have been this way for over a year. After an update last week one of the phones started getting messages for all of the other lines. We fixed this under the send and receive under settings. It was fine for a few days. Suddenly it started happening again. Yesterday after two hours on the phone I changed my apple id and it is still happening. Before that Verizon had told me to turn off my imessage when that happened I could not get any texts at all from other Iphone users.

    Make 3 different iCloud accounts and use ONLY for iMessage.   That will permanently fix your issue.

  • HT204053 The one alias I've had for over 5 years has not fully migrated over to iCloud. My account now shows 3of3 aliases available but I'm still able to receive messages addressed to my old alias. I can no longer send emails using this alias. Help!

    For years I have been using [email protected] for business.
    It is on my business cards, stationary and most of my closest correspondences are maintained off of that email.
    The documentation I've read indicates aliases should be transferred over as part of this iCloud migration but this does not seem to be the case. My account now shows 3of3 aliases available but I'm still able to receive messages addressed to the alias. I can no longer send emails from this alias.
    How do I get this corrected?
    Ali,
    [email protected]
    A.K.A
    [email protected] 

    Workable solution found here:
    https://discussions.apple.com/thread/1589996?start=15&tstart=0

  • I have been having issues with my apple id for over a month now. Apple Itunes support tells me its due to maintenance that they cant reset my password and I cant either thru the password site they created. I cant update apps or any thing related to my acc

    I have contacted apple support for itunes many many times and no results. I can tell you there support group is not us based. One person I got was in germany I believe the other in Ireland. one went on vacation the other took over and now no emails at all on the status of my account thats been locked for over a month with no resolution in site. Isnt this a publicly traded company? Does anybody know how to get a hold of the board or someone above the service providers Im dealing with or a phone number? Emails are great but there no resolution from a person that can hide behind a computer screen.

    hi i had the same problem today when i updated my itunes to latest version. however, i have just found my songs in the 'itunes media' folder. this was accessed through 'my music'  then keep clicking through until you find itunes media and all my library songs were in there and i then just added these files to my library and all were restored however, i have lost all my playlists but at least my 700 songs are back. very dissapointed with apple that they have let this happen with their latest update, the previous version was miles better than this one . hope you find them. stevo

  • I have been with Verizon since 1995 (I was an employee for years). I attempted to upgrade 2 of the 4 lines on our account today, but couldn't. We have an outstanding balance (though we have received no past due notice via mail, email, or text and make reg

    I have been with Verizon since 1995 (I was an employee for years). I attempted to upgrade 2 of the 4 lines on our account today, but couldn't. We have an outstanding balance (though we have received no past due notice via mail, email, or text and make regular payments every month) that I would love to pay, but our bank account number was stolen, so we can't access our account until Monday. Because we were unable to pay our outstanding balance, we were told we can't order the phones today during the special promotion (that ends today). No one can help us, though we have no way of doing anything until Monday when our bank reopens and can reimburse us for the money that was stolen from us. No one in customer service can help us (they can't process the order but not ship until after we make payment on Monday, they won't honor today's promotion on Monday due to our special circumstance, nothing). They stated that "corporate" makes the rules and they have no idea how I can reach corporate to discuss the matter. Without the promotion, we will be charged full price for the phones on Monday, which will cost us an additional $300.00. Any help would be appreciated. Thanks.

    I hope that you aren't complaining about dropped calls INSIDE your condo because no amount of switching or upgrading devices will solve that.
    VZW will not guarantee service inside of any structure. There are just too many factors. If the problem is inside then you might want to look at one of the following:
    1.) Network Extender (may cause issues for others in a condo or apartment style setting)
    2.) A Google Voice Number (Free with a Gmail email address), downloading Google Hangouts Dialer and forwarding your calls to the GVN so that you can make and receive calls over Wi-Fi.

  • My computer has been infected with a Trojan Horse.  It has completely taken over my Mac email account and was sending out malicious email to everyone in my address book.  At the same time it infected my iPhone---I am no longer able to receive or send emai

    My computer has been infected by a Trojan Horse.  It has taken over my Mac email account and began sending out malicious emails to everyone in my address book.  I cleared out my MAC address book and began using my AOL email account. It took a few days and then my AOL email account was infected and has now been send out malicious email to all my contacts for over a month.  It has also infected my iPhone--I am no longer able to send or receive emails on my iPhone.  Also, once the Trojan Horse began using my AOL email it completely blocked me from using my MAC account by sending never ending popups asking for my email password to access my MAC email account, but it never accepts my pass word.  The TH has also slowed down everything on my computer.  It's like I am working on an old PC with dial up connection instead of the high speed digital connection that I have.  The little color wheel spins constantly as I wait for sometimes over a minute for a page to pull up.  If it pulls up at all.  I have tried to use the 2 disks that came with my computer to completely remove everything on my computer and then reinstall all the programs, but I am not allowed to sweep my computer clean.  I thought maybe my disks that came with my computer were defective so I called Apple and they sent me 2 new disks.  I am not able able to clear my computer with the 2 new disks either.  I have done this before successfully so it's not something new to me.  I do remember when I believe my computer became infected:  I had googled an unusual sewing term, and I was opening what appeared to be legitimate sites, when all of a sudden a pop up appeared that said that my computer had been infected.  I immediately shut my computer off, but it was too late.  I downloaded a virus program for Mac, and it has never found a virus or problem at all.  I think it is part of this Trojan Horse, but I am unable to delete it from my computer.  It refuses to uninstall.  The Mac Trojan Horse is real and it is terrible.  If anyone has any suggestions for me I would be very appreciative,
    Beth
    vu

    Install ClamXav and run a scan with that. It should pick up any trojans.   
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • HT5824 I switched over from an iPhone to a Samsung Galaxy S3 & I haven't been able to receive any text messages from iPhones. Please help with turning my iMessage completely off..

    I switched over from an iPhone to a Samsung Galaxy S3 & I haven't been able to receive any text messages from iPhones. I have no problem sending the text messages but I'm not receivng any from iPhones at all. It has been about a week now that I'm having this problem. I've already tried fixing it myself and I also went into the sprint store, they tried everything as well. My last option was to contact Apple directly. Please help with turning my iMessage completely off so that I can receive my texts.

    If you registered your iPhone with Apple using a support profile, try going to https://supportprofile.apple.com/MySupportProfile.do and unregistering it.  Also, try changing the password associated with the Apple ID that you were using for iMessage.

  • For over 2 weeks now,i have not been able to use my itunes on my 2 laptops. it been giving me an error report of invalid signature.

    For over 2 weeks now,i have not been able to use my itunes on my 2 laptops. it been giving me an error report of invalid signature.

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • Just installed Lion haven't received an external email for over 2 hours, anyone got any ideas

    Anybody having email issues after upgrading to Lion.  Haven't received an external email for over 2 hours which is really unusual.

    Go to >system prefs>mail calander & contacts then just click accept on use the inbox.

  • I can not send email from my iPad .  Have been using it for over a year, all of a sudden I can only receive email.  I have a wifi connection in my home and have a A T &T cellular data plan?

    I can not send email from my iPad .  Have been using it for over a year, all of a sudden I can only receive email.  I have a wifi connection in my home and have a A T &amp;T cellular data plan?

    I have a 1st gen iPhone that I just updated the software to 2.0.2
    Now whenever I press the mail icon it goes to the mail app for about 4 seconds, does nothing, no loading of folders, old messages, nothing.
    Then it reverts back to the home screen. Tried restarting, haven't tried restoring, thought I'd look here first.
    Anyone???

Maybe you are looking for

  • Help hooking up IMac Chrome 24" to Onkyo tx-606 to Panasonic Plasma

    I have a 24" iMac Chrome, a Onkyo TX-606 A/V receiver and a 50" Panasonic Plasma TV (Can't recall the model, but it is a 720p plasma TV). I ordered the DVI to HDMI cable, from Apple, to hook all this up together. The TX-606 and Plasma work great toge

  • Issue with SOAP Header

    Hi All, I am beginner in SOA . Please excuse me if my phrasing is not quite right . Please do let me know if you require additional information to answer this question Jdev : 11.1.1.3.0 UseCase : Trying to learn SOA . In this regard, I created a SOA

  • Me again please a little stuck ere for a question

    public void SetValue in (replacementvalue) if ((replacementvalue >= 0) && (replacmentvalue < limit)) value = replacementvalue Just a couple of questions id like to ask about this , what would happen when the setvalue is called with an illegal value ,

  • Universe Design Tool Connection

    Am trying to test connection in the universe design tool and am getting the error in the screenshot below. How can I resolve it.

  • Search word for '.'.

    Hello, the statement: search word for '.'. does not work. SY-SUBRC = 4 and SY-FDPOS = 0. even if the provided string is 'abc.123'. Is there an alternative way to search for a DOT '.' ? Thanks, Manuel