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