Overview of BP sold total op product by vendor

Hi,
i have a customer who want to see overview of BP customer total of items sold by vendor
So i want to select:
Customer
period selection from - to
vendor
Report needs to show
itemnumber, itemname, total quantity, total amount in euro's
I don't no how to start
Mark

Hi Mark,
Ok, I missed that one, it gets increasingly complicated by adding a document that way. This will have to be my last try on this thread.
I got this to work in SQL but not in B1 for some reason. Maybe someone else can get it working in B1.
select
t1.cardcode, t0.itemcode, t0.dscription,
sum(t0.quantity) as 'Invoices Qty', sum(t0.linetotal) as 'Invoiced Total',
sum(t3.quantity) as 'Credited Qty', sum(t3.linetotal) as 'Credited Total',
case
when    exists (select * from orin t2 inner join rin1 t3 on t2.docentry = t3.docentry
          where t2.cardcode = t1.cardcode and t3.itemcode = t0.itemcode)
then     sum(t0.quantity)-sum(t0.quantity)
else     sum(t0.quantity) end as 'Total Qty',
case
when    exists (select * from orin t2 inner join rin1 t3 on t2.docentry = t3.docentry
          where t2.cardcode = t1.cardcode and t3.itemcode = t0.itemcode)
then    sum(t0.linetotal)-sum(t3.linetotal)
else     sum(t0.linetotal) end as 'Total Balance'
from
inv1 t0 inner join
oinv t1 on t0.docentry = t1.docentry left join
orin t2 on t1.cardcode = t2.cardcode left join
rin1 t3 on t2.docentry = t3.docentry and t3.itemcode = t0.itemcode
where
t1.cardcode = '[%0]' and
t1.docdate >= '[%1]' and t1.docdate <= '[%2]' and
t2.docdate >= '[%1]' and t2.docdate <= '[%2]' and
t0.itemcode in (select t4.itemcode from oitm t4 where t4.cardcode = '[%3]')
group by
t1.cardcode, t0.itemcode, t0.dscription
Hope it help,
Jesper

Similar Messages

  • BT Fibre - Mis Sold - Rip Off Product

    BT Fibre - Mis Sold - Rip Off Product
    We bought into the "Fibre" myth.
    We are a rural location, so anything better than 2 Mbps is a bonus
    PHONED BT sales, guaranteed 19Mbps download, so upgraded.
    They installed, initially we had 29 Mbps, which we new would not last.
    7 Weeks later we dropped to 19 Mbps
    Then dropped to 12 Mbps
    We have had several "engineers" test every thing, line, cabinet etc, etc, etc.
    All tests prove our copper line to the "fibre" cabinet has no faults.
    Engineers have tested from the main "In" socket to eliminate any problems within the property and can only get 12 Mbps now.
    We now have 12 Mbps, but that is NOT the 19 Mbps we were promised on the phone by the BT sales person.
    "Wholesale" have now informed us thats the best we can expect .......
    Some points to consider:
    1/ They now say its "up to 19 Mbps", what the heck does that mean?? (Its meant to be a 40 Mbps line) but due to distance, etc, etc, we can only get 12 Mbps now. (Even though we were getting 19 Mbps)
    2/ 12 Mbps is not even close to the "Up to" 19 Mbps download
    3/ "Up to" is the best excuse in the world, if I buy a car capable of 150 mph, and it does 80 mph, I do not buy ....
    4/ The fact other ISP's quote "up to" is not a valid excuse for misselling
    5/ Trying to find a valid number to explain/complain to is impossible
    So bottom line is, we paid to upgrade, do not have the service guaranteed, cannot complain ........
    Great ........ welcome to BT service
    Beware

    Not the ip address, I meant the IP profile that you can find out by running the speedtest at www.speedtest.btwholesale.com and choosing "Further Diagnostics"
    If you found this post helpful, please click on the star on the left
    If not, I'll try again

  • Post Moved BT-Fibre-Mis-Sold-Rip-Off-Product

    Moved to Infinity Board http://community.bt.com/t5/BT-Infinity/BT-Fibre-Mis-Sold-Rip-Off-Product/td-p/778516
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

    Not the ip address, I meant the IP profile that you can find out by running the speedtest at www.speedtest.btwholesale.com and choosing "Further Diagnostics"
    If you found this post helpful, please click on the star on the left
    If not, I'll try again

  • Has Adobe sold me a product which I cannot use for my purpose?

    Hi! I bought my copy of Adobe Acrobat XI a couple of months ago mainly to work with FormsCentral and I was very suprised to hear that FormsCentral was going to shut down. Has Adobe sold me a product which I cannot use and how will I be compensated for this? /M

    Many educational CDs have not been upgraded due to lack of funds in the educational market to pay for the such updates.
    This situation is due primarily to the fact that one of the major political parties in this country favors tax cuts to the rich while cutting federal educational support funding (or eliminating the federal Department of Education altogether).
    However, you can restore Rosetta and run your educational CD if you install Snow Leopard Server ($20) into Parallels (up to $79) for use in Lion/Mt. Lion/Mavericks:
                                  [click on image to enlarge]
    More information here:
    http://forums.macrumors.com/showthread.php?t=1365439

  • Help with this error message: System extenstion cannot be used:The system extension "/System/Library/Extensions/AppleACPIPlatform.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.

    I have this error message:
    System extension cannot be used
    The system extension “/System/Library/Extensions/AppleACPIPlatform.kext” was installed improperly and cannot be used. Please try reinstalling it, or contact the product’s vendor for an update.
    Please help. Is there a update or how do I reinstall?
    Thanks,
    John

    I submitted the above question, later finding that it has been answered by Buller already.  No one need reply as Buller's answer seems to solve the problem for others, and I'll try that.
    Jim

  • Total Purchasing dollars per Vendor

    I would like to get a query where only for the Vendors which have "ERS" -Evaluated Receipt Settlement type slected , I want to get the total dollars purchased from that vendor.
    Which table gives the total Purchasing dollars per Vendor?

    Here is a quick approach using Excel:
    First extract vendors marked for ERS by using SE16 - table lookup for table LFM1. Add field XERSY (flagged for ERS) to the selection fields and use the AVL list as output option. Once you have the list, download it into Excel.
    Now run transaction MC$4, which will access information structure S012 (Purchasing Information System) and run the report by selecting a range of periods. There are a bunch of key figures available, from the original PO $ to invoiced $. Once you have selected the key figure/key figures you need, download the report into Excel.
    Now use the vblookup function in Excel, using the downloaded ERS vendors as reference to find the desired key figures from the second downloaded table.

  • Returning the material from shop/production to vendor

    Dera friends,
    Material rejection from shop/production to vendor directly ,is there any movement type.
    or through--MIGO-Return delivery --262  ;
    and then 122 to vendor.
    Please suggest,
    Canand

    dear,
    u have to do he same thing as you have decided but for the sake of bifurcation (tracking)u have o make new movment types say 962 for 262 and 922 for 122
    thats all 
    regards,
    snb

  • Dropping first product from vendor punch-out catalog

    Hi,
    We are having classic scenario implemented with GOA on SRM server 5.5 and support pack 9 with CCM2.0.
    Currently we are facing an issue for one vendor punch-out catalog. When we are choosing multiple products from vendor catalog,it is dropping first product and bringing remaining products in the shopping cart. We have checked OCI mapping , it looks fine . I have also checked all configuration for catalog call structure. Can anyone answer what could probable reason for this issue?
    Thanks in advance.
    Regards,
    Umesh

    Hi,
    This issue resolved after vendor inbound OCI format.
    Regards,
    Umesh

  • What does this mean?  What should I do? The system extension "//System/Library/Extensions/AppleUSBEthernetHost.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.

    What does this mean?  What should I do?
    The system extension “//System/Library/Extensions/AppleUSBEthernetHost.kext” was installed improperly and cannot be used. Please try reinstalling it, or contact the product’s vendor for an update.

    You don't even have to type more than 8 letters:

  • What does this mean? ... System extension cannot be used ... The system extension "/System/Library/Extensions/IOFireWireWDHID.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.

    I get this message often when updating things. I have told Small Dog Computer where I buy my stuff, and they didn't have an answer. Thanks in advance.
    What does this mean? ... System extension cannot be used ... The system extension "/System/Library/Extensions/IOFireWireWDHID.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.

    Interesting ... thank you! Actually I had that external drive, Western Digital, a while back on my second last? or third last? laptop ... the external drive died with a slew of pictures I had carefully uploaded to it  :-(
    I won't worry about it anymore  :-)
    sorry you got only 5 points, can't figure how to give you 10 points.

  • I get the error message:System extension cannot be used The system extension "/System/Library/Extensions/AppleUSBthernetHost.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.

    I get the error message after updating itunes:
    System extension cannot be used
    The system extension “/System/Library/Extensions/AppleUSBthernetHost.kext” was installed improperly and cannot be used. Please try reinstalling it, or contact the product’s vendor for an update.
    What or how do I fix this?

    "I get the error message after updating itunes:
    System extension cannot be used
    The system extension “/System/Library/Extensions/AppleUSBthernetHost.kext” was installed improperly and cannot be used. Please try reinstalling it, or contact the product’s vendor for an update.
    What or how do I fix this?"
    I have a MacBook Pro running Mas OS X Version  10.7.5
    Is this a problem I need to fix? Is there a fix or update?

  • Message displayed: System extension cannot be used  The system extension "//System/Library/Extensions/AppleUSBEthernetHost.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.

    Received following message during installation of an iTunes update today (9/16/14):  System extension cannot be used. The system extension “//System/Library/Extensions/AppleUSBEthernetHost.kext” was installed improperly and cannot be used. Please try reinstalling it, or contact the product’s vendor for an update.  What is to be done about it?

    Thanks for the reply.  I'm not experienced in the inner workings of the iMac system and its programs, so please follow my train of thought as I try to find and understand your reply.
    You wrote that I should check out "Please see - AppleUSBEthernetHost.kext error on installing iTunes update" and I did so.
    There I found your reply of 9/1014 7:06 PM to j'ski stating: "There is a larger thread here which you may want to follow - system extension cannot be used AppleUSBEthernetHost.kext ."
    And an earlier Post by Greg Earle of 9/10/14 5:57 PM stating: " You would have been better off doing open /System/Library/Extensions and then finding the AppleUSBEthernetHost.kext kernel extension icon in the Finder window that came up and moving it to the Trash."
    And a subsequent Post on 9/15/14 at 2:59 PM by Rob Maurer stating: "This method worked perfectly for me.  I am on a Mac Pro running Mountain Lion. Dragged the kext file to trash (I use EasyFind. Found the file, Revealed in Finder, dragged to Trash, entered admin password when requested). Downloaded iTunes 11.4 from the website. Installed from that download. Checked for that kext file in EasyFind again and found it had a creation date of 7/29/14 (the trashed one had a creation date from 2009). No more error messages.  ITunes opens fine.  Everything good. Will not update on my MacBook Pro until they fix this issue.
    All of which leave me wondering - what is your answer/recommendation?  Do I drag the kext file to trash, download iTunes 11.4 from the website and install it from that download, check for that kext file again to see if it has a later date than the initial one?  And, if so, seed if iTunes opens okay or not?  And if so, do not update iTunes again until Apple fixes whatever is wrong?

  • The system extension "/Library/Frameworks/PrivateTunnel.framework/Versions/Current/Extensions/tap.ke xt" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.

    My MacBookPro freezes and i have to force shut it down and restart.
    It then gives me these errors...
    The system extension “/Library/Frameworks/PrivateTunnel.framework/Versions/Current/Extensions/tun.ke xt” was installed improperly and cannot be used. Please try reinstalling it, or contact the product’s vendor for an update.
    The system extension “/Library/Frameworks/PrivateTunnel.framework/Versions/Current/Extensions/tap.ke xt” was installed improperly and cannot be used. Please try reinstalling it, or contact the product’s vendor for an update.
    What does this mean? How can I fix it so it doesn't freeze again.
    (All software up to date)

    hello,
    I have the same problem. does anyone have any ideas on what's going on and or how to fix it.
    Thanks!!
    Luis

  • The system extension "/System/Library/Extensions/CDSDAudioCaptureSupport.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.

    Hopefully, i can get some help in resloving the issue below. i updated my harddrive at Techserve and have been getting this message evertime i try to install a new software. Help...
    The system extension “/System/Library/Extensions/CDSDAudioCaptureSupport.kext” was installed improperly and cannot be used. Please try reinstalling it, or contact the product’s vendor for an update.

    That is a third-party extension, so I would reinstall that software unless you wish to try repairing the permissions on the extension yourself using the Terminal.

  • When installing iPhoto update, I got this pop-up -The system extension "/System/Library/Extensions/IOFireWireWDHID.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.  What does it

    When installing iPhoto 9.2.1 software update, I got this pop up.
    "The system extension “/System/Library/Extensions/IOFireWireWDHID.kext” was installed improperly and cannot be used. Please try reinstalling it, or contact the product’s vendor for an update."
    Is this a minor matter that can be ignored?  Any suggestions on what I should do?

    The faster (and way more recommended) way to do this is to run a permissions repair from disk utility.
    Open Applications -> Utilities -> Disk Utility -> Click on Macintosh HD -> then in the right pane there is a "Repair Disk Permissions" button click on this. It should repair all permissions to their proper settings.
    Another option is to manually repair them on this kext only. This involves opening Terminal and running the following commands.
    sudo chown -R 0:0 /System/Library/Extensions/IOFireWireWDHID.kext
    sudo chmod -R 755 /System/Library/Extensions/IOFireWireWDHID.kext
    Otherwise if you don't have any firewire devices it doesn't really matter.

Maybe you are looking for

  • External drive connected to FW800 ExpressCard - bootable?

    I have a 2.0 GHz Core [1] Duo MacBook Pro with no built-in Firewire 800, and wish to use an external boot drive at faster-than-FW400 speeds. Trying eSATA seems to be an endless nightmare right now, but what about FW800? If I connected a FireWire 800

  • DVD remote controls work differently on a Mac?

    I created an SD DVD in DVD Studio Pro 4, and when I tested it on a standard TV DVD player, the remote controls work just as they should. But, when I play it on a Mac computer using a remote, it doesn't work the same. For example, if I have a video tr

  • 2 user accounts using 1 iCloud drive account, different folders and files for each user.

    I have two user accounts on my Mac. One for work and one for personal use. They both share my iCloud and iCloud drive account. My issue is that when I update the files in my work account the changes do not take place when I log into my personal accou

  • Internal - External Number Range in OM

    Hi Expert, Could you help me with node of configuring number range in OM. What is Internal number range - when is it used? What is external number range - when is it used? Thanks in Advance for your reply

  • IMessage error on send

    Both me and my girlfriend has problems with iMessage. When at´home iMessage works perfectly when we are on the wifi, but when we go out and is not connected to our wifi it says it cant deliver the messages. When checking the settings "Send as SMS" is