Help for Alert once AR Invoice booked to sales employees

Hi all,
I have made an alert in which when a sales invoice is added to the system an automayic alert goes to the sales employee but the problem is that when the sales employee logs in, he get the complete full as on date ar invoices which are been made into the system which includes old invoices.
SELECT T0.[DocNum], T0.DocDate,T0.[CardCode], T0.[CardName], T0.[OwnerCode], T0.SlpCode,T1.[lastName]' 'T1.[firstName] as Creater
FROM OINV T0 INNER JOIN OHEM T1 ON T0.OwnerCode = T1.empID
WHERE T0.[SlpCode] =1
I want that in the alert invoices should come from e.g 01/02/2009 onwards. Also when the sales employee gets and sees the alert, it should automatically get removed from the alert list of the sales employee.
How to achive this...Kindly help please
Regards
Kamlesh

Hi Kamlesh,
Datediff(yy,T0.DocDate,getdate()) = 0
Datediff calculate the different between 2 dates. With a normal math function you are not able to calculate a different between dates. So the part in the brackets are the statement.
yy means display / use year, the last 2 numbers
T0.DocDate is the first date from your table
getdate() get the actual date from the system
=0 is the condition.
So in with it means, check / calculate if the date differenz  between the date from T0.DocDate and the actual system date is equal 0.
Regards Steffen
P.S. i hope i explained it well

Similar Messages

  • Help for Alert required

    Hi,
    I am trying to create an alert system in SAP Business One wherein once a users put the AR Invoice an automatic alert goes to the sales employee linked to that particular AR invoice.
    The query for the alert is as under :
    SELECT T0.DocNum, T0.DocDate,T0.CardCode, T0.CardName, T0.OwnerCode, T0.SlpCode,T1.lastName' 'T1.firstName as Creater
    FROM OINV T0 INNER JOIN OHEM T1 ON T0.OwnerCode = T1.empID
    WHERE T0.SlpCode = 1 and Datediff(yy,T0.DocDate,getdate()) = 0
    Now the problem is that this alert seems to work fine but it is giving the sales Employee all the AR invoices which are made from Jan 2009 till date.
    My requirement is that in the alert pop up message box it should only show the current and latest AR invoices and not from Jan 2009. Also in the alert pop up screen of sales employee how to remove the AR invoices which the sales employee has seen from the alert.
    In the alert setup I have selected Alert frequency as every 1 minute and unticked Save History. My requirement is that as soon as the user enters the AR invoices at that time itself alert should go to the sales employee.
    IS my query wrong please suggest or what have i done wrong.
    Regards,
    Kamlesh

    Hi Kamlesh,
    To obtain each time the last invoice for SlpCode=1, try that query :
    SELECT T0.DocNum, T0.DocDate,T0.CardCode, T0.CardName, T0.OwnerCode, T0.SlpCode,T1.lastName' 'T1.firstName as Creater
    FROM OINV T0 INNER JOIN OHEM T1 ON T0.OwnerCode = T1.empID
    WHERE T0.DocEntry = (select MAX(DocEntry) from OINV where T0.SlpCode = 1 and Datediff(yy,T0.DocDate,getdate()) = 0)
    But if you have 2 invoices on the same minute, only the last one will appears in the alert.
    BR
    Alan.

  • Tables used for relationship between BP customer and BP Sales employee

    Can annybody tell me what tables contain the relationship between customers and sales employee.
    Or what tables are used by the BDOC BUPA_REL ?
    Thanks for your input.

    In table BUT050 you can find relationships between business partners.

  • Need help for downloading java at mac book retina

    i want to download java at my mac book pro retina but everytime we downloaded its not working..i need this because im going to use it to open my bank account...everytime i gonna check my bank account i need to use another computer not this my mac.why?? can you help me please.

    Banks do NOT use Java-in-a-Browser for anything, at all. If you have received a suggestion to conduct banking with JAVA enabled in your Browser, someone is attempting to commit a crime, with you as the intended victim.  You are being scammed and should report it to the Police.

  • Update sales employee for Portugal

    This functionality is available for Spain and this request is for Portugal as this is not available for that localization.
    Functionality requeted consisted on updating sales employee data for Portugal,  so you can change the sales employee or buyer data for all the documents listed  below at any time (including after the document is closed), at both document and row level.
    Documents:
    A/R Invoice & A/P Invoice
    A/R Down Payment Request & A/P Down Payment Request
    A/R Down Payment Invoice & A/P Down Payment Invoice
    A/R Reserve Invoice & A/P Reserve Invoice
    A/R Credit Memo & A/P Credit Memo
    Delivery & Goods Receipt PO
    Return & Goods Return
    If the change is done at the document level, a message asking the user whether to apply the change on the rows should appear.

    Hola Carmen,
    That functionality is available since B1 2007A SP01 PL07. Please check SAP Note 1369615 for more information.
    Please visited the LEGAL REQUIREMENTS AND IMPORTANT CORRECTIONS Channel Portal page regularly to check for important changes.
    ¿Vale?
    Regards,
    Vítor Vieira

  • Update A/R Invoice Sales Employee

    Hi everybody, i hope you can help me, I'm trying to update the sales employee value using dtw, but even appears succes in log summary, the value doesn't change.
    RecordKey     DocEntry     HandWritten     slpcode     
    RecordKey     DocEntry     HandWritten     slpcode     
    1     15704     tYES     25     
    thanks in advance for your help

    Hello Alberto,
    Which version and patch level are you using. Are you filling both the header and line template or just the header.
    The Sales Employee information (ID) could be updated in both thre header and rows.  For the rows to be updated you need to flll the template for the lines and the update the SlpCode there.
    Try this ......On Step 3 of DTW ......click on the Target data tab...and check the box Add all Item into Schema......... and then press NEXT to proceed.
    Suda

  • Hi! I need help, today I connected my mac Book Air to a tv for a presentation and as soon as I conected it the image on my screen went bigger. And I cant find the way to put it back as it was before. The Images are too big! heelp

    Hi! I need help, today I connected my mac Book Air to a tv for a presentation and as soon as I conected it the image on my screen went bigger. And I cant find the way to put it back as it was before. The Images are too big! heelp

    Morning DeeHutton,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Best of luck,
    Mario

  • Looking for a reading App.  iPad (iOS 7.1.2) - Kindle.  I am looking for a good app that can help a college student with reading books that cannot be found on audio book. Voice over works, but monotone!

    Looking for a reading App.
    iPad (iOS 7.1.2) - Kindle.
    I am looking for a good app that can help a college student with reading books that cannot be found on audio book.  I have tried voice over and it works but it's very monotone and it really strings things together. 
    - I'm willing to pay for a good app but I can't seem to sort though the many that are out there. Any suggestions.

    Ah. I'm surprised, but there we go.
    Have a look here ...
    http://jam.hitsquad.com/vocal/about2136.html
    (courtesy of googling 'OSX free multitrack recording software')
    Didn't have time to do more than skim, but 'Ardour' looked promising. Protools is the only one I've used, the full product is one of the industry standards, but the free 'lite' version listed here seems to be limited to 2 in/out as well.
    Referring to your original post, I'd think trying to write or 'script' something would be a nightmare ... synchronisation of streams within something like Applescript would be a major issue, quite apart from anything else.
    G5 Dual 2.7, MacMini, iMac 700; P4/XP Desk & Lap.   Mac OS X (10.4.8)   mLan:01x/i88x; DP 5.1, Cubase SX3, NI Komplete, Melodyne.

  • I just got the iPhone 5 and noticed that the message alerts will only alert once . I have it set up as 3 times and its not working . Please help. I'm running 6.0.2 and I really starting to get ****** off with apple products

    I just got the iPhone 5 and noticed that the message alerts will only alert once . I have it set up as 3 times and its not working . Please help. I'm running 6.0.2 and I really starting to get ****** off with apple products

    Instead of getting annoyed, read the User's Guide and try basic troubleshooting.

  • Query Help for SO Alert

    Dear Experts,
    I have a scenario where our user would like to be reminded of action items pertaining to a specific BP when entering a new SO.
    I have the following query but would like it to alert only once.  What syntax do I need to configure for this query to send an internal alert once within a few minutes of adding?
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], 'Reminder: <<Insert Reminder Here>>.' as "Important Message"
    FROM ORDR T0
    WHERE T0.[CardCode] IN ('ABC01')
    Thanks,
    Richard

    Hi
    You may create an alert by:
    SELECT T0.DocNum, T0.DocDate, T0.CardCode, T0.CardName, 'Reminder: <<Insert Reminder Here>>.' as "Important Message"
    FROM ORDR T0
    WHERE T0.CardCode IN ('ABC01') AND DateDiff(D,T0.DocDate,GetDate())=0
    However, there is no switch to turn it off.
    Thanks,
    Gordon

  • Hello - does anyone now how to place a complain for an over charged invoice over a in-purchase game? Apple is charging 10 times more the purchase we made and I cannot find anyplace in the App store to complain online or via email? Please help if you know

    Hello - does anyone now how to place a complain for an over charged invoice over a in-purchase game? Apple is charging 10 times more the purchase we made and I cannot find anyplace in the App store to complain online or via email? Please help if you know

    Use the Report a Problem link in the iTunes email receipt you received. Also in-app purchases can be made without the password if you bought the app within the last 15min. You should enable the in-app restriction in Settings.

  • De-linking (Valuation class & GL A/c) automatic posting in Invoice booking

    Experts,
    I have a issue regarding link between FI & MM
    From what I understand,
    there is a link between Service & Valuation class
    & also a link between valuation class & GL.
    This link enables automatic FI line item posting while invoice booking.
    My question:
    1. Can we break the linkage between valuation class & GL i.e. we want to stop the automatic posting
    2. What is the effect of above
    3. Would you advise to do this .. ? Why?
    Regards,
    KPS007

    Hi,
    SAP standard process are the best business practises and it should changed only when we have genuine business problem and not for people issue.
    There are several scenarios will occur during MIGO and MIRO. For each scenario system should determine a correct Inventory account, GR/IR clearing account, Price difference account and etc. First you need to prepare an excel sheet with all your possible business scenario, valuation area/valuation grouping code and their respective GL accounts. Once you have listed out all the scenarios and correct GL accounts, you can configure the system as per your requirement. Initial home work is needed to avoid any difference in account posting. Hence try to fix the source of your problem rather than changing the best practise. Account determination is vast and it cannot be explained here but please refer the below link.
    http://help.sap.com/saphelp_46c/helpdata/en/12/1a39516e36d1118b3f0060b03ca329/content.htm
    Regards,
    Senthil

  • Duplicate ItemCode Alert On AR Invoice

    Hi All,
    I am looking for an alert that will find duplicate ItemCodes on a single invoice.
    Once the invoice is posted it must alert a user that the specific invoice contains duplicate ItemCodes.
    Any help will be appreciated.
    Regards,
    Quinn

    Hi Rahul,
    Thanks for the reply.
    I have a SP already but they want me to take it off.
    They want to let the Invoice go through and only be alerted to the event.
    Regards,
    Quinn

  • Consolidated invoice needed for different shipment dated lines in a sales order

    My client's requirement is, they need a consolidated invoice for one order even though the lines are shipped in different dates.
    Suppose order A created with 2 diff line B and C.
    Both the lines are having different line types, sales persons and shipping warehouse.
    Line B shipped earlier and lince C shipped after few days.
    Requirement is to generate single invoice for both the line once all the lines are shipped.
    Could you please help with any solution except Invoice Hold and Fulfillment Set.

    Hi  All ,
    Thank you all for your quick respose . Let me give your more info for a better understanding of my requirement .  Basically here two prices are to be compared . List price which is based on sales org / distribution channel and material . The other is special price matained for sales org , customer and material . 
    In my system I have 2 different pricing reports ( T- code SAP1 )  , one is based on sales org , material - This I can use to find list price . I also have another customer based report and using this I can get the special price
    But user wants to see both these prices side by side in a single report . Is there a way these two reports can be combined ?
    Regards
    Raghav

  • Exporting Data for a single set of books from Oracle Financials

    I have a multiorg set-up with multiple set of books in an Oracle instance. I want to be able to export data for a single set of books into a new Oracle instance.
    Any insight into how this can be done (without going through each of the tables and referential integrity constraints) will be of great help
    thanks
    anoop

    It is a bit unclear what you are sending these POs to the other system for? Is it for matching to invoices there? Is it for receiving into inventory there?
    Are these two entities belong to the same parent but on two different oracle apps databases?
    In essence what do they do with the PO that you are sending to them?
    Why do you think there will be intercompany invoicing?
    Thanks
    Nagamohan

Maybe you are looking for