Restriction on nodes in a query

Hi Gurus,
         Can you tell me if can restrict a node in a Hierarchy in a BW query?? If so, tell me how??
Because i tried using the "restrict option" but the exclude option is greyed out.
Thanks,
S.

yes u can restrict the hierarchy node in BW.
From context menu of characteristic>restrict>select the required hierarchy from drop down box of 'from hierarchy'.Then u can see all the nodes available under the selected hierarchy.move the required hierarchy node to right-window.

Similar Messages

  • How to Restrict the node level in account hierarchy

    Hi experts,
    I want to restrict the node level in account hierarchy. I attached one example. in that if i click 6000 node again it want to show error message. for one parent node i want to create only two child node. Further if i create means it want to show error msgs and not allow to create the node..
    Regards,
    gopi

    Hi ,
    The component is bp_hier, and method is onnew_node.
    IF lv_tree->is_locked( ) = abap_false.
         lv_tree->lock( ).
       ENDIF.
       CHECK lv_tree->is_locked( ) = abap_true.
       lv_index = typed_context->accounthierarchy->selected_index.
       lv_tree_node = typed_context->accounthierarchy->get_node_by_index( lv_index ).
    *key = lv_tree_node->node_key.
      CALL METHOD lv_api->get_node_parent
         EXPORTING
           iv_node_key        = key
         IMPORTING
           ev_parent_node_key = lv_paent_key
    *      ev_tree_guid       =
    *   lv_parent = lv_tree_node->parent_entity.
    *    typed_context->accounthierarchy->parent_entity.
    CALL METHOD lv_tree_node->get_children
       receiving
         rt_children = rt_child.
       CHECK lv_tree_node IS BOUND.
       lv_tree_node->is_leaf = abap_false.
       TRY.
           lv_proxy_node ?= lv_tree_node.
           TRY.
               lv_object ?= lv_proxy_node->bo.
             CATCH cx_sy_move_cast_error.
               lv_mixed_node ?= lv_proxy_node->bo.
               lv_object ?= lv_mixed_node->if_bsp_wd_ext_property_access~get_model_node( ).
           ENDTRY.
           lv_object_name = lv_object->get_name( ).
           IF lv_object_name = 'BuilHierarchyNode'.
             lv_relation_name = 'BuilHNodeRel'.
           ELSEIF lv_object_name = 'BuilHierarchyHeader'.
             lv_relation_name = 'BuilHeaderNodeRel'.
           ELSE.
             RETURN.
           ENDIF.
           lv_tree_node->get_children( ).
           lv_object = lv_object->create_related_entity( lv_relation_name ).
           lv_child_node = lv_proxy_node->node_factory->get_proxy(
               iv_bo = lv_object
               iv_proxy_type = 'CL_BP_HIER_HIERARCHYTREEV_CN05'
               iv_parent_proxy = lv_tree_node ).
           lv_tree_node->expand_node( ).
           typed_context->accounthierarchy->refresh( ).
           typed_context->accounthierarchy->deselect_all( ).
           lv_child_node->selected = abap_true.
           lv_child_node->is_leaf  = abap_true.
    *accounthierarchy
    *      selectedhierarchynode
           lv_col_wrap = typed_context->selectedhierarchynode->get_collection_wrapper( ).
           lv_col_wrap->clear( ).
    This is the code.
    i wrote . but its not getting.

  • Effect of Restricted Keyfigure & calculated keyfigure in query performance

    Hi,
             What is the effect of Restricted Keyfigure & calculated keyfigure  in Query Performance?
    Regards
    Anil

    As compared to formulas that are evaluated during query execution, calculated key figures are pre-calculated and their definitions are stored in the metadata repository for reuse in queries. The incorporation of business metrics and key performance indicators as calculated key figures, such as gross profit and return on investment (which are frequently used, widely understood, and rarely changed), improve query performance and ensure that calculated key figures are reported consistently by different users. Note that this approach improves query runtime performance but slows InfoCube or ODS object update time. As a rule of thumb, if multiple and frequently used queries use the same formula to compute calculated fields, use calculated key figures instead of formulas.
    RKFs result in additional database processing and complexity in retrieving the query result and therefore should be avoided when possible.
    other than performance, there might be other considerations to determine which one of the options should be used.
    If the RKF's are query specific and not used anywhere in majority of other queries, I would go for structure selections. And from my personal exp, sometimes all the developers end up with so many RKF and CKF's that you get easily lost in the web and not to mention the duplication.
    if the same structure is needed widely across most of the queries, that might be a good idea to have global structure to be available across the provider, which might considerable cut down the development time.

  • How to filter hierarchy node in BEX query designer

    Dear experts
    We are working on FI balance sheet with hierarchy infoobject 0GLACCEXT. Example of our balance sheet is as follow:
    Parent Node A = 20
         Sub-parent Node A1 = 10
             Leaf A11 = 5
                 Leaf A12 = 5
    Parent Node B = 20
         Sub-parent Node B1 = 10
                   Leaf B11 = 5
                   Leaf B12 = 5
    We require only:
        Sub-parent Node A1 = 10
        Leaf B12 = 5
    So I filter those out in BEX restriction;  however, after we examine the report in tcode RSRT, "Sub-parent Node A1" is not shown in BEX Report, and the result is as follow:
    Parent Node B = 5
         Sub-parent Node B1 = 5
                 Leaf B12 = 5
    Are there solutions for us to show merely A1 and B12 ?

    Hi Chu
    Try the following steps.
    Initial Output
    In this example I will restrict the query for only displaying Node 8603 and leaf 9000
    Proceed to restrict the Characteristic. Please be aware of the difference between hierarchy nodes and leaf characteristic values. Also set the Hierarchy display properties to expand up to level 1.
    Execute the query again:
    Please be aware that users will still be able to expand node 8603 and see the lower level nodes/leaf. In order to restrict users from doing this set up users authorizations.
    Regards,
    Carlos

  • Does tangasol provide some setting to restrict response datasize of a query

    We are are using tangasol caching in our application, we have around 10-15 GB of data.
    My cache cluster consists of 7 nodes (7 linux box, each box has 10 jvms).
    Some of the clients application connect to our cache as a remote client and query data (using filters).
    In some of the cases the result of query is very large, this create some trouble on the cache server, in the coherence log we can see many frequent GCs happing, communication deploy reported , removal of some members from the cache cluster etc..
    I know client can use Limit filter and fetch data in batches instead of fetching all the data in one go, but I do not have control on client application, I want to restrict the data size from server ends.
    So what I want is to restrict the size of response data.
    I am wondering if tangasol provide some setting in (may be cache config file) cache configuration to restrict the response data size (like response data should < 1 GB or response data set < 10000 records).

    Hi user 644246,
    In Coherence 3.4 (which is currently in Pre-release - http://www.oracle.com/technology/products/coherence/index.html) we introduced a new PartitionFilter that would allow you for example to do the following:
    *Run a parallel query partition-by-partition:
    void executeByPartitions(NamedCache cache, Filter filter)
       DistributedCacheService service =
           (DistributedCacheService) cache.getCacheService();
       int cPartitions = service.getPartitionCount();
       PartitionSet parts = new PartitionSet(cPartitions);
       for (int iPartition = 0; iPartition < cPartitions; iPartition++)
           parts.add(iPartition);
           Filter filterPart = new PartitionedFilter(filter, parts);
           Set setEntriesPart = cache.entrySet(filterPart);
           // process the entries ...
           parts.remove(iPartition);
       }* Run a parallel query member-by-member:
    void executeByMembers(NamedCache cache, Filter f)
       DistributedCacheService service =
           (DistributedCacheService) cache.getCacheService();
       int cPartitions = service.getPartitionCount();
       PartitionSet partsProcessed = new PartitionSet(cPartitions);
       for (Iterator iter = service.getStorageEnabledMembers().iterator();
               iter.hasNext();)
           Member member = (Member) iter.next();
           PartitionSet partsMember = service.getPartitionSet(member);
           // due to a redistribution some partitions may have already been processed
           partsMember.remove(partsProcessed);
           Filter filterPart = new PartitionedFilter(filter, partsMember);
           Set setEntriesPart = cache.entrySet(filterPart);
           // process the entries ...
           partsProcessed.add(partsMember);
       // due to a possible redistribution, some partitions may have been skipped
       if (!partsProcessed.isFull())
           partsProcessed.invert();
           Filter filter = new PartitionedFilter(filter, partsProcessed);
           // process the remaining entries ...
       }Regards,
    Gene

  • Restricting Hierarchy Nodes Error

    Dear SDNers,
      I heve restricted a characteristics(CRM Marketing element) by a Hierarchy User Input variable. Now, I have to exclude some nodes from the hierarchy.
    When I try to add the node (X) and select "exclude from selection" and check the query, it gives a system error that says "Node X is not in hierarchy (Parent Node) for Infoobject CRM marketing element".
    How do I fix this error? Can I not exclude a node when I have a USer input variable?
    Can I control this using the variable itself?
    Your inputs will be greatly appreciated.
    THanks

    i am loading hierarchy with this infopack for a long time, any issue can  t be there related to structural things,
    If issue is about :
    - you need a ROOT-node with level 1.
    - then chields with with level 2 and as parent the ROOT-node
    - in the BW-hierarchy you have also brothers with nodeid from the other one.
    and so on.
    Then it is giving more explanatory errors, like " This node has no parent" or "This node is not connected to anywhere", so i am able to specify where the issue is.
    But this time, no clue..
    Thanks for helping, but anyone else faced with same message ?

  • Error in bex design window while Restricting an item in a query

    Hi All,
    When I try to restrict an Item (a value)  in the query design window Im getting the following errors:-
    1.) 'The Operation Failed because of a program error on the Server (DUMP). See System Log for Details.'
    2.) 'Stop Statement Occured'.
    3.) Run Time Error
    4.) Run Time Error
    DUMP:
    Runtime Errors UNCAUGHT_EXCEPTION
    Exception CX_RSR_X_MESSAGE
    I have check many OSS notes but My BW system is on 3.5  SP 22 ,so none of the note is applicable.
    Has anyone face this error before.
    Thanks
    Savio

    Dear Savio,
    On 14th of October 2008 support for SAP GUI for Windows 6.40 ended.
    This means:
    No more patches are supplied (not even security updates).
    No corrections are implemented.
    How to requests which are specific to release 6.40 are not processed.
    SAP GUI for Windows 6.40 is not tested or used SAP internally anymore.
    There is no extended support option for SAP GUI for Windows 6.40.
    Since using a component which is out of support means a high risk it is SAP's strong recommendation is to start the planning for the upgrade to release 7.10 as soon as possible.
    The patches previous could be found at below mentioned path:
    service.sap.com/swdc
          > SAP Software Distribution Center
            > Download
              > Support Packages and Patches
               > Entry by Application Group
    >Support Packages and Patches>SAP Frontend Components
    >SAP GUI FOR WINDOWS>SAP GUI FOR WINDOWS 6.40
    Now the above written notification can be seen here.
    Hence., It would be better if you upgrade to SAP GUI 7.10.
    Hope this info helps!!
    Kind Regards,
    Robin.

  • How to restrict the quantity in bex  query?

    Hi all,
    i have created a query using infosets and it looks like this :
    material   cost      tax amount units
    madhb    21,693   1,443.42   99 each.
    I want to restrict the query in such a way only one unit value need to be displayed.
    How to restrict it by showing only single unit.
    The expected result should be like this??
    material cost  tax amount units
    madhb    293   144        1 ea
    Can anyone let me know how to restict the quanity so the query will display the results only for one unit.
    thanxs
    haritha

    Hi Pradiba santosh,
    I have created a conditions and restricted the key figured.
    zunit equal 1.
    and i have saved and executed the query. But still it displayed for all the units. And it didnt display the query for one unit. Why is that so?
    can you let me know what went wrong on it?
    thanxs
    haritha

  • Retrieve xml attribute value of nth xml node using xpath query

    I have an xml with following stucture...
    <xml>
    <header>
     <DocumentReference OrderId="order001">
     <DocumentReference OrderId="order002">
     <DocumentReference OrderId="order003">
    I have to loop through this xml and retrieve the orderId values inside Biztalk orchestration.
    In the expression shape, I get the count of 'DocumentReference' nodes using an xpath query and then
    Added a loopshape to make sure it loops thru all nodes
    Loop condition:   n<=nodeCount     (where n is an integer variable, n=0 to begin with, incremented by 1 thru each loop, nodeCount is # of DocumentReference nodes)
     I try retrieve to the orderId in the following expression shape using the below xpath query
      xpathQuery = System.String.Format("//*[local-name()='OrderReference'][{0}]/@orderID)",n);
      sOrderId = xpath(MsgSingleInvoice,xpathQuery);
    And I get the following exception:
    Inner exception: '//*[local-name()='OrderReference'][1]/@orderID)' has an invalid token.
    Exception type: XPathException
    Appreciate any help!   thanks!

    Thanks for the quick response. I got rid of it.
    And I see a different error:
    Inner exception: Specified cast is not valid. Exception type: InvalidCastException
    Source: Microsoft.XLANGs.Engine  
    Target Site: System.Object XPathLoad(Microsoft.XLANGs.Core.Part, System.String, System.Type)
    Since variable 'n' is of integer type, I suspected it and changed it to n.ToString() and tested again and still see the same error.

  • Using "Restrict by app" in change query causes issues with Search Results

    Hello!
    I am hoping some experienced SP admin can help me out. I am having issues with the relevance ranking for my search results web part.
    I created a Wiki (OOTB) within a site collection and on the home page of the Wiki I was looking to apply a Search Box and Search Results web part for easy searching. I wanted to ensure the search results were restricted to the scope of the pages within the
    wiki. I did the following after adding the 2 web parts:
    Entered edit mode for the page
    Started to edit the Search Results web part
    Under Properties for Search Results clicked on "Change Query"
    Navigated to BASICS and clicked "Switch to Quick Mode"
    For Select Query, picked "Wiki (System)" option
    For Restrict by app, picked "Specify a URL" and input the wiki URL "http://webapp.com/sites/sitecollection/wiki"
    Click OK
    The web part has 6 automatic results when I hit the page. These are the only 6 pages in my wiki. When I search a word or title of a page, they are not ranked in order or relevance. The ordering is static to what was being shown before the search, but the
    keywords I'm searching are bold. With out the taking the steps above, I can easily search these pages and have them ranked appropriately so I'm not too sure what I'm doing wrong. 
    Other Details
    The pages have been crawled and can be searched from anywhere else in SP.
    I am only a site collection admin for this specific site collection.
    I other than the steps above, I have not made any changes or customization to the search web parts; they are both out of the box SP.
    The SP Farm admin we unable to pin point what the root cause is either.

    Hi Mikael,
    Sorry for the wait, I was unable to post pictures, which i felt would better describe my issue.
    Could you output the query template you are ending up with?
    If you can tell me how to accomplish this, then I can provide it. Please keep in mind that I am only a site collection admin.
    Also, is the ranking/sorting for your webpart set to ranking?
    When looking at the web part settings, I didn't see an option to modify the ranking. Unfortunately, some sites in my intranet are down now so I can't even double check. Once it's back up, I will verify this as well.
    And how do you know they are ranked incorrectly?
    I wanted to display an image showing what I meant by this. As the wiki is down, I'll do my best with words. When I visit the wiki home page, I already have the search and search results web parts there. Without searching anything, the search results
    web part displays 6 pages that are available in the wiki. When I search, I expect to see the most relevant result at the top. similar to the following: 
    *Search result from another section of the intranet site.*
    What I receive instead is the same list of wiki pages, in the same order. The most relevant result
    is not moved to the top like in the image above, but I can see that the word "rush" is highlighted in bold. I hope this helps.
    If you need more of a description, please let me know.
    Thank you

  • Can we restrict changes made in BEx query not to resemble in Universe

    Hello Gurus,
    I have a question. Lets say if there is a universe created based on BEx query and if later on BEx query is changed (newly added Chars, KF's or change in names) can we restrict the changes not to resemble in Universe?
    Please give me any related document or link which will be a big favor for me.
    Thanks a lot for your time.

    Changes in the BEx query are not reflected always automatically in your universe: Eg. if you add an new restriction or a new keyfigure. You have to maunally refresh the structure of your universe and export it again on your BOBJ server.
    Some changes will be automatically available though eg. if you change the code of a customer exit variable which is already used in your BEx query, even if you do not refresh the universe.
    Please keep in mind that some kind of changes in the query (removing existing key figures or characteristics) may cause error messages when you try to run your universe (assuming you did not update it).
    The recommendation here is to refresh your universe when you change the underlying BEx query. If you do not want to do that then your universe may stop working.
    Regards,
    Stratos

  • Restricted/Calculated Key Figures in Query vs MDX?

    Hello All,
    We are embarking on our first project utilizing SAP BW as the Data Warehouse and Web Intelligence as the presentation tool.
    We plan on creating the universes on BW Queries.
    What are the pros and cons of using Restricted and Calculated Key Figures in the query versus creating them in the Universe?  Also from a performance impact point of view if there is any?
    Best Regards,
    Dan Krieg

    Hi Dan,
    I would suppose that there is no big influence on performance. If the calculation for the calculated key figures are very complex I would propose to calculate them on query level. So its easier to use them also in other environments.
    Please take into consideration that OLAP universes are not supported in Crystal Reports. More information you find in the thread [OLAP universes and Crystal Reports|OLAP universes and Crystal Reports;.
    Regards,
    Sebastian

  • Restricting record in the select query

    Is there any way to restrict the number of search (e.g 10) records in the SELECT query ?

    Hi,
    You can use as below:
    select <fieldname> up to 10 rows from <tablename> into itab.
    Thanks,
    Sriram Ponna.

  • Restricting Users access to BW Query based on Criteria

    Hello  ,
    Haven't found much help with the security implementation documents , i have been given a objective to create Profiles/roles and which would be used only for reporting on 1 single Cube by users from multiple departments. 
    Create profile/Roles and provide access to users for Query ZREP_C0_1 .
    User belonging to comp_code1 & region4 & plant6 should be able to view only his data and none other  even if the user wishes to see Compcode2 & region3 & plant4. 
    ( Reporting with restrictions over the User authorizations  on Region/Compcode )
    Creating the Role has been the easy as it was just to provide access to the infoarea , cubes, infobjects , query and authorization objects to execute query.   However i am stuck on how to proceed further on the above scenario  regarding restricting the users.
    Your help is much appreciated .
    Regards
    Raja

    Hi Pratheesh,
    If you are going to use client authentication in SSL and if client authentication fails since not all users will have client cert provided by you, SSL handshake will not complete and hence no access. But this is a performance impacting option. Restricting access on FW would be a good option.
    During the flow of a normal SSL handshake, the server sends its certificate to the client. The client verifies the identity of the server through the certificate. However, the client does not send any identification of its own to the server. When you enable the client authentication feature on the ACE, the ACE requires that the client sends a certificate to the server. The server then verifies the following information on the certificate:
    The CA has not revoked the certificate.The certificate signature is valid. The valid period of the certificate is still in effect. A recognized CA issued the certificate.
    You can specify the certificate authentication group that the ACE uses during the SSL handshake and enable client authentication on this SSL proxy service by using the  authgroup command in SSL proxy configuration mode. The ACE includes the certificates configured in the group with the certificate that you specified for the SSL proxy service
    Regards,
    Kanwal

  • Node variable in query - Processing type customer exit?

    We are on NW 2004S. I created a hierarchy for an info-object along with several nodes and child nodes.
    I also created a node variable in a query for this info-object. I have the following questions with regards to using node variables in a query.
    1) Can I use a node variable with processing type 'Customer Exit". My objective is to set the value of the node variable in the user exit.
    2) If answer to first question is "Yes", how would I code the node value in the user-exit - Example code or some pointers to that effect.
    I really appreciate your thoughts on this issue.
    Thanks,
    Sanjay

    Hi Sanjay,
    As far as I'm aware this hasn't changed in NW2004s, (in any case it still works), so:
    1)Yes you can, no difference with other type variables.
    2)In userexit EXIT_SAPLRRS0_001 (include ZXRSRU01).
    There's different options depending on at which stage you want to change it:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm
    If you do a forum search on above technical names I think you'll find plenty of coding samples, but if you want something more specific, I'd be happy to help you out.
    Regards,
    Pieter

Maybe you are looking for

  • Touch restore error 28 - permanent recovery loop with LOG

    http://pastebin.com/m3d0f3b06 there's the log. I tried all the apple steps (incl. "proper" dfu mode etc) so please don't suggest that. ipod touch 2g (late 2009) stuck in recovery. Error 28 every time I restore on multiple mac and PC machines. 3.1.2 w

  • How do i download adobe flash player on my new mac pro?

    just bot a mac pro and cannot download adobe flash player.  help.

  • Editing Templates

    So I have created a template with one editable region I have created a new page from template and wish to change the styling in the editable region for the new page but not the main page. When i create a new css rule it alters the main page as well,

  • How to download phonegap source code in DW cs6

    im using dreamweaver cs6 and phonegap to develop android, i can download app.apk, but how to download java source file to open project in eclipse? can some expert advise me?

  • Party with different identifiers

    Hello experts I have a basic question . In my B2B scenario( SAP to Legacy) the receiving system has different customer numbers in the SAP system and all the idoc for these different customer numbers has to be sent to this Party . How can i assign dif