Showing Zero Quantities In Query

In the following Query, I get a list of the Quantities all items ordered and sold within a date range. I am trying to make the query show all quantities Ordered, event if nothing was sold. When I add another AND statement such as: AND T0.[OrderedQty] < '1' it will not show me where nothing was ordered. How do I get NULL values or Items that had no orderes during that same time period of the query?
SELECT T0.[ItemCode], T1.[ItemName], T2.[FirmName], T1.[CardCode], T1.[ItmsGrpCod], T1.[U_U_CMG_PROGRAM], T1.[U_U_CMG_CATEG], T1.[U_CMG_STATUS], T1.[U_CMG_STORES], T1.[U_CMG_COLOR], T1.[MinLevel] AS Min_Inv_Lvl, T1.[MinOrdrQty] AS Min_Ord_Lvl, SUM(T0.[OrderedQty]) AS Ord_Qty, SUM(T0.[PackQty]) AS Pack_Qty, SUM(T0.[Quantity]) AS Qty_Sold FROM DLN1 T0  INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode INNER JOIN OMRC T2 ON T1.FirmCode = T2.FirmCode
WHERE T0.[DocDate] >=[%0] AND T0.[DocDate] <=[%1]
GROUP BY T0.[ItemCode], T1.[ItemName], T2.[FirmName], T1.[CardCode], T1.[ItmsGrpCod], T1.[U_U_CMG_PROGRAM], T1.[U_U_CMG_CATEG], T1.[U_CMG_STATUS], T1.[U_CMG_STORES], T1.[U_CMG_COLOR], T1.[MinLevel], T1.[MinOrdrQty]

Hi,
Try this query.
SELECT T0.ItemCode, T1.ItemName, T2.FirmName, T1.CardCode,
T1.ItmsGrpCod, T1.U_U_CMG_PROGRAM, T1.U_U_CMG_CATEG, T1.U_CMG_STATUS,
T1.U_CMG_STORES, T1.U_CMG_COLOR, T1.MinLevel AS Min_Inv_Lvl,
T1.MinOrdrQty AS Min_Ord_Lvl, SUM(T0.OrderedQty) AS Ord_Qty,
SUM(T0.PackQty) AS Pack_Qty, SUM(T0.Quantity) AS Qty_SoldFROM OITM T1 LEFT JOIN DLN1 T0 ON T0.ItemCode T1.ItemCode
INNER JOIN OMRC T2 ON T1.FirmCode = T2.FirmCode WHERE T0.DocDate >=[%0] AND T0.DocDate <=[%1]
GROUP BY T0.ItemCode, T1.ItemName, T2.FirmName, T1.CardCode,
T1.ItmsGrpCod, T1.U_U_CMG_PROGRAM, T1.U_U_CMG_CATEG, T1.U_CMG_STATUS,
T1.U_CMG_STORES, T1.U_CMG_COLOR, T1.MinLevel, T1.MinOrdrQty
ORDER BY T0.ItemCode, T1.ItemName, T2.FirmName, T1.CardCode,
T1.ItmsGrpCod, T1.U_U_CMG_PROGRAM, T1.U_U_CMG_CATEG, T1.U_CMG_STATUS,
T1.U_CMG_STORES, T1.U_CMG_COLOR, T1.MinLevel, T1.MinOrdrQty
regards,
Vignesh

Similar Messages

  • Keyfigure has value in BEx query, but shows zero/0 in Webi

    Hi community,
    I have the following issue with a Bex query with 2 structures:
    in Bex, the budget column shows figures right. but in Webi, it shows zero for certain profit KPIs (calc. keyfigures, CKFs).
    only for these KPI cells, it is not a general issue with that budget column!
    in the Bex cell editor, I have created cell references for these profit KPI cells, but that should not be relevant.
    As SAP cannot connect to our BO Webi via OSS properly, I would like to address you.
    anyone had a similar situation or solution?
    every hint is appreciated! Many thanks and
    best,
    Phil

    Hi Ingo
    I am also currently meeting such a problem.
    I have Cubic Meter stored in my cube and my BEx query. Also, in my BEx query, I have a unit conversion to convert Cubic Meter to Cubic Feet.
    In WebI, when I pull out both Cubic Meter and Cubic Feet, Cubic meter returns me 0, while cubic feet returns me a figure.
    Below are the settings of the BW & BOBJ system:
    SAP BW SP6
    BOBJ SP2 FP2.3
    Hope to hear from you soon.
    Thanks!

  • Query output in APD shows zero values

    Hi ,
    I am using query output in APD . The query has got some calculated key figures for which the output result of the query in APD shows zero .Is there any way to resolve this  .
    regards,

    Hi,
    You need to store the source key figure value in a separate variable lets say v1 then **** the new variable v1 value to circular right, then remove the gaps, and then again shift V1 right by deleting trailing spaces and then finally copy the value in V1 to source or target key figure.
    Hope this helps.
    - Kiran

  • Usage Report Shows Zero (0) Hits

    All:
    When I view the Excel Usage report for my site collection as described here
    here, it shows zero hits.  Same for my top-level site page.  I've gone into Central Admin and confirmed the Usage and Health Data Collection service is running
    as described
    here and that it is properly configured.  Via PowerShell, I've also confirmed the EnableReceivers property is set to true as described
    here .
    Still no luck.  Nothing but 0 hits reported.   Any other suggestions on how I can get this working?
    Thanks,
    Bill
    Bill Davidson

    User analytics take 24 to generate data so check after 24 hours.
    Also hope you have followed
    http://sharepoint.stackexchange.com/questions/32858/web-analytic-show-0-visitor-since-last-2-weeks
    id you configure Usage Collection from the SharePoint Central Admin.
    Central Administration > Monitoring > Configure usage and health data collection
    Please ensure Enable usage data collection (is checked)
    Events to log:
    Content Import Usage
    Content Export Usage
    Page Requests (This option must be checked)
    Feature Use
    Search Query Usage
    Site Inventory Usage
    Timer Jobs
    Rating Usage
    After you enable Web Analytics , SharePoint automatically does not start making analytical data unless we specify data that needs to be captured and saved on the analytics service application database.
    SharePoint will created a service application database typically named as "WSS_Logging" after you provision Usage Collection Service.
    If this service is already present , then I would suggest to reconfigure usage and logging service once again. It should work.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/30d11d27-6708-4bfe-a7d3-4b0aed522e7d/site-web-analytics-reports-no-more-data?forum=sharepointadminprevious
    Try this hotfix, it fixed mine.
    http://support.microsoft.com/kb/2459125
    If this helped you resolve your issue, please mark it Answered

  • Billing with Zero quantities:

    Hi all,
    I have some problem in billing. I have created few orders with some line item with zero quantities and some are with quanitties in the same order.
    It has allowed me to save the order and also to deliver but not allowing me to bill / invoice, system throws the message " can't be billed order incomplete"......
    I want to some how bill these and want to post for accounting also...
    Thank you
    Sushil Kumar

    Dear Sishil,
    As per the standard you can't  bill the item with zero quantity.
    If you don't enter the quantity system will show that sales order as incompletion system will not allow you to create the delivery also but I don't know how you created delivery in this case.
    If you want to bill that with out entering the quantity of the item then you need to remove the Field KWMENG Order Quantity from incompletion log of the Sales order item.
    After removing the field  KWMENG Order Quantity from incompletion log of the Sales order item you need to create the sales then do the delivery then do the billing now system will accept with zero quatity of item.
    I hope this will help you,
    Regards,
    Murali.

  • Change mode of the excise invoice is showing zero excise values

    H ifriends,
    The change mode of the excise invoice is showing zero excise values.....and the same is reflected in the ARE1
    While creating the excise invoice,its showing BEd/Ed and Shed and after saving,if i check the doc the values are shown aero...
    Thanks
    Sasi

    s

  • Purchasing Cube -- 0PUR_C01.. "Added record" is showing zero in request

    When i try to load the data to this cube, my trasfer record is showing values while Added Record is showing zero values. Whats the problem. Please advise !!

    Hi,
    Check whether do you have defined the industry sector in R/3. This has to be done before filling the setup table. search the forums with note no 353042.
    This is done with the help of Transaction MCB_ which you can find in the OLTP IMG for BW (Transaction SBIW) in your attached R/3 source system.
    Here you can choose your industry sector. 'Standard' and 'Consumer products' are for R/3 standard customers, whereas 'Retail' is intended for customers with R/3 Retail only.
    You can display the characteristics of the process key (R/3 field BWVORG, BW field 0PROCESSKEY) by using Transaction MCB0.
    If you have already set up historical data (for example for testing purposes) by using the setup transactions (Statistical Setup Programs) (for example: Purchasing: Tx OLI3BW, material movements: OLI1BW) into the provided setup tables (for example: MC02M_0SCLSETUP, MC03BF0SETUP), you unfortunately have to delete this data (Tx LBWG). After you have chosen the industry sector by using  MCB_, perform the setup again, so that the system fills a valid transaction key for each data record generated. Then load this data into your connected BW by using 'Full update' or 'Initialization of the delta process'. Check, whether the system updates data into the involved InfoCubes now.
    If all this is not successful, please see Note 315880, and set the application indicator 'BW' to active using Transaction 'BF11'.
    Regards,
    Anil Kumar Sharma .P

  • Number of Page View is showing zero for Site web Analytics Reports

    Hi,
    We have enabled Site Web Analytics reports in our Site Collection but the Number of Page views is showing zero for all the dates. We have checked all the events to capture in Site Collection Audit settings, Reporting feature is also activated but still the
    count shows 0 for all the dates.
    There are other Site Collection that exists under that Web Application but they show the count for Number of Page views in Site.
    Any help would be appreciated.
    Regards,
    Vijay

    hi
    1-first check "Usage and Health Data Collection Proxy" is started, if not started:
    find usage proxy id with following command:
    Get-SPServiceApplicationProxy
    then start service with following command:
    $UsageApp = Get-SPServiceApplicationProxy | Where {$_.ID -eq "[usage proxy ID]"}
    $UsageApp.Provision()
    2-check following link:
    Popularity Trends populating 0 results
    yaşamak bir eylemdir

  • Limit SC showing Zero value in report SC per cost centre in SRM portal

    Hi SRM Gurus,
    On executing SC per cost centre report avaialble in SRM 5.0 Portal I am getting value of limit SC as zero. while in all other follow on documents i.e. PO and Invoice its displaying the value.
    Is it due to the fact the for Limit Items we don't have any GR/confirmation i.e zero quantity? and the value column field has Sigma symbol on it. so maybe it is multiplying quantity with the value here?
    Is this SAP SRM standard for limit items to show zero value in this report ?
    Please let me know. Thanks for the help.
    Regards,
    Varun Dhawan.

    SRM experts please help in this regard. Any insights on LIMIT Shopping carts??

  • How to prevent creation of billing docs for Zero Quantities

    Hello everyone,
    Could someone please help me with this.
    We have some invoices created with 'zero' quantities. We need to stop prining invoices for the invoices with zero quantities. Can we stop creating invoice for zero quantities. if yes , please let me know how. Any help is very much appreciated.
    many thanks
    Edited by: Simsasha on Jan 30, 2009 2:31 AM

    Dear Simsasha,
    Could you please breif whether:
    1. Its Order-related-Billing, OR
    2. Delivery-Related Billing
    If, Its Order-related-Billing, You need to work-around Copy-Control Setting in VTFA; and if,
    Its Delivery Related-Billing, You need to work-around Copy Control settings in VTFL.
    You need to write Code to check Quantity = 0, and attach the same within Field: Data VBRK/VBRP; to check and avoid Invoice creation, if Invoice-item has billed quantity as 0.
    You may work with Program RV60AFZC USEREXIT_FILL_VBRK_VBRP
    Best Regards,
    Amit
    Note: You may take help from the discussion from following thread:
    [Billing with Zero Quantity, not allowed|Re: Billing for zero quantity is being allowed]
    I hope, this would definitely help you, some extent.

  • Excise invoice showing zero values

    Hi all,
              In stock transfer from plant to depots, i have created excise invoice with reference to proforma invoice, but the excise values are not reflecting in excise invoice, i mean to say BED,ECESS ,SCESS are showing zero values....
    regards,
    ram

    Hi lakshmipathi,
                             Its really gud to c u,
                       i have checked the settings as u said,all are perfect,
              onemore thing i wud like to inform u that while creating a sale from plant to customer, excise invoice is coming perfectly with reference to commercial invoice,
               while in stock transfer with reference to proforma excise invoice is not picking values.
    regards,
    ram

  • Ipod classic not allowing access to to music or pod casts - shows zero files in music and pod cast but used space shows 3/4 full it is recognized by itunes sometimes on my pc but unable to view content

    ipod classic shows disk 3/4 full  but when i look in the folders  it shows zero for music and zero for podscasts. i can not access these folders on the ipod or when it does connect to my windows computer thru itunes.  it does not connect 90% of the time now.  i let it check the disk when it was connected to my pc which did not good  -  any other ideas?  other than restore?

    Your iPod filesystem is corrupted, so your music and podcastr is in the Others, this is most likely caused by a slow USB connection, which timeout during sync.
    Try the Hard Reset first
    After charging till full charge, at least 2 hours (preferably 4 hours)
    Toggle the Hold switch, make sure you dont see the red mark when you do the  next step
    Reset the iPod -> Press Menu and Center button simultaneously for about 10 secs or till the Apple Logo comes ON
    Then release the buttons
    Select your preferred language.
    Here is the Apple support Article on the 5Rs
    http://www.apple.com/support/ipod/five_rs/classic/
    Then do the iPod Disk Diagnostic, in this earlier post by tt2, it wont fix your problem, but help you decide if your iPod is dying and causing the timeouts.
    Have a nice day!

  • Weight of delivery showing zero

    Hi Gurus
    The issue we are facing is that  in case of a few deliveries the Total weight of delivery is showing ZERO instead of sum of weight of all items. In fact the gross weight of first line item is also showing zero. I checked material master, but the weight is maintained correcly  there. And also it is coming correctly in SO.
    This generally happens in case of materials managend in batches. I searched forum and only got to know that one possible reason could be copy control . But if that is the problem then it should happen in case of all delvieries whcih is not the case.

    Dear,
       As per your talk, I think there is only one reason ans that is material master. Please recheck material master.
    Regards,
    Sandip

  • GL: FSG: The report shows zero, though the account has posted balance

    Hi,
    In my FSG report in Release 12i (12.0.4) I have assigned an account to a row (in row set), and that account has posted balance. However, on running the report the amount shows zero, and the log file shows the following message,
    "PERF0005: Oracle error detected in get_def_ldgs - ORA-01403: no data found".
    Can anyone please help me with this? I have raised a service request but it has taken too much time already. Thanks
    Best Regards,
    Sohail

    Hi,
    Please see the following documents.
    Note: 876634.1 - R12 FSG: PERF0005: ORACLE Error Detected In GET_DEF_LDGS - ORA-01403: No Data Found
    Note: 829314.1 - R12 All Fsg Reports End in Error PERF0005 Detected In Get_def_ldgs ORA-01403 No Data
    Note: 781339.1 - R12: FSG ENDS WITH SIGNAL 11 AND PERF0005 IN GET_DEF_LDGS DUE TO ORA-01403
    Regards,
    Hussein

  • Vendor code in Purchase order changed after invoice,net price showing zero.

    Dear Experts ,
    In one purchase order , user had done GR & invoice for a line item ( service ),item category "D" , and
    thereafter somehow the system allowed user to change the vendor code. The PO line is now having amounts in
    the sub-service line items , but net price for the line item is showing as zero. Since the PO was made
    directly without any contract/RFQ/PR , there is no reference document or info record shown against the line
    item.
    In the conditions tab of Item details,the condition for basic price is not seen & since there are no amounts
    applicable for the other conditions such as insurance , octroi etc., the NET price shown for the item is
    Zero, which is also getting printed in the PO as zero , which is not acceptable , as we can not send to the
    vendor PO copy having prices for individual services printed correctly but the total gross price showing
    zero.
    Pl advise what can be done so that Net Price is shown correctly & not zero.

    I think the new vendor is having a different pricing schema than the old vendor. Check the pricing schema for the old vendor (in purchasing view in field 'Schema Group. vendor) and compare it to the new vendor. I think they're different.
    If it is then what i think happening is the user already input the price for the condition type in pricing schema A, then the vendor is changed and the new pricing schema is kiciking in thus making the old condition type missing.
    Try to either:
    A. Change to the old vendor back,
    B. Change the pricing schema of the new vendor to be the same with old vendor

Maybe you are looking for

  • Using my new GUI component in an applet :Help!!!

    I am seeking help for the following Define class MyColorChooser as a new component so it can be reused in other applications or applets. We want to use the new GUI component as part of an applet that displays the current Color value. The following is

  • BUG? "ERR-1002 Unable to find item ID..." on branch on upgrading 3.0 to 4.0

    I'm testing the waters prior to upgrading a customer application from APEX 3.0.0.00.20 to 4.0.2.00.07. The application has been exported from the APEX 3.0 environment on a 4.0 instance on a different server. Both databases are 10.2.0.4.0 EE. A on nav

  • HDMI Live Video Input into new MacBook Pro?

    We current use FireWire into an older MacBook Pro to stream live video. Want to go to HD camera that has HDMI output. Can new MacBook Pros take live video input from HDMI?

  • How to deploy MAM 2.5 into MI Server

    Hi all, I'm trying to install MAM 2.5 SR2 into a WebAS 6.40 + MI SP13. I'm following MAM Installation Guide, but I'm stuck at page 8, on the second paragraph, when it says: "Deploy SAP Mobile Asset Management 2.5 on Mobile Infrastructure server 2.5 (

  • Where is the demo version of Logic??

    Hi All, Try as I might I can't find the demo version of Logic Express. Can anyone point me in the right direction? Many thanks. David.