Alert Salespersons when stock is booked

Hi Support
Can I please get some help writing query for required Alert setup.
I need Alert to trigger relevant assigned Salespersons when stock is booked in. 
Meaning... alert to notify user/s when stock is received into warehouse "01" from PO.  Can be done via Goods Receipt and/or AP invoice process.
I appreciate your help.
regards
Kelly

Ok.
I am going to give you the base query which can be altered based on your information requirements
SELECT DISTINCT T0.DOCNUM, T0.DOCDATE, T1.ITEMCODE, T1.QUANTITY
FROM [DBO\].[OPDN\] INNER JOIN [DBO\].[PDN1\] T1 ON T1.DOCENTRY = T0.DOCENTRY
WHERE T1.WHSCODE = '01' AND T0.DOCDATE = GETDATE()
UNION ALL
SELECT DISTINCT T0.DOCNUM, T0.DOCDATE, T1.ITEMCODE, T1.QUANTITY
FROM [DBO\].[OPCH\] INNER JOIN [DBO\].[PCH1\] T1 ON T1.DOCENTRY = T0.DOCENTRY
WHERE T1.WHSCODE = '01' AND T0.DOCDATE = GETDATE() AND T1.BASETYPE = 22
The above query will display all GRPO's and all AP Invoices which have been added that day.  In the where clause the condition T0.DOCDATE = GETDATE() filters this.
Suda

Similar Messages

  • What to do when your address book disapears. For Blackberry Pearl.

    I went nuts when this happened to me. Not that I didn't have a back-up, you should ALWAYS have a
    back-up of all your info. I knew that all my contact info was still there, because when someone called or
    when I called someone on my address book, all their information still came up on my phone. So I knew it
    was all there, but when I went to the address book itself, there was nothing there, and it simply said there
    were no contacts. I even added a new one, and that was not showing up in the address book either. VERY
    frustrating. So I called My service provider and begged for help. Being a new black berry user, I didn't
    know squat about what to do, and I couldn't find anything online that helped me to fix this problem. So, if
    this happens to you, (which I am told it happens to people a lot), Here's what you do to fix it....
    First you make sure you have a back-up copy of all your backberry info using your blackberry desk top
    program. after that, make sure that you blackberry is disconnected from your computer. Then go to the
    options on your main menu, click the trackball. Then go to the Security Options menu, click the trackball.
    Select General Settings, click the trackball. Now press the balackberry menu key on the left of the
    trackball. Select Wipe handheld, click the trackball. Ok, I know thes sounds a little scarry, but trust me it
    will all be ok. Once it resets everything your pnone wont work and it is going to look like all your info is
    gone, but that's ok. Now go through the setup wizard like you did when you first got your blackberry to set
    it all up. you don't have to add in all your info or setup all your emails, you can re-enter all your info later,
    and the emails will automatically be re-setup when we are all done. Now To get all your stuff back on the
    phone, connect the blackberry up to your computer, and go to your blackberry desk top program. In the
    desk top program, go to back-up and restore and restore your most recent back-up. Now click the
    blackberry menu on the left of the trackball, select register now, click the trackball. Go to the options
    menu, click the trackball. Go to advanced options, click the trackball. look on the next menu for Host
    Routing Table, click the trackball.  Now with your blackberry dial *228 and select option (1), to get your
    phone in service again.   Now go online and go to: (http://www.blackberry.com/go/vzw), make sure you
    have your blackberry.com password and user name and your blackberry pin number. If the user name and
    password you have do not work, than unfortunately you'll have to call your service provider to help you
    with that. For Verizon, the number to call is: 1-800-922-0204. It's best if you do not call them from your
    blackberry. Now what you want to make sure is that you have all your email passwords etc. Now from
    here, you can either have your service provider send to your phone the Service Books, or you can just get
    the info for the website I gave so that you can log onto it and send the Service Books to your blackberry
    on your own. If you have your service provider help you, this is where you'll need your email passwords,
    because before you send the Service Books to your blackberry you'll need to revalidate all your emails
    accounts by clicking on the red symbol on the left, and it will ask for your passwords and take care of all
    the rest. Once you have all your email accounts re-validated, then you can send the Service books to your
    blackberry. You'll see the link on the left upper menu of the page that says Service Books, click on it and
    wahlah.  Now give it about 15 seconds or so. go to your black berry. Turn it off, and back on again.  
    Now turn your blackberry off and on again. When it comes back on follow all the menu promptings etc.,
    and bingo you got your address book back.

    Welcme to the Frums!
    Sometimes when the address books disappear, a filter has gotten turned on. 
    Go to address book>> menu >>> filters >>> and make sure nothing is checked in either box. 
    Nurse-Berry
    Follow NurseBerry08 on Twitter

  • When creating a book how can I get all the photos from an album to show up in the order they were in the album?

    When creating a book in iphoto, how can I get all the photos from the album I want to use to show up in the order that they are in the album?  When I tried to use the option to add my own photos instead of having the program "flow" them, they showed up all mixed up.

    iPhoto puts them in the book in chronological order.  So to get your photos from an album into an iPhoto book in the same order you will need to use the Photos ➙ Batch Change ➙ Date menu option and set them all to the same date with a 1 minute time difference between each. 
    OT

  • My iPhone no longer alerts me when I have texts, even though all my notifications and sounds are on. Can I fix this?

    My phone no longer chimes when I have a new text message. Or, alternatively, it will chime when I unlock it, even if I received the message hours ago, but won't alert me when I actually receive the message for the first time. My software is updated, and all my notification sounds and alerts are on. Often it registers that there's a text message (there will be a red circle above the app), but the notification never pops up. If I do immediately get an alert, it doesn't complete the chime and my phone flashes but immediately shuts off. Is there some way that I can fix this?

    Sorry to know that.. 
    After backing-up your data try a Factory Restore. also check whether the phone Firmware upto date ? You may check using the Nokia Suite .. If not you may update that or if already with the latest Firmware re-install the Firmware and try again ..

  • Regarding the alert Message when i try to close the window

    Hi All,
    I am trying to give the alert message when the user tries to close the window.
    For this i have coded a jsp in which i have written
    <html>
    <head>Test in the Page Ajay</head>
    <body onUnload="alert('Test UnLoad')">
    </body>
    </html>
    and in the portalapp.xml i have given as jspnative.
    then if i try to unload the page the alert message is not executing.
    Plz help me out in this.
    Thanks
    Ajay

    Delete the iPod photo cache, as described here:
    http://support.apple.com/kb/ts1314

  • TS3704 How are you supposed to fix "The feature you are trying to use is on a network resource that is unavailable" alert appears when you remove Apple software in Windows if it doesn't work on Windows 8 or 8.1???

    How are you supposed to fix "The feature you are trying to use is on a network resource that is unavailable" alert appears when you remove Apple software in Windows if it doesn't work on Windows 8 or 8.1???

    See Troubleshooting issues with iTunes for Windows updates. You may have to uninstall what you can, reboot and delete the named folders, then reinstall.
    tt2

  • ITunes 10.6 crashes when i open books

    Hi,
    just downloaded itunes 10.6 and as with ALL others it keeps on crashing, in my case only when i open books.
    I can't sync to my ipad or iphone.
    Any news on a fix or do i have to revert to 10.5 or something
    thanx

    Remove SC Info.sidb file
    Refer to steps here:
    http://support.apple.com/kb/TS2363
    If that doesn't work.  Repair your QuickTime.  START / CONTROL PANEL / PROGRAMS N FEATURES / highlight QUICKTIME and click REPAIR.

  • After upgrading from FM 9 to 11, FM crashes when the Print Book command is used. Suggestions?

    After upgrading from FrameMaker 9 to 11, the program crashes when the Print Book command is selected to print files that were converted from FM 9 to FM11. (Resulting .pdf files are problematic, w/ broken links and non-functioning bookmarks.)  Has anyone encountered this issue, and can you suggest a workaround? Thank you!

    Known bug - already fixed - get the latest FM11 patch

  • InDesign CS3 crashes when synchronizing a book

    InDesign CS3 V5.02 repeatedly crashes (unkown software exception 0xc0000d) when synchronizing a book.
    It does not matter if the book was created with CS3 or CS2.
    If a book with several documents is opened with CS2, resynchronizing works as expected.
    Opening the same book in CS3, it crashes about 5 seconds after invoking the command.
    The problem occurs on two rather different PC's. The office PC is a Pentium D, 3,2GHz, 2GB Ram, new harddisk with a freshly installed Windows XP SP2 including all microsoft updates.
    The other is my home notebook, a 4 year old Dell Latitude D800, Pentium M 1,6GHz, 1GB Ram.

    After some testing I found a workaround.
    If the Table of Contents is disabled in the synchronization options, ID does not longer crash.
    so, the problem is no longer urgent for me.
    Regards
    Gerhard Sachs

  • How do i change cover photo in iPhoto when creating a book. I have tried everything

    how do I change cover photo in iPhoto when creating a book? I have tried everything. Mirage 388

    I have just finished one and changed the cover photo the same way I did on any page. Bring up the page, right click on it and then click on Remove Photo. Then just drag the photo you want into the empty space. You have to have the phot sidebar up on the right side to do this. Hope this helps

  • What is the best font size for text when making a book in iBooks Author? My present font is Baskerville at 20 pt.

    What is the best font size for text when making a book in iBooks Author? My present font is Baskerville at 20 pt.

    For what audience? What reading level? Which Flesch-Kincaid index? What type of content? How much white space? What language(s)?

  • How do i add photos to the photo array when creating a book using iphoto 8.1.2?  the book doesn't accept the albums and foldlers i drag and drop.

    how do i add photos to the photo array when creating a book using iphoto 8.1.2?  the book doesn't accept the albums and foldlers i drag and drop.

    I'd suggest you ask this question in the iPhoto forums:
    iPhoto
    Posting here is unnecessarily limiting the people who'll see your question to those running iMacs.
    Regards.

  • Why when i buy books on my ipad, when i log onto the store it does not show that i have purchased them?

    Why when i buy books on my ipad, when i log onto the store it does not show that i have purchased them?
    how many books and songs were therefore lost when i had to wipe my ipad?
    this is SHOCKING from Apple... this is not in my domain of settings!!!

    In the iBooks application on the Mac, there is a checkbox to sync highlights and notes across devices. 
    I don't see a similar setting in the iBooks app on my iPad.  It may require iBooks on the Mac as a mediator.
    Also:
    Can I highlight text and make notes?
    Yes, iBooks includes built-in Highlight and Note features. Highlight any word or passage of text within a book. You can also create a Note from your highlighted selection. Review your Highlights and Notes by tapping the Table of Contents button and then tapping Bookmarks. Highlights and Notes appear in their own section under Bookmarks. 

  • How do I get my iPad to stop alerting me when I have junk mail?

    How can I get my ipad to not alert me when junk mail comes in and only when actual mail comes in?

    Who is your email account with? Can you go into that account via the web and browse through the settings to set up spam and junk folders so that they are never downloaded? The problem with this of course is that some programmes wrongly identify such emails at times and there will be occasions when genuine emails are not downloaded to your device. It will be a toss up between periodically checking these folders via the web and putting up with unnecessary alerts.
    The other option is to switch off alerts for all emails. Ths is the system I operate.

  • When making a book, one of my photos selected appears only on the flap, how can I get it to be in the book also?

    1.  When making a book using Iphoto, one of my photos selected appears only on the back flap, how can I get it to be in the book also? I added an extra page thinking that would help, didn't! 
    2.  It says that you can photos anytime, can I add a photo that I did not select originally without starting completely over?
    ...any suggesstions for both problems would be appreciated. Thanks

    you can use a photo many time is the same book - simply drag it from the photo strip to the photo frame you want it in - even though you have used it before you can still use it again
    And adding photos is easy - go to the photo (in an album, event or photo view) and drag the photo(s) to the book under keepsakes - it will now be available to use
    LN

Maybe you are looking for