Query Design - Counting orders with specific quantities

A user has requested a query that will show the number of orders each month for a specific product by order quantity.  So, if the product is ABC, they want to see that in November there were four orders for ABC with a quantity of 1, ten orders with a quantity of 2, etc.
We have a cube that contains the the order number, so I can get down to that level of detail, but will do not need to display the order number on the report.  Since the quantity (0ACT_DL_QTY) is a key figure, I have no idea how to group a report by a key figure.  Can I possibly use a formula variable to acheive this?
Thanks,
Doug

Hi Doug,
You need to add a charachteristic to cube like ZORD_QTY - Order Quantity
Store the order quantity keyfigure value in this.
Use this characteristic in the Query.
Good luck,
vijay

Similar Messages

  • How to delete planned orders with partial quantities -reg.

    Dear Friends,
    the issue is
    we are not able to delete the old planned orders in MD16 for which partial quantities are existing.
    we require to delete these planned orders which are partially serviced to avoid creation of schedule lines  for excess quantities.
    Is there any way to delete the planned orders for which partial quantities are existing ?
    is there need to change any strategy to make MRP not to consider these planned orders with partial quantities for MRP run ?
    thanks
    Madhu Kiran.

    Hi Madhu,
    Are you getting any error message from MD16? if yes then please send us the messsage number with class. if you do not want that MRP to consider the planned orders then change the startegy 11 for these parts with mixed MRP indicator 1.
    try this deletion from MD12 also..planned order change mode. Let us know the fresh update.
    Regards
    TAJUDDIN

  • Query Designer not working with Aggregation Levels on BW 7.30

    Hi,
    Every time I try to create a query on top of an Aggregation Level that I created with the new ABAP based RSPLAN transaction.
    If somebody can help me out I'd appreciate it.
    By the way, we don't have the Java stack, but we are currently using BO4's JVM as we're on ramp up.
    This is the error that I get when trying to create the query:
    QD Revision 667
    ERROR ID: E-ONGUIUNHANDLEDEXCEPTION
    And this is the error log:
    1:42:13 p.m..319: Info: Query Designer Start. Revision: 667
    QDbCommandBase::Execute  - Standard View
    QDbCommandBase::Execute  - Table View
    QDbCommandBase::Execute  - Rows/Columns
    QDbCommandBase::Execute  - Cells
    QDbCommandBase::Execute  - Conditions
    QDbCommandBase::Execute  - Exceptions
    QDbCommandBase::Execute  - InfoProvider
    QDbCommandBase::Execute  - Filter
    QDbCommandBase::Execute  - Documents
    QDbCommandBase::Execute  - Where-Used List
    QDbCommandBase::Execute  - Properties
    QDbCommandBase::Execute  - Properties
    QDbCommandBase::Execute  - Messages
    QDbCommandManager::ItemClickedHandler - Bar clicked: NewQuery
    QDbCommandBase::Execute  - New...
    QDbCommandBase::Execute  - Table View
    QDbCommandBase::Execute  - Rows/Columns
    QDbCommandBase::Execute  - Cells
    QDbCommandBase::Execute  - Conditions
    QDbCommandBase::Execute  - Exceptions
    QDbCommandBase::Execute  - InfoProvider
    QDbCommandBase::Execute  - Filter
    QDbCommandBase::Execute  - Documents
    QDbCommandBase::Execute  - Where-Used List
    QDbCommandBase::Execute  - Messages
    QDbCommandBase::Execute  - Table View
    QDbCommandBase::Execute  - Cells
    QDbCommandBase::Execute  - Conditions
    QDbCommandBase::Execute  - Exceptions
    QDbCommandBase::Execute  - Rows/Columns
    QDbCommandBase::Execute  - Filter
    QDbCommandBase::Execute  - InfoProvider
    QDbCommandBase::Execute  - Properties
    -EXCEPTION-START- 1:42:52 p.m..416: TRACE EXCEPTION  ---
    Exception Name: TargetInvocationException
    Exception Message: Exception has been thrown by the target of an invocation.
    Exception    at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
       at com.sap.bi.et.QueryDesigner.QDpPropertyBase.PropertyGet(Object iPropertySource, String iPropertyName)
       at com.sap.bi.et.QueryDesigner.QDpPropertyBase.ValueGetDefault(Object iPropertySource)
       at com.sap.bi.et.QueryDesigner.QDpPropertyBase.pValueDefault()
       at com.sap.bi.et.QueryDesigner.QDpPropertyBase.ValueDefault()
       at com.sap.bi.et.QueryDesigner.QDpPropertyBase.ValueResolved()
       at com.sap.bi.et.QueryDesigner.QDpPropertyMulti.SetFirstProperty(QDpPropertyBase iProperty)
       at com.sap.bi.et.QueryDesigner.QDpPropertyMulti.Add(QDpPropertyBase iProperty)
       at com.sap.bi.et.QueryDesigner.QDuPropPageQuery.ToDialog()
       at com.sap.bi.et.QueryDesigner.QDuPropPageBase.ToDialogCore()
       at com.sap.bi.et.QueryDesigner.QDuPropPageBase.set_CommandContext(QDbCommandContext Value)
       at com.sap.bi.et.QueryDesigner.QDuPropPages.EnablePage()
       at com.sap.bi.et.QueryDesigner.QDuPropPages.ContextChangedHandler(Object iSender, QDbCommandContext iCommandContext)
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.ContextChangedEventHandler.Invoke(Object iSender, QDbCommandContext iCommandContext)
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.OnContextChanged(QDbCommandContext iCommandContext)
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.CalculateContext(QDcView iViews, QDeAreaType iAreaType)
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.CalculateContext(QDbElement iElement)
       at com.sap.bi.et.QueryDesigner.QDbCommandPropertiesQuery.ExecuteCommand()
       at com.sap.bi.et.QueryDesigner.QDbCommandBase.Execute()
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.CommandExecute(QDbCommandBase iCommand)
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.InitialCommandExecute(QDbCommandBase iCommand)
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.DoExecuteCommandInternal()
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.DoExecuteCommand(QDbCommandBase iCommand)
       at com.sap.bi.et.QueryDesigner.QDbCommandManager.ItemClickedHandler(Object sender, BarItemClickedEventArgs args)
       at com.sap.bi.et.QueryDesigner.QDdEventDispatcher.MenuItemClickedHandler(Object iSender, BarItemClickedEventArgs iE)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarManager.OnItemClicked(BarItemClickedEventArgs args)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.OnItemClicked(EventArgs args)
       at com.sap.bi.et.QueryDesigner.QDiBarItem.OnItemClicked(EventArgs args)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.PerformClick()
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarRenderer.OnMouseUp(MouseEventArgs e)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.OnMouseUp(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Full Stack:   at com.sap.bi.et.common.appl.Log.Debug.WriteTraceToFile(Level lLevel, String lString, Exception ex)
       at com.sap.bi.et.common.appl.Log.Trace.Exception(Exception ex, String iAdditionalInformation)
       at com.sap.bi.et.QueryDesigner.QDbApplicationData.OnGuiUnhandledException(Object iSender, ThreadExceptionEventArgs iEventArgs)
       at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
       at System.Windows.Forms.Control.WndProcException(Exception e)
       at System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at com.sap.bi.et.QueryDesigner.QDbApplicationData.Run(Boolean iAsApplication)
       at com.sap.bi.et.QueryDesigner.QDbQueryDesigner.Run(Boolean iAsApplication)
       at com.sap.bi.et.QueryDesigner.QDStarter.QDStartup.Main()
    -EXCEPTION-END----
    -CALLING-FROM- 1:42:52 p.m..416: TRACE EXCEPTION  ---
       at com.sap.bi.et.common.appl.Log.Debug.WriteTraceToFile(Level lLevel, String lString, Exception ex)
       at com.sap.bi.et.common.appl.Log.Trace.Exception(Exception ex, String iAdditionalInformation)
       at com.sap.bi.et.QueryDesigner.QDbApplicationData.OnGuiUnhandledException(Object iSender, ThreadExceptionEventArgs iEventArgs)
       at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
       at System.Windows.Forms.Control.WndProcException(Exception e)
       at System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at com.sap.bi.et.QueryDesigner.QDbApplicationData.Run(Boolean iAsApplication)
       at com.sap.bi.et.QueryDesigner.QDbQueryDesigner.Run(Boolean iAsApplication)
       at com.sap.bi.et.QueryDesigner.QDStarter.QDStartup.Main()

    Hi,
    it seems that you are already using the most recent query designer version. Is your SAPGUI also the most recent version? If yes, open a OSS ticket. If not reinstall the SAPGUI and the BEx tools. I am also working with this query desinger version and I don't have this kind of problem.
    Regards,
    Gregor

  • Query Designer, Execute fails with missing iView (Portal Runtime Error)

    Hi,
    I have followed all steps to integrate Sap NetWeaver 2004s BI into EP. Checks done so far indicate that all is well between the EP and BI.  From within the EP, I can execute the Bex Web Analyser iView and from there I can execute a query on the BI backend.  From the BI backend, executing the function module RSWR_RFC_SERVICE_TEST returns the 'BI test service' success message.  SSO is working fine as no user/passwords were prompted for. From the trace file, I can see no errors appear but I do see authentication success messages.  So far, so good
    But, when I execute a query from within the Query Designer, it calls the browser and then errors with the following error:
    <b><i>Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    iView not found: pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex.
    Exception id: 10:06_03/03/06_0012_26285450
    See the details for the exception ID in the log file</i></b>
    Looking at the trace file, all it tells me is the same, that this iView is not found.
    If I logon to the portal and have a look at the iViews within the 'platform-add-ons/bi' folder, I can see the following 4 iViews:
    BEx Broadcaster (com.sap.ip.bi.bexbroadcaster)
    BEx Portfolio (com.sap.ip.bi.bexportfolio)
    BEx Web Analyser (com.sap.ip.bi.bexwebanalyzer)
    My Portfolio (com.sap.ip.bi.myportfolio)
    I cannot find the missing iView (com.sap.ip.bi.bex).
    Any ideas/suggestions would be appreciated.
    Thanks in advance.

    Hi Ashish,
    Thanks for the suggestions.  Here is what happened:
    1. I have run the deploy and change template again (BIPostInstall).  Step 10 failed but I am not too concerned as it does appear that SSO is working both directions.  Also, step 13 failed which is the 'Configure Repository Manager'.  The error I got here was USER_AUTH_FAILED: User account for logonid "" not found.  I am not sure where it is getting the blank userid from. 
    2. The 'com.sap.ip.bi.business_explorer_showcase' role suggestion looked very promising.   I found some doco on it and it does mention this role and when assigned, then you see the Business Explorer tab.  I assigned it to all users and to all groups.  When I went back into the portal, sure enough, the Business Explorer tab was visible.  From within there, I could run query which all worked fine.
    BUT, when executing a query from within the BEx Query Designer, I still got the same error:
    <i><b>Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    iView not found: pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex.
    Exception id: 11:25_05/03/06_0003_26285450
    See the details for the exception ID in the log file</b></i>
    Do you know if this is an actual iView that should exist in the portal content ?  If you have this working, can you see this iView in the portal?
    3. I had a look at this note (872043) but I could not get the sap download manager to work to get the zip files attached to the note download.  If you have it still, could you email it to me ([email protected]) and I will try that. Did you apply the zip file?
    I can't find any further trace information on why this missing iView error is happening.  I've amended the severity level on the areas which a SAP note detailed but the only information I get is that a missing iView was called.
    Function module RSWR_RFC_SERVICE_TEST still works fine and I can execute a query from the Web BEx Analyser iView.
    I just can't execute a query from the BEx query designer due to the missing iView.
    I don't know whether it is a communication problem even though SSO both directions seem to work OR whether I do have some content missing from my portal. 
    Regards

  • Query designer:hierarchy order

    Hi Experts,
    In BW3.5 using query designer I have to add new varible on the selection screen of report to select WBS hierarchy,the standard hierarchy which we have now is not in sorted order....Users wants this hierarchy to be displayed as sorted by numbers ie in Numerical order.
    Can anyone tell me how can I create it ..aslo I saw some varibales have assigned 'Z' hierarchies how they are created and from where they are added to query designer.....your inputs will be very helpfull...
    Thank you!

    hi,
    Check this link..
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6736e07211d2acb80000e829fbfe/frameset.htm
    Hierarchies are created for a particular object in Admin Workbench in RSA1.
    Select the characteristic for which you want to create a hierarchy and choose Create Hierarchy from the context menu. The Create Hierarchy dialog box appears. The InfoObject name appears by default. 
    Enter a hierarchy name and description (short, medium, long). Other fields may be displayed depending on which hierarchy properties were selected for the hierarchy basic characteristic.
    In query for an object you can create a variable and assign hierarchy(if exists for that object) as per your requirement.
    Regards
    Lavanya

  • How to get the query design element meaning with the technical name ?

    In BI 7.0 query designer, we got error msg in Transport Connection like:
    Object 41PPHH3DICYQ56L2XJGXDRSMT is already being
    edited by user_id
    Choose 'Display object' or 'Cancel'.
    How to check what design element is for 41PPHH3DICYQ56L2XJGXDRSMT?  And what could cause the above error?
    We will give you reward points!

    You can collect the query and its elements in the transport connection. The under the technical name you will find this and the element.
    Hope this helps.
    Kumar

  • Problem in Sales Order with specific condition type.

    Hello Experts,
    I'm facing a problem in sales order creation for a specific condition type.
    the actual scenario is as below,
    We have created a new condition type for special discount.This condtion type is applicable only for specific sales channels.Also the discount percentage has to fetched from a custom table.
    To achieve this I've written a user exit "RV64A999"
    In the FM, i've calculated the subtotal and fetched the discount percentage and calculated the discount amount. After implementing this, the SO were been created properly. for all the line items the discount amount was getting calculated properly.
    But then I added a condition at the top of code in exit that the calculation for the new condition type should happen only for selected sales channels.
    But after adding this condition in code, i'm facing problem. Now when I create/ change any SO, the discount amounts are getting calculated incorrectly. I'm getting discount amount even if the line item subtotal amount is zero (0).
    Any help or pointers reagrding this issue will be very helpful and highly appreciated.

    Hi ..
    Check your config. again or debug the routine code with your ABAPer and find the problem area.
    -Maharshi

  • How to fetch service order with partucular system status and user status

    Hello All,
    How to fetch service orders with specific system status and user status.
    thanks

    I want tables or views from where I can fetch service orders. I have to design ALV report based on this.
    I want to fetch released service orders with status INIT and RENT.
    Here, SYSTEM Status = Released and
             USER Status     = INIT
                                        RENT
    So is there any function module available for the same.....

  • About variables in query designer

    what is the difference between replacement path and cmod in query designer?
    illustrate with an example?
    Regards,
    Bhavya K

    Hi,
    Replacement path:
    When you create a variable ,if you want the variable to be replaced with the value from an info object/another variable /Query/Hierarchy  then we select Replacement path
    CMOD:
    If the values for the variable are to be collected based on the ABAP logic written for the variable in CMOD then we go for CMOD selection.
    Refer the links for examples:
    http://www.sapks.com/2010/04/replacement-path-in-variable-reporting.html
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/78a03c1178ad2ce10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/03/6ba03cc24efd1de10000000a114084/content.htm
    Refer to this link for scenarios on Cmod from Mr.Surendar reddy
    http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    @ Sri
    Edited by: Sri kamesh on Mar 2, 2012 7:30 PM

  • Giving Error while opening BEx Query Designer.

    Hi all,
                   A user is trying to open BEx Query Designer 7.0 and she is getting this error
    " SAP BEx Query Designer standalone has encountered a problem and needs to close. We are sorry for the inconvenience.
    If you were middle of something, the information you are working on might be lost. "
    She is not having issues while opening BEx Analyzer. She is having Office 2010. This doesn't seem to be compatibility issue with the Office. This BEx was not installed on her machine 2 weeks back and it was working fine until now. 
    As a first re-solution i told her to get it re-installed but still she is getting the same issue.
    Thanx.

    Hello,
    There is no relation between Office VS Query Designer. Only with BEx Analyzer and MS Excel.
    My suggestion is.
    If you don't have version 7.20 of SAPGUI and Business Explorer, please download the installer.
    After that, download the latest patch available and install:
    http://service.sap.com/swdc
    > Support Packages and Patches
    > Browse our Download Catalog
      > SAP Frontend Components
    > SAP GUI FOR WINDOWS
    > SAP GUI FOR WINDOWS 7.20 CORE
    > Win32
    _ > * gui720_5-10007878.exe
       |  > BI ADDON FOR SAP GUI
       |  > BI 7.0 ADDON FOR SAP GUI 7.20
       |_ > * bi720sp03p_301-20006596.exe
       |
       |  > BI ADDON FOR SAP GUI
       |  > BW 3.5 ADDON FOR SAP GUI 7.20
       |  > Win32
       |_ > bw350gui720_5-20006857.exe
    If persist, let me know.
    Cheers
    Edward John

  • BEx Query Designer Error

    Hi All,
    I have a problem where I have just updated to SP 18 and now the BEx Query Designer comes up with a problem, I can open the Query Desinger but when I go to open a query from my history the Query Designer shuts down immediatly.
    Has anybody got any Ideas?
    The SAP Gui and Business Explorer is 710.
    Thanks for your help
    Jay

    Hi Pra,
    I do not get an error message the Query Designer just shuts down.
    Are there any log files I can look into to check for error messages?
    Thanks
    Jay

  • Incorrect texts in SAP Query Designer

    Hello,
    I have problems with incorrect text in SAP Query designer, I work with SAP codepage 1404 and I see all queries correct, but when I want to edit some query with some special character for czech language its problem. Query designer can=t use czech diacritic.
    Can you give some advice.
    Thanks
    :Petr

    Hello !
    Thks for your quick reply,
    I'm from France sorry for my bed english but i hope u're understanding me, I'm new consultant in BW and like u know woman are not very comfartable with IT so i'm going to ask u 2 others questions about hierarchy and saving query in roles if u don't mind
    1) I want to change some hierarchy node position in production system, do i change directly in rsh1 by adding a node to another level ? or i must to change in a file source or ECC system ? if i change just on rsh1, i will lost all i have changed when Info package will be executed (in daily process chain)...? that's right?
    2) I have a query already published in rôle, but i have to move it to another one, how can i do that in query designer please?
    PS : i can't send you direct message, is it possible to follow me ?
    Thks in advance have a nice day !

  • How to count a characteristic (Query Design)?

    What is the best way to count a characteristic in a query?  To be more specific, I would like to count the number of orders (characteristic 0COORDER).
    I have read the whitepapers:
    -HowTo Count the occurrences of a characteristic relative to one or more other characteristics
    -HowTo Calculate with Attributes
    I would like to build a query that looks like the following:
    Order Type      # Orders
    A                      3
    B                      5
    C                      4
    In my InfoCube,
    OrderID OrderLineID MaterialID Quantity Price ZCount
    1                             1
    1                             2
    2                             3
    3                             4
    3                             5
    3                             6
    I added a counter to my infoCube which counts the number of line items per order (from HowTo count occurences of characteristic whitepaper).  <b>However, now I need to count the number of orders.</b>
    One approach I tried was to create a dummy calculated keyfigure, which i set to a constant of 1.  I then created another calculated keyfigure and used Count ( dummyKeyFigure).  I could have also achieved the same result by using SUMGT (dummyKeyFIgure).  However, this only works if you have orderID in your query row:
    OrderID      dummyKeyFigure (hidden)         
    1                        1
    2                        1
    3                        1
    Result:                3  (SUMGT of dummyKeyFigure)
    I also read a thread that discussed another alternative on how to use a replacement path variable to count a characteristic (using the key)... however the procedure wasn't clear.  When I tried to create a variable on orderID using a replacement path, it asked for either a variable or query to use... and I got "stuck" from there.  Can you use a replacement variable to count the number or orders? 
    What are the different alternatives (and procedures) for counting the number of orders?
    Thanks,
    -B
    Message was edited by:
            Brendon Lipchen
    Message was edited by:
            Brendon Lipchen

    Hey Olivier.
    I do have Key Figures in my cube.  However, I only want to count the number of Orders in my InfoCube.
    For your solution, you say to create a CKF.  In order to create a CKF, you need a KF to put in your CKF calculation (note you omitted this step from your solution).  There is no KF in the infocube to use for the Order count (we are creating "this" CKF to get the Order Count).  If there is no KF you can use in your InfoCube to get the Order Counter, then you need to create a replacement path variable to use in your CKF calculation.  After you have created a replacement path variable for OrderID, you can place this variable in your CKF calculation (instead of using a KF).  Make sense?

  • Creating Query to show items from open sales orders with a/p invoice

    Hi experts,
    I am trying to create a query that will show what items/quantities are still in open sales orders that can now be filled by an incoming shipment of goods, processed through the a/p invoice.
    This needs to be done using subqueries, which I have no experience with.  I am trying to do this using the ORDR and RDR1 tables to show the open items from the sales orders and the OPOR and POR1 tables to show items just received in to inventory.  I would like the query to show exactly the open item's, their quantities, the posting date from the sales order and the customer name that can now be filled from the new shipment through the a/p invoice.
    I appreciate the assistance,
    Hayden (on behalf of Todd)

    Hello,
    try this
    SELECT T0.[DocDate], T1.[ItemCode], T1.[Dscription],( T1.[Quantity] - T1.[DelivrdQty]) As "Open Qty" FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[DocDueDate]  <= [%0]And ( T1.[Quantity] - T1.[DelivrdQty]) != 0
    Try this query in query manager.
    Thanks
    Manvendra Singh Niranjan
    Edited by: Manvendra Singh Niranjan on Jul 13, 2011 6:27 AM

  • Query Designer - how to count distinct  characteristic values in a column

    Hello Experts,
    I need to count the number of distinct occurences in a column and use it later for a percentage calculation. I'll give you a concrete example:
    Promotion_ID   Product    Promoted
    A  ******************  P1 ********  1
    A  ******************  P2 ********  0
    A  ******************  P3 ********  1
    B  ******************  P1 ********  0
    B  ******************  P3 ********  1
    C
    D
    A promotion ID can have more than 1 product associated with it. A product can be promoted (1) or not. A promotion_ID can be also empty (no products C and D)
    I need to calculate for each product the percentage of promotions where the product is promoted out of ALL promotions (4) or
    P1  25 %
    P2  0 %
    P3  50%
    How can I model this in the Query Designer ? How can I count the distinct Promotion_IDs ?
    Any ideas will be appreciated.
    Thanks
    Rado

    Hi,
    Please take a look at the docs below.
    https://websmp102.sap-ag.de/~sapdownload/011000358700002762432003E/HowToCount.pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7e58e690-0201-0010-fd85-a2f29a41c7af
    Regards,
    ®

Maybe you are looking for