Create restricted key figure with navigation attributes

Hi,
I need to create a restricted key figure using attributes of 0BP_COMPET.
On my report is :
Competitors (0BP_COMPET)
Quantity
Active Competitors = Expiry Date of Minority Status greater than or equal to system date
Inactive Competitors = Expiry Date of Minority Status less than to system date
Note : Expiry Date of Minority Status is a navigation attribute of 0BP_COMPET and system date is generate by variable 0DAT - Current Calendar Day (SAP Exit).
How can i apply the formula?
Thanks

Here's a good How to Document that explains what you are trying to do ....
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/72f4a790-0201-0010-5b89-a42a32223ffc
It is called How to.... Calculate with Attributes.
Brian

Similar Messages

  • Creating Restricted Key Figure

    Hello all,
                  When creating a Restricted Key figure do we need to drag and drop both the key figure and also the characteristic?

    If you are creating a Restricted key figure by right clicking on the 'Key figures' section in the Infoprovider panel to the left in Query designer then you need to explicitly drag both key figure and then all the characteristics on which you want to restrict this keyfigure.
    On the other hand if you are restricting a existing key figure in the Columns section,  then you just need to drag the characteristics.
    Step by step procedure at
    http://help.sap.com/saphelp_nw2004s/helpdata/en/61/d0b143aa26b849b4e79a859ea1d7d1/frameset.htm
    Regards, Uday
    Assign points for helpful answers and get one point for yourself

  • Restricted Key Figure with interval variable

    Hi,
    I've a restricted key figure for KF 0AMOUNT restricted by 0FISCPER. There is a variable restriction on 0FISCPER which determines the period interval in customer exit.
    e.g. 001.2008 to 009.2008
    The problem is, in query this RKF is returning only the values for period 009.2008. It should return the total for all the periods.
    Can you tell me what could be missing?
    Regards,
    Amit

    Hi Amit,
    please check the cutomer exit, as the range might not be properly defined in the exit.
    Firstly check if the variable is defined as range or single value, and if defined as range please check the below mentioned lines in the exit:
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    as they stand for:
    SIGN     (I)ncluding [ ] or (E)xcluding ] [
    OPT     Operators: EQ =, BT [ ], LE <=, LT <, GE >=, GT >, CP, and so on.
    hope it helps
    Regards,
    Umesh

  • Restricted key figure with operater symbol depending on characteristic v

    We have a operating income report that shows actual, forecast and budget amounts, the variance and %variance in its columns and revenue and expense items (Hierarchy nodes, expandable) in its rows.
    The %variance key figure for revenue and expenses is calculated the same way, except if it's a expense node it has to be multiplied by -1. We would like to show that key figure in one column only. What would be the easiest way to achieve that?
    Thanks a lot,
    Fabian

    How do you identify the account as revenue or expense...if my understanding of your issue is correct....you must be having a GL Hierarchy (example) in the rows and you are tring to show the actual, plan by value type. To overcome with your issue, the best and definite solution that works (we did have the same approach) is to reverse the sign at the hierarchy level in rsh1 itself than worrying about it in the query.

  • Error when creating Restricted key figure

    Hi there,
    I created Restricted keyfig with Time diff and ABC as the  details of the selection
    If time diff is less than X  then it should display the values of a keyfigure(ABC),same time if the time diff is greater than x it should display the value of ABC(keyfig)
    Note :Here Time diff is of type CHAR.
    I've created a charecteristic variable on Time diff,I've mention the Value range as LESS THAN on the varible,and I dragged it to coloumns, however when I check the query its throwing an error as below
    Incorrect FRANGE row in FORM/DIM/FAC for info object Time diff.
    Kinly help.

    Good day,
    Please check if SAP Note 1085429 helps.
    Try opening the query in Query Designer and then re-saving it.
    Hope this helps!
    Regards,
    Karen

  • "new selection", restricted key figure and basic key figure

    Hi,
    I have a test report and i have a basic keyfigure "ZRevenue" and "restricted key figure"(its defined over "ZRevenue") and
    a "new selection"(its defined over "ZRevenue").
    Now that i have "material number" and "material color" and "request id" in the rows. ("Material color" is a navigational attribute of material number).
    In the column level i have a basic key figure  "ZRevenue" and "restricted key figure"(its defined over "ZRevenue")  and
    a "new selection"(its defined over "ZRevenue") .
    In a "restricted key figure" or "new selection", we can include a basic key figure or new formula or calculated key figure or an already restricted key figure into it, then we restrict it, with one or more characteristic values. In the report output we get KF values only for those characteristic values, with which it has been restricted. Please correct me if my understanding is wrong.
    Initially i restricted the "new selection" (with material number 1 to 3) and "restricted key figure" (with material number 1 to 4).
    In the cube i have material numbers 1 to 11. Now all the values were displayed from 1 to 11, but for the
    "new selection" (with material number 1 to 3) and "restricted key figure" (with material number 1 to 4) i got values only for 1 to 3 and values for 1 to 4 respectively. This is as expected and is working fine.
    Now i tried to restrict the basic keyfigure  "ZRevenue" with material number 1, the output was only until the material number 4 (this is the greatest value of the material number defined over the "restricted key figure").
    Then i tried to restrict the "new selection" (with material number 1 to 9) , then the output was from 1 to 9 material numbers.
    If i remove the restriction over the basic keyfigure  "ZRevenue" , then i get all the material numbers from 1 to 11, for "new selection" i get values for the material number 1 to 9 and for "restricted key figure" i get values for the material numbers 1 to 4.
    Can some one explain me why this behavior?
    Edited by: sapbi enthusiastic on Jan 31, 2012 11:48 AM

    Hi,
    This is where set theory comes in handy
    So what you have is a basic KF (BKF), a selection (SEL), and an RKF.
    When producing an output, BEx seems to be looking for the union of all the restrictions you place on these. So when your BKF is not restricted, the union comes out to everything in the underlying DSO. When you restrict the BKF for material number 1, this is how the restrictions might have been processed internally
    BKF: Restriction on material 1
    RKF: Restriction on material 1-4
    SEL: Restriction on 1-3
    Union of these three: 1-4
    When you remove the BKF restriction and make SEL restricted to 9, this is how it plays out
    BKF: NO Restriction on material
    SEL: Restriction on material 1-9
    RKF: Restriction on 1-4
    Union of these three: everything.
    As the union ends up giving you everything, you get 11 records. However, as SEL is restricted for 1-9, the SEL will have values for the materials 1-9. Likewise for RKF, you'll get values only for materials 1-4. Hope this clears things up!
    Regards,
    Suhas

  • Restricted key figure for more than one key figure

    hi all
    i want to restrict almost three keyfigures based on the  same posting period. So instead of creating restricted key figures for each key figures can i create a RKF for all the three key figures based on the same posting period.
    Is there any way i can do that.
    thanks and regards
    vijaykumar

    hello Chandra,
    if those are the only 3 keyfigures in the query, you can have posting period restricted to the required period in the filter area( if u dont want to the period to be displayed) or else you can restrict the period in the rows/free chars area too.
    you can restrict the posting period using variable with period value as a user input value.
    If there are other key figures too, then you need to create 3 diffrent restricted key figures restricted for this period.
    thanks,

  • Creation of restricted key figure

    hi experts,
    when i will create restricted key figure and calculated key figure for reporting.any one suggest that.
    regards,
    balu.

    Hi,
    Restricted Key fig:
    By using restricted key fig you can restrict only one key fig column based on the value of char.  Assume that you have a query with key figs Price, Qty and Revenue.If u  restrict Revenue based on chars i.e either time or customer Id or Material Id etc only that revenue key fig coulumn will be effected.
    Calculate Key Fig:
    Calculated Key fig is nothing but creation of new key fig using existing key figures. Assume that you have a query with key figs Price and  Qty only. If you want to find Revenue as 
    Revenue = Price * Qty, go for Calculated Key figure.
    Assign points if  it helps u.
    Cheers....
    Sk Babu

  • Restricted Key Figure (Maximum Selection)

    HI ,
    I need to populate a field  to compute by order group.
    I have created a restricted key figure with Value and Order ( Constant Selection).
    Apart from Order, i need to drag drop many other characteristic fields from BEX-Row into this RKF and define it as Constant Selection. This will help me to compute the value by order group.
    Max charateristic that i can drag drop within a RKF is abt 15.
    Is there a limit to this?
    Appreciate input from anyone who is familiar with this.
    Thank you.
    Regards,
    Maili

    HI Maili,
    I dont think there is restriction on the number of Char that can be included for restriction while creating a Restricted KF ,
    Please do let know if there is any problem
    Regards,
    Sathya

  • Restricted Key Figure base on another Key Figure

    Hi,
    I am now working on a Sales Analysis report.
    Now, I need to create a Key Figure with the following logic.
    If the Sales Amount = 0.
      value = 0.
    else.
      value = Sales Quantity.
    endif.
    How can I make it on the report level? or I can only make it on the cube level?
    Thanks in advance.
    Best Regards,
    Chris

    Chris,
        Create a formula and use the following definition.
    (Sales Amount <> 0)*'Sales Quantity'
    This should do the trick.
    Hope this helps...

  • Error CL_RSD_MULTIPROV  in Query Designer while restricting Key Figures

    Hello,
    I am trying to create Query on Multiprovider in Production envirnoment.
    I drag  key figure in row and try to restrict it to Product Hierarchies as I don't want to create restricted  Key figure.
    While Saving Query I am getting following  Error Massage.
    'System error in Program CL_RSD_MULTIPROV and Form GET_PART_IOBJNM_CMP-01'.
    When I save Query without giving any restriction in Key Figure . I could save it.
    Please suggest in above error.
    Thanks and Regards,

    Hi,
    Check the note 1090490.
    hope this helps,
    Regards,
    Rama Murthy.

  • Creating a restricted key figure in BI7 reporting

    Hi
    I am creating a restricted key figure globally in BI7 query designer, whenever I try to restrict Calender Year /Month, an error message pops up showing:
    Runtime error '457' (This key is already associated with an element of this collection), when I click ok another message opens
    Runtime error '429' (Active X component can't create object)
    and finally Microsoft VB runtime error
    Automation (The callee(servernot server application) is not applicable and disappeared; all connections are invalid. The call may have executed.
    I am working in BI 7, SAP gui 640 what could be the problem in BI 7???because the same thing is working in BI 3.5 environment.
    Regards
    Indraneel

    Hi Indraneel,
    Try to look for the patch level you are using for SAP GUI, it should be level 14. If lesser than this apply and check. And always disable VB macros.
    Assign points if helps.
    -Harshal

  • How to use Restricted or Calculated Key figure with Characteristics?

    Hi,
    Query has characteristics 'Indicator' which has values  'X' and 'Y' depending this value, the Key figure Quantity(which is always +ve) has to be shown on the report either as -ve or +ve.
    Do I use Restricted Key figure if so, how? Or can I manage with a Calculated Key figure?
    Thanks,
    Kamala

    Hi Kamala,
    You can create 2 RFKs each in which you are restricting the KF with char value X and Y. For the one that needs to be -ve, create a CKF with this RKF and multiply it by -1 in the formula. Then you can create a new CKF that will add this CKF and the other RKF.
    Hope this helps...

  • Steps to create a Restricted Key Figure

    Hi,
    I am trying to create a  BEx Query and want to create a Restricted Key Figure.
    I am using BEx 7.x.
    Please help me with steps to create a Restricted Key FIgure.
    Thnaks and Regards,
    Shreyas Shah

    Hi Shreyas,
    Please find the step by step to create a restricted key figures.
    Procedure for Defining a new restricted key figure:
    1. In the InfoProvider screen area, select the Key Figures entry and choose New Restricted Key Figure from the context menu (secondary mouse button).
    If a restricted key figure has already been defined for this InfoProvider, you can also select the Restricted Key Figures entry and then choose New Restricted Key Figure from the context menu.
    The entry New Restricted Key Figure is inserted and the properties for the restricted key figure are displayed in the Properties screen area.
    2. Select the New Restricted Key Figure entry and choose Edit from the context menu (secondary mouse button).
    The Change Restricted Key Figure dialog box appears.
    You can also call the Change Restricted Key Figure dialog box from the Properties screen area by choosing the Edit pushbutton.
    You make the basic settings on the General tab page.
    The text field, in which you can enter a description of the restricted key figure, is found in the upper part of the screen.
    You can use text variables in the description (see Using Text Variables).
    Next to that, you can enter a technical name in the Technical Name field.
    Underneath the text field, to the left of the Detail View area, the directory of all objects available in the InfoProvider is displayed. The empty field for defining the restricted key figure (Details of the Selection) is on the right-hand side of the screen.
    3. Using drag and drop, choose a key figure from the InfoProvider and restrict it by selecting one or more characteristic values. See Restricting Characteristics.
    You can also use variables instead of characteristic values. However, note that you cannot use the following variable types in restricted key figures for technical reasons:
    Variables with the process type Replacement with Query (see also Replacement Path: Replacement with Querys)
    Variables that represent a precalculated value set (see also Details)
    You can use these variable types to restrict characteristics in the rows, columns, or in the filter.
    4. Make any necessary settings for the properties of the restricted key figure on the other tab pages. See Selection/Formula Propertiess.
    5. Choose OK. The new restricted key figure is defined for the InfoProvider.
    Let me know if this helps.
    Thanks
    Sachin

  • Problem with Restricted Key figure!

    Hello BW Gurus,
    Currently I am having problem with a report that is using a restricted key figure in the formula. When I filter down this restricted key figure, it is working fine but when I use this restricted key figure in formula that calculate greater than value, its giving me wrong figure and when I calculate less then value, its giving me zero total result. I am drilling down this restricted KF on a hierarchy. Did I miss any setting or do I need to do anything extra for this?
    Please let me know and thanks in Advance,
    Vaghar.

    In that case create two calculated keyfigures CKF1 and CKF2 such that
    CKF1 = ((Count >100)*1 + 0)
    CKF2 = (Count<100)*1 + 0)
    and then define Greater Count as a formula such that
    Greater Count = <b><i>Count</i></b> (CKF1)
    and similarly Lesser Count = <b><i>Count</i></b> (CKF2).
    where <b><i>Count</i></b> is a data function which gives a value of 1 when the operand <>0 and returns a 0 when the operand = 0.
          Hope this helps.

Maybe you are looking for

  • HP DESKJET 2540 Printing Problem

    21-2015 08:06 AM Good evening everyone, I'm a professional that working in the computer industry , but alas this time are messed up with my work . The printer in question is a product that I give regularly , I will have installed a dozen , this today

  • Table for stoing the inspection type of a material

    Hi, I want to know is there any table which stores the value Inspection Type of a material such as  03,zwork maintained in the qualitty view of it. plzz provide me guidelines to solve this problem.

  • Swap Image + Multiple Frames

    New to FW ... figured out how to take a PS document and slice it up and create simple rollovers (sliced image > created a second frame for the rollover items/layers) ... now I need to create a basic image swap (roll over thumbnail and larger pic appe

  • Initializing List with Strings

    Anyone ever tried to one-liner this? I monkeyed around with it for awhile and gave up. The intent (just an example): private String[] dayStrings = {"Sunday","Monday","Tuesday","Wednesday"}; private List days = Arrays.asList(dayStrings);I tried this:

  • CS5 Saving Issues

    Hi, We are currently working on a large project involving our clients inputting changes directly (hence the use of InCopy) and our production artists going into the InDesign file and cleaning it up after content is input. We have had several cases no