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

Similar Messages

  • How to write a condition in BEX Query Designer

    Hi
    How can i write a condition in Query Designer
    Scenario
    An employee can purchase any no of policies in a day or month.each policy will have start date and expiry date.
    My requirment
    Count all the policies(valid) by employee on a ranges basis exception reporting
    (0-10;10-20;20-30;30-40) and then able to drill down by policy start date and expiry date.
    As per the requirment is to show policies which are not yet expired (active) i need to write a condition that will count only policies whose Expiry date is > Current calender day
    As Policy Expiry Date is a char i am converting it to KF using fourmala variable so that i can write a condition on it using current cal day formula variable sap exit
    But i char assigment of a condition i find 4 option
    How can i achieve this
    Thanks

    Hi Aurun,
    Thanks for the help,Really appreciated
    As this is my first enhancement using ABAP & CMOD
    What type of key (either Access or developer ) do i require to perform the following  enhancement......so that i can raise request with basis team
    I shall be great ful if u can asnwer below question
    First, you need to create a variable for expiry date with processing type as customer exit, and then give the necessary info.
    In details tab, unchk ready for input as we wont be taking the value from the prompt.
    Now go to CMOD transaction.
    Open the correcsponding project which has the exit code
    (How can i identify the project which has exit code)
    and go to ZXRSRU001 module inside taht.
    Go to the module where u write the exit.
    (How to locate the required module)
    Then, under i step 1, write the code:
    IF I_STEP = 1.
    CASE V_NAME  (What is 'V_NAME',Is it my variable technical name)
    WHEN 'X' " X is the variable u created for the exit
    l_s_range-low = SY-DATUM.
    l_s_range-opt = 'I'.
    l_s_range-sign = 'GT'.
    APPEND l_s_range TO e_t_range.
    END CASE.

  • How to create a variable in Bex Query Designer

    Hi guys,
    I am writing a query for a travel management report using the SAP Standard cube. I would like to restrict the query so it only shows me the last two months excluding the current month. I have checked BI content in RSA1, but I canu2019t find a relevant SAP standard variable that I can use.
    Can anyone please tell me if I can create my own? And if so, how I can do this.
    Many Thanks
    Forhad.

    lets say u want to display following picture:
    sept$-----august$
    City
    -chicago123$--
    44$
    so in Query designer go to Default values section.
    Bring in Calendar month
    right click calendar month
    and hit Restrict
    now select variable
    use standard sap variable Current Month.
    hit okey
    now select Variable and hit Red button
    Result u restricted current month.
    in columns bring in keyfigure $
    right click and hit edit
    bring in time field calendar month
    right click and hit restrict
    bring in Current month
    right click and select - SET OFFSET FOR VARIABLE
    select -1
    hit okey
    repeat the above process
    and this time select offset = -2
    this way u restricted current month
    but displayed last 2 months for keyfigure values.

  • How can i achieve tis in Bex Query Designer

    Hi Experts,
    Please advise on how can i achieve this in Query.
    I got Location,Material_ID,Price and Change_Date.
    (Change_Date is defined as both CHAR & KF in cube)
    (Change date is on monthly basis they execute a programe in non sap source system to update the prices of material)
    The Price of material tends to change or may not change ...
    Every month we get a record from source system on material price
    My requirment is to bulid a report that show
    LocationMaterial_IDCurrent Price  and Previous Price
    Please advise how can i develop this report

    While loading into cube, normally you map  price field coming from datasaource to
    infobject  ZPRICE_CURRENT   in your infocube.
    So in transformation you map like this
    price  -
    > ZPRICE_CURRENT
    Now, Maintain another keyfigure in cube  ZPRICE_PREVIOUS.
    That is not mapped with anything.But is assigned a value in the Start routine
    which just runs before, the transformation.
    In the start routine write code something like this :
    Read current value of price from cube for that Material.
    (Select  ZPRICE_CURRENT into price_curr  from cube where material = DATA-PACKAGE- Material   )
    if  DATA_PACKAGE-price <> price_curr   ( if new_price <> old_price)
    ZPRICE_PREVIOUS = price_curr. (storign present value of price in the cube )
    endif.
    Now save the Start routine. When mapping the fields in the transformation
    dont map anythign to  ZPRICE_PREVIOUS as it is already filled in teh start routine from the above  code.Leave it unmapped.
    The below mapping is normally maintained without change..
    price  -
    > ZPRICE_CURRENT
    If you find this to be useful ..please do the needful (points)

  • How to display 0 Percentage in BEx Query Designer

    The BEx queries which I'm doing are ported to EP & client views all charts & data in portal only.
    I have a small requirement. My client requires to display 0% in the data output.
    Sample data is like
    Mon/Grade     A | B | C | D | E | F             " These are headings
    April                |     |    | 3  | 5 | 4 |  |           " These are data I got in BEx
    Required O/p
    Mon/Grade     A | B | C | D | E | F                  " These are headings
    April                |   0  | 0   | 3  | 5 | 4 | 0 |           " These are data I got in BEx
    My current formula is like
    > NODIV0( ( TEST1 * 12) %A TEST2 )
    What changes must I make so that 0% is displayed in the O/p? Please let me know earliest.
    P.S . The values TEST1 and TEST2 are 'Selections', which holds no data for those displaying values.

    Hi Kavitha,
    The problem  is I'm viewing the data in Web based BEX & not in BEX Analyser. So only.
    >            GROUP E GROUP D2 GROUP D1 GROUP C2
    >APR              6.0      46.0
    >MAY %           14.3      48.0      11.4      16.9
    >JUN %             11.6      16.2
    As you can see there's no data for the months-grade (Apr-GroupD1 etc).. Now, how to view it in portal with 0s for all the ones with no data?

  • How to create Text Variables in BEx Query Designer

    How  can i create Text Variables in Bex Q.D.
    I am able to create characteristic variables
    but i can't find option to create text variables.
    What's the requirement to create Text variables in Bex Q.D.
    When i try to create Text variable for 0calDay.. the variable type is characteristic by Default and disabled.
    How can i create text variables related to 0CalDay with which i need to work in Customer Exit.

    Hi,
    You have to create characteristic variable processing by Customer Exit by considering 0CalDay as a Reference Characteristic
    After creation of the above variable, you restrict your KF with the above created variable.
    Now you can create a Text variable for the description of your KF. This way it works...........
    Regards,
    Suman

  • How to work with sap bw bex query structure

    Dear Friends,
    How can we use SAP BW bex query structure in crystal reports.
    Thanks with regards.
    Malik

    i have two structure in my query.
    and structure is comming in my Crystal report.
    i have 10 memebers in that structure and i make display off for some of members .
    but in crystal all of members are comming either its property is hidden or not.
    any help higly appricated.
    Regards
    Malik

  • Drilldown in BeX Query Designer

    Hello,
    I am new in SAP. I am having problem creating Drill down. I have this report where all the data is Transactional data. So I haven't created any Master Data. So I won't be able to use Navigational Attribute for Drill down purpose and I don't want to use Hierarchy. Is there any possibility of getting the Drill down in BeX Query Designer? Any help will be appreciated.
    Warm Regards,
    Debayan

    Hi Debayan,
    first of all, what is your requirement to create a drill down?
    A drill down in BEx query means showing additional information from report output. There are 3 ways to drill down a query in BEx
    1. Master data-Navigational Attributes
    2. Master data- Hierarchies
    3. Free characteristics
    As you dont have any master data in the report (which is very strange) you can use the additional characteristics provided in the 'Free characteristics' to see how the drill down works in BEx.
    Please share your exact requirement.
    Hope this helps.
    -Swati.

  • % Calculactions in Bex Query Designer

    Hi Experts,
    Could you please on how can i perform the below % Calculactions in Bex Query Designer.
        Vendor No line item Not = L category =A  status =RFQ :for items
    Example : I have 8 items for vendorNo 200274 and only 4 as above condition and 5 items as not L(delete)
    requament: % RFQ Without Response:
    Percentage of Quotation response ={(No. of RFQReponses Received/ No. of RFQ items sent)*100},
                                                                   ( 4/5 * 100= 80%)
    Percentage RFQ without response= 100 -  Percentage of Quotation response
                                                                  =  100-80 = 20%
    How can i perform the % Calculations in Bex Query Designer.
    Vendor
    Purchasing document
    Indicator: Line Item
    Purch. doc. category
    Purch. doc. status
    Item
    Number of Records
    category A item L
    200274
    V-LINE EUROPE EXPORT MARKETING
    6000003778
    L
    A
    Not assigned
    10
    1
    20
    1
    30
    1
    6000003779
    Not assigned
    A
    Not assigned
    40
    1
    9000000046
    Not assigned
    A
    RFQ
    10
    1
    1
    20
    1
    1
    30
    1
    1
    40
    1
    1
    Result
    8
    4
    thank you

    Hope you have done some groundwork you have done on this requirement. Have you tried to create New Formula and put the required formula in it to calculate Percentage of Quotation response ?
    Your formulas seems to be straight forward.
    Keep in Filter: item Not = L category =A  status =RFQ
    You may start working on it and get back with if you are struck.

  • As Bex Query design why I canu2019t select from list in values range

    Hello experts,
         I want to pop input window when I use analyzer run bw report, I know to add filter through restrict, then I selected value ranges, it was appearing between input text, the button canu2019t let me input, I tried select from list, Bex Query design occured some errors, if click u2018exitu2019 will prompt unknown software exception(0xc00200001) then stop .
    the imange: [http://www.itpub.net/thread-1192217-1-1.html]
    How to input text or select list? Why My Bex query design canu2019t do select from list? 
    please let me know the soultions, thanks for you help in advance
    Regards,
    Steve

    first of all, thanks for your help.   if need to install batch, please let me know. many thanks .
    more infomation as belows:
    the windows prompt:
    Your application an unhandled exception occurs. If you click [continue], the application will ignore the error and try to continue. If you click the [end], it will immediately close the application.
    I clicked more detail button , displayed as belows:
    For more information call using Just-In-Time (JIT) debugging details
    Please refer to the end of this message (instead of this dialog box) information.
    Exception Text **************
    System.NullReferenceException: Object reference not set to be the implementation of individual objects
    in com.sap.bi.et.selector.BExSelectorDialog.SelUIDialog.HandleUnhandledException(Exception iException)
    in com.sap.bi.et.selector.BExSelectorDialog.SelUIDialog.OnGuiUnhandledException(Object iSender, ThreadExceptionEventArgs iEventArgs)
    in System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
    in System.Windows.Forms.Control.WndProcException(Exception e)
    in System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
    in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    in System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
    in System.Windows.Forms.Control.SetVisibleCore(Boolean value)
    in System.Windows.Forms.Form.SetVisibleCore(Boolean value)
    in System.Windows.Forms.Control.set_Visible(Boolean value)
    in System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    in System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    in System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
    in System.Windows.Forms.Form.ShowDialog()
    in com.sap.bi.et.selector.BExSelectorDialog.SelUIDialog.GetUserSelection()
    in com.sap.bi.et.selector.BExSelectorDialog.SelUIDialog.ShowSelector()
    in com.sap.bi.et.selector.BExSelectorDialog.SelUICtrlDDBox.InvokeSelector()
    in com.sap.bi.et.selector.BExSelectorDialog.SelUICtrlDDBox.OnInvokeSelector()
    in com.sap.bi.et.selector.BExSelectorDialog.SelUICtrlDDBox.picValueHelp_Click(Object sender, EventArgs e)
    in System.Windows.Forms.Control.OnClick(EventArgs e)
    in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    in System.Windows.Forms.Control.WndProc(Message& m)
    in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    inSystem.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

  • Message in BEx Query Designer Formula

    Hi Experts,
    I need to display message based on the value of the formula result. For Example:
    If K.F1 =<2.5 Then <Message: ODD>
    ElseIF K.F1 >2.5 Then <Message: Even>
    Else
    <Message: Determine the value>
    EndIF
    Thease above messages would be build in the formula column of BEx query designer
    Thanks and really appreciate your response.
    Regards,
    Waseem

    Hello,
    I have done the same funtionality with the help of workbook.
    May be experts can guide us how to display  messages in the formula column of BEx query designer.
    Thanks.
    With regards,
    Anand Kumar

  • Results based on From and To value in Bex query designer.

    Dear all,
    We are using BI7.00. In one of our report which pertains to PM user wants to get the details of number of breakdowns which falls in the value range 0 to 1 hours.
    I created a condition which has 2 variables, one is From value and the other is for the To value (since user wants to enter both the limits). I have written a condition that if the breakdown hour is greater than or equal to variable1 and less than or equal to variable2.
    Using the above condition if the query is run, i am not getting the desired output. The values avaialble in the report are 0.65,0.78,1.30,7.38,0 etc., when i give 0 to 1 i should get the values 0.65,0.78 and 0 but instead report displays "No valid results".
    I changed the condition and selected "Between" variable 1 and variable 2 - yet no change in the query.
    To my knowledge i foresee that system is not able to recognize the decimal and hence provides details only based on the whole numbers.
    How to get my requirement achieved in the Bex query designer.
    Experts suggestion with steps will be very useful to solve my problem.
    Regards,
    M.M
    Edited by: Magesh Magesh on Dec 26, 2008 11:28 AM

    Hi Magesh,
    I think you could try one more way.
    Create a formula inserting your two formula variables for limits .(FV -  are ready for input ) .
    The formula would return the result as 1 or 0 because it would have boolean condition in it.
    You could then place a condition in the query designer to only show all records where the value of the formula key fig is 1.
    You formula A would look like
    ( KF > FV1) AND (KF < FV2) * 1.
    And in the condition put A EQ 1.
    You could scale the key figures as well and multiply the limits mentioned by the users in FV1 and FV2 if decimals are still not recognized by SAP.(scaling)
    Regards,
    Sunmit.

  • IF...ELSE.. STATEMENT in BEx Query Designer

    Hi,
    Why there is no IF, ELSE function in BEx Query Designer?
    Assuming I need to write the following logic, how can it be accomplished?
    IF (A=0 OR B=0)
        THEN 0
    ELSE IF ( B/A <0)
        THEN '       *'
    ELSE
        B/A * 100
    i.e.
    if A or B is equal to 0, then display the value of 0
    else if B is negative (as A is either 0 or positive), then display the following text: '         *'
    otherwise, display the value of  B/A * 100
    Thanks!

    Hi,
    You can achieve this by creating a new formula.
    You have to use the boolean operations and mathematical functions. But we cannot display *. u have to display some value for that.
    Khaja

  • Char restriction in Bex Query Designer

    Hi Gurus,
    Can anyone explain what is the use of the Characteristic Restriction Area in in the BEx Query designer
    If i set 0CALYEAR =2008 in the Char Restriction and in the column definition i set the one of the column to display data from year 2009. Will it work ?
    Please advice
    Thank you
    BR

    There are two type of characterstic restrcitions in the query. Global and local.
    If you are createing a restrcited key figure or selection and restricting calday then it will be restricted to that particular key figure (and show 2008 data) and in the columns it will show you other years data (i.e. 2009 data).
    But if you are using a global fiter in the filter tab of query designer, then it will be applicable to the whole query.

  • Constant Selection in BEx Query Designer on BI7

    Hi guys
    According to this blog <a href="/people/prakash.darji/blog/2006/09/19/the-hidden-secret-of-constant-selection Selection</a>, we can create constant selection on both Characteristics and Key figures. I understand how to do it with restricted key figures.
    Can anyone give me a step by step guide on how to create constant selection for a Characteristic in BEx Query Designer on BI7. I can't find options for 'constant selection'
    Or is this the same thing when you include or exclude values?
    Message was edited by:
            jimi ogun

    Thanks Krishna
    I am actually using a Multiprovider for my queries but business requirements mean I need to create joins.
    I am trying to avoid Infosets and I believe another way is to use the Constant Selection feature in Query Designer.
    Going back to my previous posting, I know how this is done with a restricted KF but I don't know how when it comes to characteristics.
    Can anyone help?

Maybe you are looking for