Alerts Query

Hi,
I have been trying to set alerts for a particular transaction i.e. Alert a superuser whenever a PO is created. I am successful at generating the query and have set the alert interval at 1 min. But the problem is I only require the alert to pop up when the PO is added/created. The alert should not pop up again after it is added. Please help me with the query if possible.
Thanks  Regards
Aziz

Hi,
Try this query:
SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName] FROM OPOR T0 WHERE T0.[DocDate]  = CONVERT(VARCHAR(10),GETDATE(),110)
Thanks & Regards,
Nagarajan

Similar Messages

  • What is the Alert Query Syntax ?

    can anyone help me with the syntax for the SQL query for an alert.
    My requirement is really basic.
    I want to send an alert to user A when user B creates an order for a particular customer.
    I created the alert as usual , ticked the User A as recepient and ticked active and assigned my query, which was smilar to
    SELECT DISTINCT ('TRUE') FROM
    ORDR WHERE ORDR.CardCode = 'CustNo'
    while I see that my query returns true, it does not trigger the alert. I hav set my frequency to one minute and the alert is an internal one too.
    Thank You,
    Indika.

    I have been fiddling around with the query and I found that a simple query like
    SELECT T1.* FROM OCRD T1
    worked and gave me the alert with the query reslut but
    this query
    SELECT T2.* FROM OCRD T1, ORDR T2  WHERE T2.CardCode = T1.CardCode AND ( T1.Priority = 1 OR T1.Priority = 2 ) AND ltrim(rtrim(T2.CardCode)) = ltrim(rtrim($[$4.0.0]))
    did not , even though it does give me a result when run as a query.
    Indika.

  • Alert query not working based on expiry date

    Hi Experts,
    I want to set up an alert for a UDF fields in my Sales Order Title based on the date which is put. The field is expiry date and I want that before 7 days of expiry date Alert should pop up. I am using the below query but No Alert is coming which is already set in Alert Management 
    I also want that 2 alerts should come which is before 7 days and before 15 days of expiry date.
    declare @datevar datetime
    select @datevar = getdate()
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[DocTotal], T0.[U_LCVal], T0.[U_LCSDate], T0.[U_LCEdate] FROM ORDR T0 WHERE DATEDIFF(DD, T0.U_LCEdate, @datevar) > 7
    Please guide what might be wrong.
    Regards,
    kamlesh

    hi,
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[DocTotal], T0.[U_LCVal], T0.[U_LCSDate], T0.[U_LCEdate] FROM ORDR T0 WHERE DATEDIFF(DD, T0.U_LCEdate, getdate()) <= 7
    OR DATEDIFF(DD, T0.U_LCEdate, getdate()) <= 15
    Jeyakanthan

  • APP-ALR-04120 error while verifying the Alert Query

    I am getting APP-ALR-04120 error:
    An Invalid number of outputs was found in SQL Statements. But I am not seeing any issues in the SQL.
    SELECT
    h.order_number ORDER_NUMBER
    ,hu.name NAME
    ,h.header_id header_id
    ,(l.line_number||'.'||l.shipment_number||'.'|| l.option_number||'.'||l.component_number||'.'|| l.service_number) LINE_NUM
    ,l.line_id LINE_ID
    ,h.booked_flag BOOKED_FLAG
    ,(select name
    from OE_TRANSACTION_TYPES_TL
    where language='E'
    and TRANSACTION_TYPE_ID=h.order_type_id) transaction_type
    ,(select name
    from OE_TRANSACTION_TYPES_TL
    where language='E'
    and TRANSACTION_TYPE_ID=l.line_type_id) line_type
    ,h.creation_date CREATION_DATE
    ,DECODE((SELECT 1
    FROM wf_items
    WHERE item_type = 'OEOL'
    AND item_key = TO_CHAR(l.line_id)
    AND end_date IS NULL), 1, 'Yes', 'No') WF_CREATED
    ,DECODE((SELECT 1
    FROM wf_item_activity_statuses
    WHERE item_type = 'OEOL'
    AND item_key = TO_CHAR(l.line_id)
    AND end_date IS NULL
    AND rownum = 1), 1, 'Yes', 'No') WF_STARTED,
    adl.to_recipients
    into
    &Order
    ,&OU
    ,&header_id
    ,&line_shipment_number
    ,&line_id
    ,&book_flag
    ,&transaction_type
    ,&line_Transaction_type
    ,Creation_date
    ,&WF_created
    ,&WF_started
    ,&TO
    From Oe_Order_Lines_All L,
    Oe_Order_Headers_All H,
    hr_all_organization_units hu,
    alr_distribution_lists adl
    Where L.Header_Id = H.Header_Id
    AND h.org_id = hu.organization_id
    AND l.open_flag = 'Y'
    AND h.open_flag = 'Y'
    AND h.flow_status_code IN ('ENTERED','BOOKED')
    AND l.flow_status_code IN ('ENTERED','BOOKED')
    AND NOT EXISTS (SELECT 1
    FROM wf_item_activity_statuses st
    WHERE st.item_type = 'OEOL'
    and st.item_Key = to_Char(l.line_Id))
    and adl.name like 'XXOM_ORDER_LINES_WO_WF'
    order by 1 asc

    The permission looks fine. If it was permission issue then y it is trying to read the DATA disk which I havent created this time at all ( But created in the first installation).
    2012-10-20 15:37:52.459: [ CRSMAIN][3563381328] Initializing OCR
    [ CLWAL][3563381328]clsw_Initialize: OLR initlevel [70000]
    2012-10-20 15:37:52.897: [ OCRASM][3563381328]proprasmo: *Error in open/create file in dg [DATA]*[ OCRASM][3563381328]SLOS : SLOS: cat=7, opn=kgfoAl06, dep=27140, loc=kgfokge
    2012-10-20 15:37:52.898: [ OCRASM][3563381328]ASM Error Stack : ORA-27140: attach to post/wait facility failed
    ORA-27300: OS system dependent operation:invalid_egid failed with status: 1
    ORA-27301: OS failure message: Operation not permitted
    ORA-27302: failure occurred at: skgpwinit6
    ORA-27303: additional information: startup egid = 1000 (oinstall), current egid = 10002 (dba)
    2012-10-20 15:37:52.967: [ OCRASM][3563381328]proprasmo: kgfoCheckMount returned [7]
    2012-10-20 15:37:52.967: [ OCRASM][3563381328]proprasmo: The ASM instance is down
    2012-10-20 15:37:52.968: [ OCRRAW][3563381328]proprioo: *Failed to open [+DATA].* Returned proprasmo() with [26]. Marking location as UNAVAILABLE.
    2012-10-20 15:37:52.968: [ OCRRAW][3563381328]proprioo: No OCR/OLR devices are usable
    2012-10-20 15:37:52.968: [ OCRASM][3563381328]proprasmcl: asmhandle is NULL
    The only disks created are
    [root@SFV9699 dev]# oracleasm listdisks
    ASM_DATA
    FLASH_RECOVERY
    And these disks are showing part of that group also.. Not quite sure how this happened..
    what abt dropping this group.. will anything work.

  • Alert Drill Down - DRAFT and ADDED Documnts - Using UNION Query

    Hi,
    I want to be able to send and alert that allows drill down when the alert includes DRAFT and ADDED doc's
    My alert query uses UNIONs for the draft table  and ADDED type documents, selecting a dummy draft number for ADDED doc.
    --EXTRACT
    select
    --For DRAFTs
    T0.DocEntry   as 'Draft_No',
    ''               as  'Doc_No',
    'Draft'       as 'Type', ---etc. etc.
    From ODRF 
    UNION
    ---For  ADDED
    select
    (select min(docentry) from ODRF) as 'Draft_No',
    T0.Docnum  as  'Doc_No',
    'ADDED'       as 'Type', -
    etc etc
    From ORDR
    Sample :DRAFT = 2 is dummy
    Draft_No Doc_No   Type     Draft Status Cust/Vend   Doc_Type             Line Type      Approval_Status
    2              121095   ADDED   N/A             NPO-PORT      Sales Order            Item                Approved
    811           0            Draft       Open          ADT               AP Invoice           Service        Approved     
    Thanks you for any help on this issue.
    Eric

    Hi Eric,
    This is impossible.  Simply because, once you are using Union, drill down will no longer work.
    Thanks,
    Gordon

  • ORA-03147 error while running Alert

    I am getting “ORA-03147: Missing mandatory TTC field” error while running an alert. I can share error screenshot and the alert query, if needed. (not putting right now as the query is huge)
    Please note that alert query runs perfectly fine in PLSQL Developer.
    Any prompt suggestion/help is appreciated.

    Please find the alert query and error screenshot at below links:
    https://docs.google.com/leaf?id=0B6W2rsWyyNGMMmJhNjQ5OTAtZGM1Ni00ZTY3LWJmNTEtM2RiYmUyYmJiNzFl&hl=en_US
    https://docs.google.com/document/d/1yseUqYQYYPwnoMhnN1s1WFpkb1FjpWLniALGTHdhzfw/edit?hl=en_US
    I cannot access the files in the above links.
    Thanks,
    Hussein

  • Is it possible to add item description in the Alert screen in sap b1

    Please see the attachment for the alert screen that gets generated every time an item stock goes beyond the minimum or maximum level. In this screen is it possible to show the item number AND the item description so that the alert is easily understandable? (instead of drilling down into the item code to see each item which is what we are doing now)

    Hi Vedanth
    Its a default system alert query that you had made active, you need to define a new alert to get desire.
    Regards,
    Bhushan Verma

  • Alert not firing for SQL Statement Script

    Hi All,
    I have defined an alter which will trigger when a requisition is stuck with the requestor.
    At the time i need to send an email to the requestor and update the status of the requisition to 'INCOMPLETE'.
    i have defined two action sets one for email and another for update. The email part is working fine but the sql script which updates the status is not firing.
    It is a standard script residing in PO directory sql.
    It has two parameters
    1) Requisition number 2) org_id
    these two are the output of the mail alert query.
    i have defined the application as 'Puchasing'
    arguments as &SQL_REQ_NUMBER &SQL_ORG_ID
    and gave the file name 'poresreq.sql' in the file location.
    but the status is not updating.
    how can i know the reason for not firing.
    Regards,
    Jana

    Hi Jana;
    What is your EBS and OS? Did you run query manualy? Did you get any error message?
    Regard
    Helios

  • Limit on number of records in alert?

    Hi all
    I have created a query which returns about 4.000 records. For reporting to an external party, I want these mailed once a week using regular e-mail. I've set up an alert, which basically works fine. However, the number of records in the e-mail seems to be limited to about 100 records (instead of 4.000).
    When I send an internal alert I have the same problem.
    How can I boost the number of records returned in the e-mail?
    Thank you
    Bram
    Edited by: Marc Riar on Jan 29, 2008 9:57 AM

    Hi Bram,
    I already had the same problem. It's Sap B1 behaviour.
    Se Sap Note 0000874145. I made Copy/Paste.
    Best Regards,
    Augusto
    Queries in alerts may not return the full query result
    Symptom
    When a specific query is run from the 'Query Generator' the results are quite long. However when the same query is run as part of an alert not all of the results are displayed.
    Other terms
    alert, query, large query result, alerts and queries, query result, query generator, query analyser, query analyzer
    Reason and Prerequisites
    Application Functionality
    Solution
    An alert based on a query returning long results will not display the complete list should the result be over a certain size. This implies that a query which returns, for example only the invoice number, 200 lines in the query generator may only return 123 lines in the alert.
    Workaround:
    If possible limit the query in the 'where' condition.
    For Example:
    If the query in the alert returns all invoices that exist in the database. It may be pertinent to limit the display to those invoices added on that day only or to display only invoices that have the status 'Open'
    E.G.
    Instead of
    select T0.docnum from oinv T0
    Write
    select T0.docnum from oinv T0 where datediff(day,getdate(),t0.updatedate) =0
    To save the query in the query manager:
    To save the query open the query generator (Reports -> query generator).
    Press 'Execute' without entering any table information.
    Click on the pencil icon to the left of the statement 'Select *' This opens the query for editing.
    Delete the words 'SELECT *' and copy in the query below.
    Now press 'save' and the 'Query Manager' opens.
    Click on a title from the list displayed. In the 'Query Name' field type the name the query will be saved under.
    Press Save and the query is saved in the query manager.
    To create an alert:
    Open the 'Alerts Management' (Administration -> Alerts Management).
    Change to add mode by choosing Data -> Add.
    Give the alert a name e.g. Invoice Document Numbers.
    Select the 'active' option.
    To select the saved query click on 'open saved query' and select the query from the query manager.
    Under the heading 'Frequency' choose the desired timing for the reoccurrence of the alert e.g. "Every '1' 'Day'", "At '9:00Am'"
    Choose "Add" to save the alert.
    SAP Note Number  Display Print
    Note Language    
    Version    
    Additional Information
    RELEASE STATUS: Released for Customer
    Released on: 18.04.2007
    Priority: Recommendations/additional info
    Category: FAQ
    Primary Component: SBO-ADM-ALR Alerts Management
    Secondary Components: SBO-ADM Administration
    English


    3

  • Alert Drill Down - Draft and Added Documents

    Hi,
    I want to be able to send and alert that allows drill down when the alert includes draft and multiple types of added documents (ie Sales Order, AR Invoice, Purchase Order, AP Invoice etc.)
    Currently my alert query has UNIONs for the draft table  and ADDED type documents. For the Added documents I select a dummy draft number. Of course this is very confusing to the user, who need to recognise that this is an ADDED document and not to drill but copy and retreive the document.
    select
    --For DRAFT Documents
    T0.DocEntry          as     'Draft_No',
    '' as  'Doc_No',
    'Draft'               as 'Type',
    ---etc. etc.
    UNION
    ---For  ADDED SALES ORDERS
    select
    (select min(docentry) from ODRF)     as 'Draft_No',
    T0.Docnum as  'Doc_No',
    'ADDED'          as 'Type',
    etc etc
    Sample Data returned by alert
    2     1210952     ADDED     N/A     NPO-PORT     Sales Order     Item     Approved     
    2     1410660     ADDED     N/A     CASHPUR     Purchase Order     Service     Approved     2009-11-23 00:00:00.000     Approvd PM     Open     N     -     Ibb     N     ALEXANDRE PERRACHON     SHARMA AJAY     SHARMA AJAY     DUJARDIN CYRIL     AUD     3630.000000     4     Administration - Marketing     -     Y     SHARMA AJAY     G161205     G161108     G161108     G017132     10     0     CASH PURCHASES     8     18
    Edited by: eric walker on Nov 23, 2009 6:19 AM

    Hi Eric,
    This is impossible.  Simply because, once you are using Union, drill down will no longer work.
    Thanks,
    Gordon

  • How to define alert execution sequences ?

    Hello everyone,
    I needed to set up an alert which would only be launched if a 'new' entry was added to the OPKL table, by new I mean entries which weren't detected by the previous alert, it seemed hard at first but I found a means to do it, ( if anyone is interested in how I achieved it ,I can post the solution) But a second problem showed up : I couldn't use complex queries in my alert as it resulted in disabling Drill down options ( orange arrows) in the alert results, I decided to split the alert into two separate alerts, but in order for this solution to work, I need the alerts to be executed in a precise order, as in " Alert1 goes first THEN Alert2"
    can anybody tell me if it is possible to control the alert launch sequence,  and if yes how ?
    Thanks in advance
    Amin

    Hello Lakshmi,
    The solution I found involved creating a user Table (@LASTPKL) in which i would store the Entry of the last Pick list entered, and then I would launch a querry which would select thias particular entry, display it, and eventually update it if there were any others newer. So what you need to do is to create a User Table 
    and then set the folowing query as your alert query :
    DECLARE @Flag INT
    SET @Flag=0
    IF((SELECT MAX(AbsEntry) FROM OPKL)<>(SELECT MAX(CODE) FROM [@LASTPKL]))
      BEGIN
      SET @Flag =1
      SELECT T0.AbsEntry As 'Numéro', T0.[Name] As 'Created by', T0.CreateDate As 'Creation date',  T0.PickDate As 'Picking date',
      CASE T0.Status
      WHEN 'Y' THEN 'Picked'
      WHEN 'R' THEN 'Validated'
      WHEN 'P' THEN 'Partialy picked'
      WHEN 'D' THEN 'partialy delivered'
      ELSE 'Closed'
      END
    "Pick lists waiting "
    FROM OPKL T0 WHERE T0.AbsEntry = (SELECT MAX(AbsEntry) FROM OPKL)
    END
    IF @Flag <> 0
    BEGIN
       DELETE FROM [@LASTPKL]
       INSERT INTO [@LASTPKL] (Code,[@LASTPKL].[Name])
       (SELECT T0.AbsEntry,T0.AbsEntry FROM OPKL T0
       WHERE T0.AbsEntry=(SELECT MAX(AbsEntry) FROM OPKL))
    END
    One assumption I made was that the picklist codes would always follow an ascending order, and due to the query's structure teh drilldown orange arrows won't be displayed.
    I hope this helps.
    Best Regards

  • Query ALARM not working

    Hi everyone
    I've created a query and set it as an alarm for specific users
    it is active and it has not being poping up the message on the Messages7alert Overview form of their sessions
    I was wondering if there is any limitation for the messages Service
    or maybe my query is too long:
    SELECT DISTINCT
           sc.DocDate,
           SC.Sol SC,
           sC.STATUS_SC,
           OC.OC,
           STATUS_OC,
           oc.canceled,
           (SELECT Y1.User_code
              FROM OUSR Y1
             WHERE Y1.INTERNAL_K = oc.Usersign)
              USUARIO
      FROM    (SELECT T0.DocEntry,
                      T0.DOCSTATUS STATUS_OC,
                      T0.Canceled,
                      T0.Cardcode,
                      T0.[CardName],
                      T0.[DocNum] OC,
                      cast (T0.[U_NROEM1] AS VARCHAR (10)) SC,
                      T1.[ItemCode] Art,
                      t0.Usersign
                 FROM    OPOR T0
                      INNER JOIN
                         POR1 T1
                      ON T0.DocEntry = T1.DocEntry
                WHERE substring (cast (T0.[DocNum] AS VARCHAR (10)), 5, 1) LIKE '2'
                                  group by T0.DocEntry,
                      T0.DOCSTATUS ,
                      T0.Canceled,
                      T0.Cardcode,
                      T0.[CardName],
                      T0.[DocNum] ,
                      cast (T0.[U_NROEM1] AS VARCHAR (10)),
                      T1.[ItemCode],
                      t0.Usersign ) OC
           FULL OUTER JOIN
              (SELECT T0.DocEntry,
                      T0.DocDate,
                      T0.DOCSTATUS STATUS_SC,
                      T0.Cardcode,
                      T0.[CardName],
                      cast (T0.[DocNum] AS VARCHAR (10)) SC,
                      T0.[DocNum] Sol,
                      T1.LineNum,
                      t0.Usersign
                 FROM    OPOR T0
                      INNER JOIN
                         POR1 T1
                      ON T0.DocEntry = T1.DocEntry
                WHERE substring (cast (T0.[DocNum] AS VARCHAR (10)), 5, 1) LIKE '1'
                             group by T0.DocEntry,
                      T0.DocDate,
                      T0.DOCSTATUS ,
                      T0.Cardcode,
                      T0.[CardName],
                      cast (T0.[DocNum] AS VARCHAR (10)) ,
                      T0.[DocNum],
                      T1.LineNum,
                      t0.Usersign) SC
           ON OC.SC = SC.SC
    WHERE sC.STATUS_SC LIKE 'O' AND OC.STATUS_OC <> ''
    hope you'll be able to help me
    Best regads,

    Hi,
    You are right.  There are many restrictions to alert query.  Your query is way complicated than alert function can handle.
    Thanks,
    Gordon

  • Query a Sharepoint 2010 List for an Item

    I realize that this seems like a simple request however, please allow me to explain further. I have our server that hosts sharepoint able to server up php pages(as I am uncomfortable with .NET). I figured this would open up a whole new world in the way of
    being able to program up simple apps that I could then interact with data stored in Sharepoint. What I am trying to do right now is just my own form of autocomplete.
    On my PHP form I have a place for a number. I would like to be able to query a list in Sharepoint for that number and loads its corresponding description into a field near where the user enters the number. I have some novice-intermediate experience at this
    point successfully manipulating forms in sharepoint and using jQuery that I am now trying to break out to my own PHP applications/forms. However it seems no matter how I try to query Sharepoint I get an error or my java script fails.
    I believe what I am looking for is a way to query a sharepoint list on sp.domain1.com from a php page hosted on myPC.domain1.com. Both the SP server and my pc are on same domain same subnet.
    Thank you in advance for all the help!
    <html>
    <script src="http://sharepoint.domain1.com/jQuery/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="http://sharepoint.domain1.com/jQuery/jquery.SPServices-2014.02.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    //**********This code returned an error in Status*********
    $(document).ready(function() {
    alert("Form Loaded");
    var mySPurl = "http://sharepoint.domain1.com:80/";
    var tmp = "100000218";
    $.support.cors = true;
    $().SPServices({
    operation: "GetListItems",
    crossDomain: true,
    async: false,
    listName: "Materials",
    webURL: mySPurl,
    CAMLViewFields:"<ViewFields><FieldRef Name='Title' /></ViewFields>",
    completefunc: function(xData, Status){
    alert(Status);
    </script>
    <body>
    <ul id="tasksUL"/>
    <?php
    echo 'Hello World!'
    ?>
    </body>
    </html>
    //************This code wont make it past <SP.ClientContext.get_current();>
    function getSAPInfo(MatNumField) {
    alert('Getting SAP Info...');
    var clientContext = new SP.ClientContext.get_current();
    alert("Context Retrieved.");
    var oList = clientContext.get_web().get_lists().getByTitle('Materials');
    var tmp = getField('input', Num).value;
    //var camlQuery = new SP.CamlQuery.createAllItemsQuery();
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Title" /><Value Type="Text">'+tmp+'</Value></Eq></Where></Query></View>');
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(collListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded(sender, args) {
    var index = 0;
    var listItemEnumerator = collListItem.getEnumerator();
    var MatDescr;
    alert("Query Succeeded!");
    listItemEnumerator.moveNext();
    oListItem = listItemEnumerator.get_current();
    MatDescr = oListItem.get_item('Description');
    getField('input', 'Descr').value = MatDescr;
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    Again any assistance is most appreciated I have been trying to get this seemingly "simple" functinality working for 4 days straight now. {frustrated}
    Thanks Guru's!
     

    Hey Guys. Thanks for the timely responses. Unfortunately I had already visited most of the links provided, and was not able to get something working from the information provided at those links. However in the end I was able to get thybag's SharePoint API
    php library to work for my needs. Please see the attached code which is working for me.
    3rd party credit I must give to thybag@GitHub
    https://github.com/thybag/PHP-SharePoint-Lists-API
    Thank you everyone for your help. Your responses forced me to continue working on this today, and allowed me to continue to believe that there was a solution.
    <?php
    //These refer to the library files I downloaded from GitHub provided by thybag
    use Thybag\SharePointAPI;
    require_once('SharePointAPI.php');
    $sp = new SharePointAPI('username','password','http://sharepoint.domain1.com/_vti_bin/Lists.asmx?WSDL','NTLM');
    $listContent = $sp->read('Materials',NULL,array('Title'=>'317666879'));
    $tmp = $listContent[0]["description"];
    echo $tmp;
    echo "<br/><br/>Finished SharePoint List Retrieval!";
    ?>

  • Alerts - Recipients  based on conditions

    We have a requirement that based on some conditions an alert will be sent to the recipients. For Example, If an employee completed 90 days in office , it should send notification to an employee A. If an employee completed 100 days, it should send notification to Employee A and Employee B.
    Is it possible from a single alert definition to send to different recipients based on the above conditions? or do i need to define an alert for each condition?
    Thanks in advance.

    Hi,
    Based on your condition, take that email address as a column in your alert query and use that email address as a recipients.
    for E.g :
    SELECT P.FULL_NAME, XX_GET_RECP(P.PERSON_ID) EMAIL_ADD
    INTO &FULL_NAME, &EMAIL_ADD
    FROM PER_ALL_PEOPLE_F P;
    Whereas your To: column in alert detail will contain &EMAIL_ADD.
    Hope this will solve your problem.
    Regards
    Ayaz

  • How to set multiorg context for Alerts in R12

    Hi Experts,
    Our Client has moved from 11i to R12. We have one  alert in 11i. We migrated that alert to R12.
    However, due to multi org architecture the alert query is not returning any values and hence not working as expected.
    Is there any setup , where we can overcome this roadblock ?
    Alert details :
    Type= Periodic alert
    Application = Custom Payables
    Alert query:
    SELECT   DISTINCT
    hrer.EMAIL_ADDRESS
    ,         hrea.email_address
    ,         hrea.full_name
    ,         pov.vendor_name
    ,         poh.segment1
    ,         poh.comments
    ,         poll.shipment_num
    --,         pol.line_num
    ,         pol.item_description
    ,         msi.segment1
    ,         nvl(msi.description,pol.item_description)
    ,         ltrim(to_char(pol.unit_price,
    '$999,999,999,999.99'))
    ,         pod.req_header_reference_num
    ,         api.invoice_num
    ,         prl.release_num
    ,         pol.unit_meas_lookup_code
    ,         ltrim(to_char(TRUNC(poll.quantity,2),'999,999,999,999.99'))
    ,         ltrim(to_char(TRUNC(poll.quantity_billed,2),'999,999,999,999.99'))
    ,         ltrim(to_char(TRUNC(poll.quantity_received,2),'999,999,999,999.99'))
    ,         ltrim(to_char(TRUNC((poll.quantity_billed - poll.quantity_received),2),'999,999,999,999.99'))
    , api.invoice_date
    , ltrim(to_char(api.invoice_amount,
    '$999,999,999,999.99'))
    , ltrim(to_char((pol.unit_price*TRUNC(poll.quantity,2)),
    '$999,999,999,999.99'))
    INTO      &REQUESTOR_ID
    ,         &AGENT_ID
    ,         &AGENT
    ,         &VENDOR
    ,         &PO
    ,         &PO_DESC
    ,         &POL_NUM
    ,         &POL_DESC
    ,         &ITEM_NUM
    ,         &ITEM_DESC
    ,         &POL_PRICE
    ,         &REQ
    ,         &INVOICE
    ,         &REL_NUM
    ,         &UNIT
    ,         &QTYORD
    ,         &QTYBILL
    ,         &QTYREC
    ,         &QTYUNKNOWN
    ,         &INVOICE_DATE
    ,         &INVOICE_AMOUNT
    ,         &LINE_AMT
    FROM      ap_suppliers pov
    ,         po_headers poh
    ,         po_agents poa
    ,         hr_employees_current_v hrea
    ,         po_lines pol
    ,         po_distributions pod
    ,         ap_invoices api
    ,         po_line_locations poll
    ,         hr_employees_current_v hrer
    ,         ap_holds aph
    ,         po_releases_all prl
    ,         mtl_system_items msi
    WHERE     aph.hold_lookup_code    = 'QTY REC'
    AND       aph.release_lookup_code IS NULL
    AND       api.invoice_id          = aph.invoice_id
    AND       poll.line_location_id   = aph.line_location_id
    AND       pod.line_location_id    = poll.line_location_id
    AND       pol.po_line_id          = poll.po_line_id
    AND       poh.po_header_id        = pol.po_header_id
    AND       hrer.employee_id(+)     = pod.deliver_to_person_id
    AND       pov.vendor_id           = poh.vendor_id
    AND       hrea.employee_id        = poh.agent_id
    AND       poa.agent_id            = poh.agent_id
    AND       pod.po_release_id       = prl.po_release_id(+)
    AND  pol.item_id             = msi.inventory_item_id(+)
    AND pod.destination_organization_id not in(103,102)
    AND poll.ship_to_organization_id not in (103,102)
    AND pov.vendor_name like 'xyz%'
    --and rownum<11
    --and poh.segment1='92143'
    Regards..
    KJ

    Please make sure you have all the patches mentioned in (Event Alert Does Not Fire Or Check Event Alert ( ALECTC ) Concurrent Request Does Not Start (Doc ID 1261925.1)) applied.
    Thanks,
    Hussein

Maybe you are looking for

  • ORA-00955 when upgrading from Content Server 5.0.2 to Publisher?

    I am upgrading Content Server 5.0.2 to Publisher. After running the sw installation and having imported the publisher.pte file, I am starting the Publisher and receiving an Oracle error "ORA-00955: name is already used by an existing object". From th

  • Newbie- How to reconnect "Offline Media" in CS3?

    I've been using Premiere for a while (successfully), but always by importing existing QT movies (that I have created using QT pro) No problems at all. A bit more detail: I'm an animator, so in the past I have been assembling the original frames of my

  • TS1433 I have tried to reset the SMC and still have the fans running. What else could be causing this?

    My iMac has been continuously running its internal fan. Sometimes with just the internet running, or upon startup. I put it into sleep mode and wake it back up, which turns the fan off, but sometimes it starts back up shortly after. I have tried rese

  • Camera not being detected

    To start, iPhoto nor Image Capture can see the camera on my MacBook Pro. Now for the details: I have a MacBookPro (2.4Ghz Core 2 duo) and the camera is a Canon EOS Digital Rebel XT. When I connect my camera via USB to the MBP it simply doesn't see it

  • Popup is closed when command link is pressed even after validation exceptio

    Hi Techies, I am using JDeveloper 11.1.1.4. I have a sample .jspx page which has a table, a command link and a popup. When the user clicks the command link, the popup gets shown. The popup contains af:panelWindow as a direct child. panel window as a