Query alert for PO

Hi,
I need a query alert, which will alert me for all PO's with warehouse code "Direkte" (Direct) 14 day's before arrival. So what the query needs to consider is:
(OPOR) U_ETA (udf date field which query should consider in it's 14 days before arrival)
(POR1) WsCode "Direkte" (There will never be a mix with other warehouse codes on the same PO)
Reason for this is that we want to alert our customers 14 days before their direct shipments will arrive.
Kind regards
Kjetil Sandvik

Hi,
Try This,
Select * from opor inner join por1 inner join on opor.docentry = por1.docentry
where datediff(d,u_eta,getdate()) = 14
thanking you
Malhaar

Similar Messages

  • Query Alert for a change in value of the Quantity field of the sales order

    Hi Experts,
    A query alert has been set up to alert the warehouse employee when a new sales order is created by a sales employee. Our client wants the warehouse employee alerted when the sales employee edits the quantity field of an already added sales order.
    Kindly assist in designing a query to notify of this change in the Quantity field of the sales order.
    David

    Try this one:
    SELECT T0.DocNum, T0.CardCode, T1.ItemCode, T3.Quantity 'Old Qty', T0.Quantity 'New Qty', MAX(T2.LogInstanc) 'Times Changed'
    FROM dbo.ORDR T0
    INNER JOIN dbo.RDR1 T1 ON T1.DocEntry = T0.DocEntry
    INNER JOIN dbo.ADOC T2 ON T2.DocNum = T0.DocNum AND T2.ObjType = '17'
    INNER JOIN dbo.ADO1 T3 ON T3.DocEntry = T2.DocEntry AND T3.ItemCode = T1.ItemCode
    WHERE T0.DocStatus = 'O' and T0.DocType = 'I' AND T1.Quantity != T3.Quantity
    GROUP BY T0.DocNum, T0.CardCode, T1.ItemCode, T1.Quantity, T3.quantity

  • Formula to calculate SUM of multiple sheets of excel and the result to be stored in another excel sheet and pop up alerts for multiple rows

    I have a excel with multiple
         sheets with data as shown below
    SHEET 1
    A 1
    B 2
    C 3
    SHEET 2
    B 1
    C 2
    A 3
    SHEET 3
    C 1
    A 2
    B 3
    My
    query is splitted into 3 categories
    I want to have a formula to do math calculation such that data of "A" of SHEET 1 is  calculated with "A" of SHEET2 irrespective of the location of "A".
    When I include SHEET3, the formula should automatically identify the location of "A" or "B" or "C" and give the result corresponding to A, B or C. Since I want to bifurcate daily report and output printed. I want to use another
    excel for output. How to link multiple sheets of one excel and print the output of above in
         another excel?
    Assume, I have 4 SHEETS,  "SHEET 1", "SHEET 2", "SHEET 3" and "SHEET 4". Math calculation need to be done using all 4 sheets. If
    I include "SHEET 5", the formula should ignore SHEET 1  automatically and give the results of SHEETS 2 to 5. Similarly, if I include SHEET 6, SHEET 1 and 2 need to be ignored for further calculation and SHEET 3-6 need to be used. How to write
    such formula?
    How to get pop up alert for multiple rows, if a specific condition is hit?

    Maybe VBA Code should be a good option for you. I suggest you post you issue to
    Excel for Developers forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Best Regards,
    Wind

  • Query required for JE posted with the customer

    Dear Experts,
                   Following is the scenario - Accountant passes Journal Entries once in a while with regard to customers also, i would require a alert for the scenario.
                    Whenever the user posts a JE with regard to a customer alert has to generate to the manager else a query report is required would do.
    Saravanan

    Hi,
    You can use the below as an alert for Manual Journal Entries that has been created the last 2 days with posting to Business Partner account.
    SELECT t0.transid, t0.shortname
    FROM JDT1 T0 INNER JOIN OJDT T1 ON T0.TransId = T1.TransId
    WHERE shortname <> account and  T1.createdate > getdate()-2 and t0.transtype = 30
    If you want to have a different date range just change the '-2' to the amount of days you want, if you only want entries created today, just remore it. If you prefer it to be by posting date rather than by creaation (system) date, just change createdate to refdate.
    Hope it helps,
    Jesper

  • Using WMI alert for mirroring in Sql server 2012

    We are using mirroring in Sql Server 2012  and we are using WMI alerts for some of events such as Connection lost,Manual failover,...
    In alert definition we have set the followings:
    Type: WMI event alert
    NameSpace:
    \\.\root\Microsoft\SqlServer\ServerEvents\MSSQLSERVER
    Query: select * from DATABASE_MIRRORING_STATE_CHANGE where State = 6
    The alert is bing triggered correctly,but on email description instead of having meaningful explaination like 'Connection lost',We have the same query:
    Query: select * from DATABASE_MIRRORING_STATE_CHANGE where State = 6
    We have used the same implementation in our Sql Server 2008 servers and it is working fine.This mashine (Sql Server 2012) is a new mashine.
    I would appreciate if someone help me on this.AlsoI checked and 'Include body of e-mail in notification message' was already set.
    Thanks
    Aspet
    A.G

    Are you looking for alerting related to mirroring like below ?
    http://www.mssqltips.com/sqlservertip/1859/monitoring-sql-server-database-mirroring-with-email-alerts/
    http://technet.microsoft.com/en-us/library/cc966392.aspx
    Raju Rasagounder Sr MSSQL DBA

  • Raising 2 alerts for 1 exception

    I am working on raising an alert using Alert framerwork
    with exception reporting and reporting agent .
    I have a query ( has projects ID & Approavl ate as free chars.) where we want to raise the alerts for the projects approved in last 30 days. I have defined a exception for this and it is working fine.
    I also  created a reporting agent on this query linking to alert categories. Rep. agent has Project ID and Approval date in the "Drilldown charecterstics"
    Problem:
    Query has only one exception , but when I run the reporting agent it is raising two alerts .
    Appreciate your help.
    Regards
    MB

    Hi ,
      If I remove the exception in the query,it is not raising the alert .
    Regards
    MB

  • Cannot Clear Critical Alert for Physical Standby Databases

    10.2.0.4.0 Grid Control monitoring 10.2.0.4.0 databases and standby databases with 10.2.0.4.0 agents.
    The standby databases are running on Xen guests. The O/S is Red Hat 4 Advanced Server.
    I had a failure of Xen guest on Saturday that caused me to have to rebuild the standby servers. EM Grid Control successfully verifies the configurations and the status is normal for both physical standby databases. (A rebuilt logical standby database shows no alerts.)
    Grid Control database targets page shows a single critical alert for each physical standby database. The alert is for "number of missing media files is 4". The metric graph shows the count as 0 since before the rebuilds. I cannot clear the alerts from the Critical Alerts page. Grid Control reports "The selected alert(s) cannot be manually cleared. They will clear automatically once the metric is no longer in a critical or warning state.".
    Any suggestions?
    Thanks,
    Ray Westphal

    Thanks for the reply Anthony.
    The result of the query on both standby databases is '0'. The metric graph also shows the value at '0' since before rebuilds.
    And the OMS db and agents have been reset several times since I posted this.
    Ray Westphal.

  • Alert for new business partner

    I am a novice at programming, what would the code be for an alert that would trigger when a new client is added? I have one but but it keeps on picking up all of the clients created each day when I only want those that have not been sent before (in other words between the alert intervals)
    thx,
    Richard.

    The easiest solution is to run the query/alert based on date - for example show me all the customers that were added yesterday. If you do this you would get an alert every day of ones for the previous day.
    New Customers entered:
    SELECT T0.CreateDate AS 'Creation Date', T0.CardName AS 'BP Name', T0.CardCode AS 'BP Code', T0.Phone1 AS 'Phone', T0.CntctPrsn AS 'Contact Person', T0.CardType AS 'BP Type' FROM  [dbo].[OCRD] T0 with (NOLOCK)  WHERE   CONVERT(DATETIME,T0.CreateDate, 101) > CONVERT(DATETIME, getdate() -1, 101)   and (T0.CardType = 'C' or T0.CardType = 'L')  ORDER BY T0.CreateDate,T0.CardName

  • Alerts for certificate expiry?

    Hello everyone, I have a quick question: is there any way to get alerts for certificate expiry before a threshold number of days? If so, can the alert be for certificates that are required for the PI environment, SAP Portal or infrastructure ones that are in the VIP.
    We are on PI 7.1, Solution Manager 7.01, Netweaver 7.0
    Thanks for any pointers.
    Regards.
    Ravi,

    Hi dina,
    First of all ..thanks for your prompt replies..
    In my question i am refering to Seeded Alerts(triggered to mails) provided by Oracle for each module.
    Run the following query to view Oracle seeded Alerts for projects in Vision Instance:
    SELECT DISTINCT fef.APPLICATION_NAME,
    aa.ALERT_NAME,
    aa.DESCRIPTION
    FROM
    FND_EXECUTABLES_FORM_V fef,
    ALR_ALERTS aa
    WHERE
    aa.APPLICATION_ID=fef.APPLICATION_ID
    and fef.application_name IN('Projects')
    AND aa.ALERT_NAME NOT IN '%'
    ORDER BY
    fef.APPLICATION_NAME,
    aa.ALERT_NAME
    this query returns 6 alerts for vision instance
    But none for my development Instance !!

  • Alerts for conc managers

    Hi,
    We installed apps pack for our R12 env. Now it's sending alerts for ICM only. How to setup for other managers like Standarad manager? Please help
    Regards

    Hi dina,
    First of all ..thanks for your prompt replies..
    In my question i am refering to Seeded Alerts(triggered to mails) provided by Oracle for each module.
    Run the following query to view Oracle seeded Alerts for projects in Vision Instance:
    SELECT DISTINCT fef.APPLICATION_NAME,
    aa.ALERT_NAME,
    aa.DESCRIPTION
    FROM
    FND_EXECUTABLES_FORM_V fef,
    ALR_ALERTS aa
    WHERE
    aa.APPLICATION_ID=fef.APPLICATION_ID
    and fef.application_name IN('Projects')
    AND aa.ALERT_NAME NOT IN '%'
    ORDER BY
    fef.APPLICATION_NAME,
    aa.ALERT_NAME
    this query returns 6 alerts for vision instance
    But none for my development Instance !!

  • Alerts for Projects

    The Vision Instance shows 6 Alerts for Projects Modules.
    However, my Development Instance doesn't show any alert for projects .
    we are implementing costing , billing & Prj Contracts.
    Pls help.

    Hi dina,
    First of all ..thanks for your prompt replies..
    In my question i am refering to Seeded Alerts(triggered to mails) provided by Oracle for each module.
    Run the following query to view Oracle seeded Alerts for projects in Vision Instance:
    SELECT DISTINCT fef.APPLICATION_NAME,
    aa.ALERT_NAME,
    aa.DESCRIPTION
    FROM
    FND_EXECUTABLES_FORM_V fef,
    ALR_ALERTS aa
    WHERE
    aa.APPLICATION_ID=fef.APPLICATION_ID
    and fef.application_name IN('Projects')
    AND aa.ALERT_NAME NOT IN '%'
    ORDER BY
    fef.APPLICATION_NAME,
    aa.ALERT_NAME
    this query returns 6 alerts for vision instance
    But none for my development Instance !!

  • Alert for service contract!

    Hi all!
    When i create a services contract and renew after 10 days of end date . The system will alert for me before 2 days of end date. But i have problem, the system only alert one time. Now i would like alert will show more one time and only services employees can see.
    Thank you!

    Hi
    You need to use your own query .
    it would be like this
    >>>declare @datevar datetime
    >>>select @datevar = getdate()
    >>>SELECT T0.[ContractID], T0.[CstmrCode], T0.[CstmrName], T0.[CntctCode], T0.[CntrcType],T0.[StartDate], T0.[EndDate] FROM OCTR T0 WHERE DATEDIFF(DD, T0.[EndDate], @datevar) >40
    1.Go to Administration>>Altert management
    2.  Create new Alert
    Here i am showing condition that show me relted field  when the difference between contract end date and todays date  is greater than 40 . You can change based on the requirement .
    Thank you
    Bishal

  • Alert for HR module

    Hi all,
    I want to set alert for following scenario.
    we have employees who are outsourced to third party on contract basis.
    Let say Emp A has contract from 1st Jan 2009 to 31 Oct 2009.
    Now the HR manager must alert message before the contract ends lets say before 10 days ie on 21st Oct that the contract for Emp A will be over.
    How to manage this in alert ....?
    Regards
    Harish

    Write a query based alert like this
    SELECT 1 from OHEM T0 where DATEDIFF(day,getDate(),T0.U_ConEnd)=10
    Here I assumed that there is an UDF created in  Employee Master called U_ConEnd which holds the End date of contract of the employee.
    Replace this with appropriate field in your context.

  • What is the minimum permission set required to query alert information using OpsMgr 2012 SDK?

    Hi,
    I am using the OpsMgr 2012 SDK to retrieve alert information from SCOM.
    I tried configuring a read-only role for a user account (Group Scope: All, Dashboards & Views: All) but, as I call some of the APIs like Administration.GetAllManagementServers(), Administration.GetAllAgentManagedComputers() etc. I get a UnauthorizedAccessEnterpriseManagementException.
    I need to know what are the minimum permissions required for a user to query alert information and to make calls I mentioned above using the OpsMgr 2012 SDK.
    Warm Regards
    Himanshu Agarwal

    Thanks for the reply.
    Just to give you a context, I am writing a client application where a user can fetch alert information from SCOM using OpsMgr 2012 SDK. There could be many users that would use this application, hence I need to know the minimum set of permissions I can grant
    or add them to a group for easy maintenance.
    I believed Read-Only admin role was intended for that purpose but some of the SDK APIs as I mentioned throw the said exception.
    I would like to know, how can i create such role/group from SCOM 2012 console.
    PS: SDK and Config account is used by SCOM to perform DB operations and I would not like to impersonate this account in my client application. Instead I want to make my clients as admins with just enough permissions to read information. I'll have a better
    control this way.

  • Create alert for users not login in R12 for specific number of  days

    Dear experts
    we have R12.1.1 .
    i want to create auto alert for users who dont login to R12 application for defined period e.g 30 days .
    please tell me that can i implement this ?
    Regards

    i want to create auto alert for users who dont login to R12 application for defined period e.g 30 days .
    please tell me that can i implement this ?You can use Oracle Alert to do this. To check when was the last time the user logged in to the application, query FND_USER.LAST_LOGON_DATE (for example, SYSDATE - LAST_LOGON_DATE > 30).
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_USER&c_owner=APPLSYS&c_type=TABLE
    Thanks,
    Hussein

Maybe you are looking for

  • Passing a Path string results in mangled name

    So I have a script that I made that takes a bunch of PDFs from a folder, and puts the resulting PDF into DropBox's Public folder. So, the DropBox path is ~/ericdannewitz/Dropbox/Public/JulieanneMartin/ and the file name would be JuileAnne Martin - 08

  • Interactive Reports and PL/SQL Functions

    Hi, Am new to the interactive reports, and it appears to be I can only use a single SELECT statement to populate the report. I need to convert some older reports to the new interactive reports, but these are populated using PL/SQL functions, as the W

  • KONDP-PACKNR to be passed in PACKKP-POBJID

    I need to select data from PACKKP by passing the value of KONDP-PACKNR (Packking Instruction) into PACKKP-POBJID (Packing Object). But because these are 2 different data types, (PACKNR is 22 char and POBJID is 20 char), I thought matching the first 2

  • Where is the logfile for NetworkManager in Archlinux?

    I recently installed gnome shell on my arch build and decided to switch to NetworkManager so I could easily change the network stuff within gnome. ...but now I have no wireless. Selecting a wireless network in the gnome-panel's applet does nothing, n

  • Start time error in EC50E (Move-in creation)

    Dear all, We are working on ISU Upgrade project, earlier ISU version was 4.6c and now we are moving to ECC 6. Now while integration testing in ECC 6, we are facing a error (message) while creating a move-in (EC50E)for a given BP on Premise level. Thi