Hierarchy node value sum of all underlying node values

Dear,
The automatic calculated node in the hierarchy of 0PROFIT_CTR does not equal its underlying node values. How is this possible??
Thanks!

Hi,
Just check in the characterisic maintenance screen whether there was any restriction on hierarchy summation levels.
Hope this helps.
Assign points if useful.
Regards,
Venkat

Similar Messages

  • =SUM(IIF(Fields!OPTION_CODE.Value="M","0",Fields!COST.Value * Fields!TOTAL_UNITS.Value )) =IIF(Fields!OPTION_CODE.Value="P","0",SUM(Fields!COST.Value * Fields!TOTAL_UNITS.Value )) =SUM(IIF(Fields!OPTION_CODE.Value="M",CDbl(Fields!COST.Value * Fields

      in this i want to calculate only Option code 'M' Amount in gross total.BUT MY Gross total calculating M and P Amount.  option code P value should visible but not to add.
    please any body help me to writing any function
    =SUM(IIF(Fields!OPTION_CODE.Value="M","0",Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
    iam writing like below its showing error
    =SUM(IIF(Fields!OPTION_CODE.Value="M","0",Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
    =IIF(Fields!OPTION_CODE.Value="P","0",SUM(Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
    =SUM(IIF(Fields!OPTION_CODE.Value="M",CDbl(Fields!COST.Value * Fields!TOTAL_UNITS.Value), CDbl(0,0)

    Hi Pullela venu,
    I have checked the expression and found that you have incude the string "0" in the SUM function which will cause the error, please remove the "" of the value 0 as below to have a test:
    =SUM(IIF(Fields!OPTION_CODE.Value="M",0,Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
     =IIF(Fields!OPTION_CODE.Value="P",0,SUM(Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
    For the last expression as below is not correct, CDBL function format is CDBL(expression):
    =SUM(IIF(Fields!OPTION_CODE.Value="M",CDbl(Fields!COST.Value * Fields!TOTAL_UNITS.Value), CDbl(0,0)
    Modify as below:
    =SUM(IIF(Fields!OPTION_CODE.Value="M",CDbl(Fields!COST.Value * Fields!TOTAL_UNITS.Value), CDbl(0.0) )
    If the problem still exists, please provide the error message if the expression throw any error.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Account Hierarchy : Function Module to get all the nodes of a hierarchy

    Hi Experts,
    Is there a function module which will give as output all the Node GUIDs for a particular account hierarchy in SAP CRM,when the Node GUID of any single node in the same tree is given as input?
    Best Regards,
    Ashish Dhagat

    Thanks mate.
    Edited by: pankaj kandhare on Aug 14, 2011 7:56 AM

  • AW01N shows planned values in period 12 under posted values tab

    Hi,
    I need to change the useful life and depreciation key of an asset.  Before the change, the 2009 depreciation values in AW01N under the posted values tab shows 500,000 monthly depreciation from period 1 to period 12 totalling 6M for that year.
    After changing depreciation key to ZLNR which has a base value key of 24 (net book value), system added another line item for a planned value of 3.750M.  
    Why did the system add another planned value?  I do not want to change the 2009 depreciation values.  However, I must show that the depreciation values in 2010 will "catch up" i.e. decreased depreciation because of longer useful life.
    Thanks and regards,
    Tess

    Resolved.  I must close the 2009 fiscal year first before changing the useful life and the depreciation key.

  • Access a value attribute under a value node

    Hi guys,
    Could you please help me on this one. I need to access value attributes that are under a value node?. I use the following codes and I always have the error "java.lang.NullPointerException ".
    1) wdThis.wdGetContext().currentMyValueNodeElement().getMyAttribute();
    2) wdContext.currentMyValueNodeElement().getMyAttribute();
    Thanks in advance
    Franck

    HEre is an example where I'm pulling a value from a value attribute where the Node is a table.  "Ytdsl" is the actual value attribute name.
              //      Get the total  from the last line of the table
              String sx =
                   wdContext
                        .nodeChannelList()
                        .getElementAt((wdContext.nodeChannelList().size() - 1))
                        .getAttributeValue("Ytdsl")
                        .toString();
    Regards,
    Rich Heilman

  • Total value is wrong in main node (hierarchy)

    Dear experts,
    In the reports the value displayed for the total is wrong in the hierarchy, it is not the sum of the child nodes values:
    ex:
    If Germany has 2 company codes DE01 and DE02, and the value of no. of customers for DE01 is 500 and for DE02 is 200,
    then  it should display  like below
    Germany : 700
    DE01 :500
    DE02:200.
    But the value that is displayed in the total is worng and it is displaying a lesser value than the actual sum,
    like in the above example
    Germany: 690
    DE01:500
    DE02: 200
    I have checked the key figure which calculates the value, it is correct, only issue is with the value displayed for the whole(parent node)
    please help me on this...
    Thanks in advance..
    Regards,
    Kalpana

    Hi.
    So no funny business going on with calculations in the key figure? Ok... Then I would want to know if it's happening for more than one user, more than one report and especially if it's happening for other hierarchies also.
    At any rate, run it in RSRT with execute and debug. Run with/without aggregates. Check results.
    I have come across the same symptoms twice and both times it was due to a problem with "corrupted" aggregates, so the node value would come from the agg (and be wrong for some tech reason that was fixed by the basis guys) and the single values would come from the cube.... Some explanation like that was given then, so if you got aggregates, get your basis guys to check them or simply dump them and recreate.
    If you dont have aggregates, then check if the hierarchy is ok. Maybe an attribute change run got messed up and didn't activate the hierarchy properly (I know, that should not happen and it will use the old active version, but anyway, just to check...).
    Regards
    Jacob

  • Difference between value attribute and value attribute under Node in contex

    I have very basic question..it might be very simple but it is giving me a problem.
    I have created one Node name "Input" and value attribute "Input1" under it.
    I have just created one more value attribute named "in1" not under any Node.
    I have created two input filed in the my view.One first I have mapped the value in properties
    to variables "Input.Input1" and on another "in1".
    When I deploy and run the application one Input box is coming as readonly and other is working fine .Will anybody tell me why it is so?

    There is no major difference between value attribute and inside a node.
    It is a separation of attributes. Usually all the attributes belongs to same purpose will create in one value node. Like, calling one BAPI - requestListBAPI - it contains all the bapi related value attributes.
    For your question, one field is read only(Input.Input1), bcz that context is not created. see the context properties.....cardinality will be 0..n. Change the cardinality to 1...n (<b>or</b>) create that context element .
    In your implementation create that value node like this in your init method.
    wdContext.createInputElement();
    It will solve your problem.
    in1 - is a value attribute, which is mapped to your input element. It wont have any problem.
    Regards,
    Sri

  • By default in BPC values are sum in node level, It does not make sense to sum averages on parent nodes.

    HI Guys
    we have an business requirement to store data in average figures ,
    The values  are entered on the base member level but in reports we need to show average values  on the parents level instead of sum
    ( by default in BPC values are sum in node level),it does not make sense to sum averages on parent nodes.
    we managed it with excel formulas ,but we r facing the problem with dimensions which are in context.
    (i tried using dim memeber formulas but AVG key word is not accepting the system in member formulas)
    at last by using formula we managed the report but im worried abt that if there is no formulas ,how we will manage
    pls suggest any solution to show average values on the node level in specific reports

    Hi Krao,
    Please define what do you mean by average - arithmetic average or weighted average (has more business sense to my mind).
    Also, please provide some samples, explaining dimensions used in average calculation.
    In our case we use dimension member formulas to show average prices, discounts etc. in the reports.
    B.R. Vadim

  • Hierarchy based on master data without double nodes

    Hi guys,
    I need to display a hierarchy in BEx with the requirement to show all members of the hierarchy regardless if there are posted values or not. If I switch the display mode of my characteristic to "master data" I get all members, but nodes of my hierarchy appear twice. Once as sum of all leafs beneath and once as member itself.
    Any idea how to get a hierarchy with all members just one time?

    Hi guys,
    the solution lies in the hierarchy attributes. When checking the box "Do not show inner leaves" the problem is solved. No we have all members of the hierarchy without double entries for nodes.

  • Hierarchy node not displaying some of child nodes

    Hi all,
    In my bex query for one of the hierarchy node  is not showing sum of its child nodes even though the belownodes got some data in it.
    What could be the reason.as all the other nodes at the same level are showing the sum of their child nodes.
    Thanks

    Display as hierarchy : no sum on node level.
    If the rows are set as u2018display as hierarchyu2019, all the objects in the rows section must have as setting for result rows : u2018always displayu2019

  • Binding with all the nodes to the table

    Hi,
    I have requirement like this,
    I have table in which data is displayed using BAPI.
    In my BAPI , there are four tables.
    My criteria is to bind the values to the table from the four nodes which is mapped from BAPI.
    But I can't able to bind the value form all the nodes, it allowing me to only bind form one node.
    Please help me with the procedure to bind the values to the table from all the nodes in the context.
    Thanks,
    Anitha

    Hi Anita,
    I had a similar requirement and resolved my problem by following the below procedure. Try this, it might help you.
    I have got 3 Nodes coming from a BAPI
    Model Node Root--
           Model Node A---
              Attribute- 1
              Attribute- 2
          Model Node B--
              Attribute- X
              Attribute- Y
          Model Node C--
             Attribute- F
             Attribute- G
    Now I want bind all these Nodes to one table. So, I created a "Value Node" - V under Model Node Root. Then create Value Attributes under Node -V with the similar names of the above Model Node attributes and then change their "Type" property exactly same as the Model Attributes Type.
    Then, create a Table and then Bind the table to the Value  Node. Now, in your wdDoinit Method of your Component Controller, give this code
    WDCopyService.copyElements(wdContext.node<modelnode>, wdContext.node<valuenode>);
    Later in your View Implementation give the following Code.
    IPrivate<Name>View.ISourceValueNode iSourceValueNode= wdContext.nodeSourceValueNode();
    IPrivate<Name>View.ISourceValueElement iSourceValueElement;
    IPrivate<Name>View.ITargetRFC Element iTargetRFCElement;
    for(int i=0;i<wdContext.nodeTargetRFC().size();i++){
    iTargetRFCElement = wdContext.nodeTargetRFC().getTargetRFCElementAt(i);
    iSourceValueElement = iSourceValueNode.createSourceValueNodeElement();
    iSourceValueElement.set<attribute name>(iTargetRFCElement.get<Attribute name>());
    iSourceValueNode.addElement(iSourceValueElement);
    iSourceValueNode.moveNext();
    I hope this helps you. Let me know if you need any information.
    Regards,
    Gopal.

  • How to get all tree node parents upon select

    I have a tree, and when user clicks an item in the tree, I want to get all the parents of the selectedItem node.
    So if I have this XML:
    <products>
        <item>
            <sku>1001</sku>
            <quantity value="100" />
        </item>
        <item>
            <sku>2001</sku>
            <quantity value="250" />
        </item>
        <item>
            <sku>3001</sku>
            <quantity value="300" />
        </item>
    </products>  
    If user clicks on the 1001 sku, I want to get something like this:
    <products><item><sku>
    Also if I have a custom component, perhaps based on tree or but maybe not, and if this custom component shows the actual XML and used can click on XML elements or XML attributes, how can I use the selected item to get the parent nodes, so if they click on the value="100", I want to get this:
    <products><item><sku><quantity>
    I need this because I have a set of fields, and users will drag their XML node elements or attributes to my fields, to define a mapping between their XML and my fields.
    The selectedItem is just a snippet of XML cut off from its source XMLListCollection, and I might be able to search the XMLListCollection, but what if there were say <sku> elements at more than one level in the XML? I'm guessing a search might return multiple hits for a selected element, when I want the actual parent nodes for the actual selected node.
    Thanks very much!

    var path:Array=[]
    var parent:XML = xxxx.selectedItem.parent()
    while(parent){
    path.push(parent.localName())
    parent = parent.parent()
    Or, i didn't get your question and xxxx.selectedItem is "detached" XML snippet ?

  • How to make visible value attributes of a Search Node

    Hi All,
    We have a requirement to enhance the search context node SEARCH ( Dynamic Query Object SVYQ ) of component SVY_S.
    But the enhancement category of Attribute Structure CRMST_QUERY_SVYIL is 'Can't be enhanced'.
    So we are adding value attributes to this context node. How to make this value attributes available in view configuration tab?
    Please suggest a better approach if there is any.
    Thanks in adv.

    Hi  Suchindra,
       You assign these  enhanced  attributes to design layer. so you can see these fields in Config tab.
    How to do:
    IMG->Customer Relationship Management -> UI Framework -> UI Framework definition -> Maintain
    design layer
    Here include the enhanced attributes and then go to component work bench and in context attributes right click assign the desing layer, selct your attribute and  in the bottom click on SAVE button.
    Then check it in configuration tab your attributes will available in show available fields.
    I hope this will solve your problem
    Regards,
    Sagar

  • Af:tree inside af:accordion is not showing all the nodes

    Hi All,
    I am using Oracle JDeveloper 11g Release 2.
    I have af:tree enclosed inside af:panelStretchLayout, displaying data from database table. af:tree is not displaying all data(nodes) in the space available to it. It is hiding the data at middle. I have tried number of options but in vein. The code is given below:
    <af:panelAccordion id="pa1">
                                    <af:showDetailItem text="Browse Course Categories" id="sdi1" icon="/Images/tree.png">
                                        *<af:panelStretchLayout id="psl112">*
                                            *<f:facet name="center">*
                                                <af:tree value="#{bindings.BaseCourseCategories1.treeModel}" var="node"
                                                         selectionListener="#{bindings.BaseCourseCategories1.treeModel.makeCurrent}"
                                                         rowSelection="single" id="t3" *styleClass="AFStretchWidth"*>
                                                    <f:facet name="nodeStamp">
                                                        <af:outputText value="#{node.CategoryTitle}" id="ot4"/>
                                                    </f:facet>
                                                    <f:facet name="contextMenu">
                                                        <af:popup childCreation="deferred" autoCancel="disabled" id="p1">
                                                            <af:menu text="Course Categories" id="m1">
                                                                <af:commandMenuItem text="Show Categories" id="cmi1"
                                                                                    actionListener="#{SelectAllCategoryBean.refreshChildCategories}"
                                                                                    action="refresh">
                                                                    <f:attribute name="CategoryId"
                                                                                 value="#{node.CategoryId}"/>
                                                                </af:commandMenuItem>
                                                                <af:commandMenuItem id="cmi2" text="Add Category"
                                                                                    action="goCreateCourseCats"/>
                                                            </af:menu>
                                                        </af:popup>
                                                    </f:facet>
                                                </af:tree>
                                            </f:facet>
                                        </af:panelStretchLayout>
                                    </af:showDetailItem>
                                </af:panelAccordion>Any guidance or help....
    Thanks in advance
    Bilal

    Hi Peter,
    I have checked for stretchChildren="first" property of af:panelAccordion, but didn,t found.
    Thanks for response.
    Regards
    Bilal

  • How get context value form a dynamic created node

    Hi all,
    I have build my own dynamic view. In this view I use also a dynamic created Node. When I have more rows in my Node I see every row with context of the last row of the dynamic Node.
    this is the source I use.
    for (int x = 0; x < dynTabNode.size(); x++)
      dynTabNode.setLeadSelection(x);
      IWDGroup group = (IWDGroup)view.getElement("Group_name");
      IWDAttributeInfo aiName = wdContext.getChildNode("DayNode", IWDNode.LEAD_SELECTION).getNodeInfo().getAttribute("Name");
      IWDCaption name = (IWDCaption) view.createElement(IWDCaption.class, null);
      name.bindText(aiName);
      group.addChild(name);
      for (int i = 8; i < 18; i++)
        int teller = i * 100;
        IWDGroup group1 = (IWDGroup)view.getElement("hour" + teller);
        for (int z = 0; z < 12; z++)
          IWDImage image = (IWDImage) view.createElement(IWDImage.class, "Image" + teller + "_" + x);
          image.setWidth("10");
          image.setHeight("24px");
          image.setBorder(0);
          IWDAttributeInfo att = dynTabNode.getNodeInfo().getAttribute("hour" + teller);
          image.bindSource(att);
          group1.addChild(image);
          teller = teller + 5;
    How can I read my Node row for row?
    Richard
    Edited by: Armin Reichert on Jul 28, 2008 5:03 PM

    The reason is that all these Caption UI elements are bound against the same context attribute. At runtime this will be resolved to the attribute value of the lead-selected node element. In this example you can fix this by not binding the "text" property but setting it to the attribute value of the iterated node element:
    for (int x = 0; x < dynTabNode.size(); x++)
      dynTabNode.setLeadSelection(x);
      IWDGroup group = (IWDGroup)view.getElement("Group_name");
      IWDCaption name = (IWDCaption) view.createElement(IWDCaption.class, null);
      IWDNode dayNode = wdContext.getChildNode("DayNode", IWDNode.LEAD_SELECTION);
      String text = (String) dayNode.getElementAt(x).getAttributeValue("Name");
      name.setText(text);
      IWDAttributeInfo aiName = dayNode.getNodeInfo().getAttribute("Name");
      name.bindText(aiName);
      group.addChild(name);
    (I assume here that the node "DayNode" has the same size as dynTabNode. No idea if this assumption is correct)
    But this would not help for editable elements where you need to bind the edited property.
    Armin

Maybe you are looking for