on 07-31-2009 5:30 AM
Hi Experts,
I need a alert like, if the sales order or any other document is not posting more than 5 days, alert should come in sap screen and as well as mail. wat is the query? i have to write.
thanks in advance.
Hi Anand...
Use the following query to Catch the Doc. Which is not posted for more than 5 days...
SELECT T0.[DocNum], T0.[ObjType], T0.[CardCode], T0.[DocDate] FROM ODRF T0 WHERE DAY(GETDATE() - T0.[DocDate]) >= 5
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Try to Use this Query in Query Generater dont put this Query to MSSQL Sever Management Studio.
Declare @a Datetime
Set @a = (CONVERT(nvarchar(30), GETDATE(),101))
SELECT Distinct 'True' FROM ORDR T0 WHERE T0.DocDate != (@a-5) or T0.DocDate != (@a-4) or
T0.DocDate != (@a-3) or T0.DocDate != (@a-2) or T0.DocDate != (@a-1)
Regards,
Madhan.
Edited by: Madhan Babu C on Jul 31, 2009 1:34 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anand...
Use the following query to Catch the Doc. Which is not posted for more than 5 days...
SELECT T0.[DocNum], T0.[ObjType], T0.[CardCode], T0.[DocDate] FROM ODRF T0 WHERE DAY(GETDATE() - T0.[DocDate]) >= 5
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anand....
It is not possible by standard product, we have to write query for this condition and call that query in Alert Management Window...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Anand,
Try this Alert Query,
It will come Alert The Sales Order Document is not posting more than 5 days, Alert should come in SAP Screen
and as well as mail.
Declare @a Datetime
Set @a = (CONVERT(nvarchar(30), GETDATE(),101))
SELECT Distinct 'True' FROM ORDR T0 WHERE T0.DocDate <> (@a-5) or T0.DocDate <> (@a-4) or T0.DocDate <> (@a-3)
or T0.DocDate <> (@a-2) or T0.DocDate <> (@a-1)
Save as Query Manager,and
->> Goto Administration.
->> Alert Management, and Open Alert Management Window.
Create New Alert for Sales Order Document is not posting more than 5 days,
->> Create Alert Name and Click Open Save Query Button then Open Query Manager Window and your Saved Query.
->> Click Active Button.
->> Check Your Praticular Users for Alert.
->> Set Time Frequency. ex: Every 1 Mintues, Hour, Days, Weeks, Month.
->> Finally Click Add and Save the Alert.
Regards,
Madhan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anand
Are you setting the Cancellation or Required By dates in the Sales Order. The system default is 30 days and this can be set under Administration > System Initialization > Document Settings > Per Document TAB and choose Sales Order. My suggestion would be a query that checks if Cancellation date and GetDate() are within a day or so of each other (for example).
The alternative is to use the create date and compare with GetDate().
Kind regards
Peter Juby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Anand,
What's your exact need? Whether alert should come for the Draft Documents which were not posted more than 5 days or if a document is not copied to higher level document within 5 days or No postings had been done for an individual document for more than 5 days?
regards,
Bala
Edited by: Balakumar Viswa on Jul 31, 2009 10:18 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.