Skip to Content
author's profile photo Former Member
Former Member

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2004 at 06:52 PM

    When I execute a SELECT DISTINCT query in SAP it does not return a distinct list. When I execute the same query in SQL Query, I get a distinct list.

    This may have something to do with your problem (especially if you are checking the record count).

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Dear All,

      if i'm not mistaken, Alert Management Queries can't except Variable entry from Screen (eg. $[RDR1.ITEMCODE], etc) so the query that can be run for Alert Management Queries are SQL Queries that do not include Parameter entries mentioned above.

      but then again i have never tried such case during implementation. usually i prefer to use approval procedure for queries that needs Screen Entries.

      Arief S

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2004 at 07:03 AM

    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 result 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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.