Behaviour of key figures when characteristic is removed

Hi guys,
in one query I have built it is a business requirement to use key figures where a summation doesn´t make sense and where it does. A summation doesn´t make sense when for example the current credit limit for the current month is necessary. I have also turn over where the summation makes sense for the current month.
For the key figures where it doesn´t makes sense I am using the function "last value" because the last value of for example June 2011 is needed.
It works only when the characteristic 0CalMonth is present in the query. When 0CalMonth is removed on those key figures a summation is done.
For example:
0Comp_Code 0020 0Customer 01 0CalMonth 05.2011 Credit limit 40000
0Comp_Code 0020 0Customer 01 0CalMonth 06.2011 Credit limit 10000
Result Credit limit 10000
Removing of 0CalMonth
0Comp_Code 0020 0Customer 01 Credit limit 40000
0Comp_Code 0020 0Customer 01 Credit limit 10000
Result Credit limit 50000
My wish is to show the current value of 06.2011 even if 0CalMonth is removed:
0Comp_Code 0020 0Customer 01 Credit limit 40000
0Comp_Code 0020 0Customer 01 Credit limit 10000
Result Credit limit 10000
Is that possible when key figures are used in one query where summation and last value is needed?
Does anybody know this problem and can provide a suggestion for a solution?
Thank you in advance!
Edited by: saplaz on Jun 20, 2011 3:08 PM

Hi
You can create new key figure for this & add it in a cube. In update rule for this key figure you can create the 'IF ELSE' formula as required based on the 2 different key figures. Or you can write routine also for this field.
Thanks & Regards
Sandeep

Similar Messages

  • Do i have to select all the key figures when i design a query off of a cube

    Do i have to select all the key figures when i design a query off of a cube? i have three keyfigures on the top of the three keyfigures it says calculated keyfigure. kind of lost dont know what to do. please let me know.
    Thanks!
    York

    No, you have to select at least one.
    Calculated keyfigure (CKF) means it's a formula of two or more other keyfigures. You can select, right-mouse click, display properties and you see how it is composed.
    Under calculated keyfigures you see all available keyfigures of the infoprovider you build the query on. Just move them by drag-and drop from the left to the right into the columns.
    You can have also restricted keyfigures (RKF). This means a keyfigure is restricted by one or more characterstics and their values.
    Hope you got an idea.
    Regards,
    Juergen

  • Key Fields, Data Fields, Key Figures and Characteristis, Dimesions & Key Fi

    Hi All,
    Can any one please describe more about the below terms and with the Example....
    Like when we identify which one is Key filelds and Data fileds, how to distingush creating new dimesions (Is it based on user reporting) Key figures in Dimestions...
    DSO/ODS:  Key fields, Data Fields
    InfoCube: Dimensions, Key Figures
    Infoobjects: Key figures, Characteritics
    Regards,
    Prem

    Hi,
    Search through SDN for more information on these concepts,
    Re: ods data fields or key fields?
    Re: Key Fields and Data Fields in ODS
    defining Key -field and data fields
    Regards,
    Mani

  • How to convert a key figure to Characteristic in BEx.

    Hello Experts,
    I have a key figure of type Quantity unit Second. Is there are way that I can convert this to a characteristic in BEx so that I can use in restrictions (range).
    Thanks in anticipation.
    Cheers.

    There is no feature in BEx to do that. Closest feature is conditions. You could look at creating a virtual characterisitc in the cube.

  • How to create Basic Key Figure, Key Figure and Characteristic

    Hello Gurus,
    I have copied a standard layout of KP06, named it as a Z- layout and made changes to it, like defined the plan data upload field as Object Currency enabled.
    However I want to add a Z-Field , tax holiday unit as a column to this layout which I am not being able to do. The reason is when I go to Insert a new element from Edit > Element > Insert Element and click on 'Key figure with Characteristics' I do not get the Z-Field as a key figure.
    I want to define the Z-field as a key figure, so that I can add it as an element.
    Would be really nice of you if you can let me know the t-code/menu path to do that.
    Regards.

    Hello Gurus,
    I wanted to share this information with you, hoping this will help you to help me.
    I also tried to create a Key Figure in t-code GS32. In the table I mention --> FAGLFLEXR and hit enter. It says no Key figure has been defined for FAGLFLEXR. Then I put the cursor on the 'Reference Entry'and click on copy. Then give the name of the Key Field I want to create.
    'Create Key Figure' dialog box appears. When I input the 'Row Text' 'Column Text' and click enter, I am getting an error 'The basic key figure  entered for table FAGL is not defined'. I go back and do an F4 on 'Basic Key Figure' field, then I do not get any options.
    I would be highly grateful if you can let me know how to create this 'Basic Key Figure' for table FAGLFLEXR.

  • Using Key figure attribute of a characteristic in a query

    Hi All,
    I have the following scenario. I have defined a key figure attribute for a characteristic Infoobject. I have included this characteristic infoobject in an Infocube. I now want to use the key figure attribute as a regular key figure when I create a report based on the Infocube. Is it possible and if so how is it possible?
    Thanks
    Sundar

    Hi Saundar,
       There's another way.Set the characteristic with key figure attributes as a data target under your info area. Create a MultiProvider and include your Cube and this characteristic. Here you can set the key figure as your MultiProvider key figure.
       Don't forget to take care of the identification of MultiProvider.
       Hope this helps.
    Regards,
    Aaron

  • Report painter- Characteristic can not be maintained with key figures

    We have added new characteristic ZZFIELD1 in CCSS report sructure for reporting and selected it in gen. selection list. While running report painter report, it gives an error that ZZFIELD1 cannot be combined with key figures.
    Any help to figure out what step is missing will be highly appreciated.
    This is a PS report painter report using PS database profile in the selection of parameters for the report
    Thanks

    The fields we have added is ZZFIELD1 ZZFIELD2 in the PRPS table. And the key figures used in the report is;
    AWKG - variance/accrual costs (basic key figure) with characteristic version 0, value type 32, fiscal year and period
    SWKG - cost (basic key figure) with characteristic version 0, value type 4, fiscal year and period.
    SMEG - quantity (basic key figure) with characteristic version 0, value type 4, fiscal year and period.

  • Adding new key figure in Info structure

    Hi all,
    I am in a need to add a new key figure to our info structure here in my company.
    The way I understand it is, it would be best to create a NEW info structure and copy all existing key figure and characteristic and then insert my new key figure into this and rewrite the macro if required.
    So my question is
    1. How to determine which info structure is currently in use in my company? If i check in MC89 - the key figures match what is in Info structure S076. So is it safe to assume that we are using standard S&OP in my company? Is that a correct way to identify the currently used info structure?
    2. For our KMAT, when i open a planned order I see that there in another info structure (not S076) under configuration tab. So can we have diff info structure in use at a same time ?
    Please guide.
    Thanks,

    Hi Nisha,
    1. First of all, How would I determine which info structure is being used at this time in my company?
    I need to know this so that when I am creating my own custom (S500 - S999) info structure, i can copy the existing KFs and Characteristics and add them to my info structure and then Add a specific key figure on top of that.
    Info structures are nothing but tables so in se16 you can check which are Info structures are having update values.
    Yes you can add the specific key figure on existing self defined info structure in MC22 after that you need to generate it.
    2. Can multiple info structure be in 'use' at the same time in any scenario? 
    For self defined info structure are application specific you can not have multiple info structure for same scenario. If you take the example of flexible planning with self defined info structure then you can transfer the demand from only one info structure.
    Regards,
    R.Brahmankar

  • Regarding Non-Cumulated Key figures

    Dear All,
    I wanted to create Multiprovider which includes infocube having Non-cumulative key figures .When I am including that Non-cumulative key figure in the Multiprovider , I am getting an error "Inconsistencies were found when checking MultiProvider ZMULTIPTP"
    detail fo this error is
    Define the characteristics of the validity table for non-cumulatives
    Message no. R7846
    Diagnosis
    The InfoCube contains non-cumulative values. A validity table is created for these non-cumulative values, in which the time interval is stored, for which the non-cumulative values are valid.
    The validity table automatically contains the "most detailed" of the selected time characteristics (if such a one does not exist, it must be defined by the user, meaning transfered into the InfoCube).
    Besides the most detailed time characteristic, additional characteristics for the InfoCube can be included in the validity table:
    Examples of such characteristics are:
    A "plan/actual" indicator, if differing time references exist for plan and actual values (actual values for the current fiscal year, plan values already for the next fiscal year),
    the characteristic "plant", if the non-cumulative values are reported per plant, and it can occur that a plant already exists for plant A for a particular time period, but not yet for plant B.
    Procedure
    Define all additional characteristics that should be contained in the validity table by selecting the characteristics.
    In the example above, the characteristics "plan/actual" and  "plant" must be selected.
    The system automatically generates the validity table according to the definition made. This table is automatically updated when data is loaded.

    Hello,
    See this Validity table for non-cumulatives in a self defined cube
    Thanks
    Chandran

  • BW : Virtual key figures

    Hii  experts  ,
    What are virtual key figures .
    Plz explain .
    Thanks & regards ,
    Madhavi S Bichakal

    Dear Madhavi,
    Virtual Key figure
    virtual key figures are key figures within an InfoProvider that are not filled with data. Instead the key figure value is determined at runtime of the query using custom ABAP coding .
    this keyfigure is not populated with the data by using update rules. but this virtual keyfigures will detemine the value only at the runtime of the query.
    nomally when we store the key figure value in the cube as we do it for a normnal keyfigure it gives us the fact(Fixed truth ) information but by using virtual keyfigures we can show the present truth in the report.
    for example :- let say we have a transaction on 01/01/2007 for material M100 @ price of 100 and on 02/01/2007 the price of material M100 has changed to 200.
    when we store price as a normal keyfigure in the cube it will give fact i.e, 100
    but if we design the price as a virtual keyfigure it will give out present truth as 200.
    Virtual characteristics and Key figures are useful if you want to dynamically pouplate data from the fact table to the field which doesn't have any data in the fact table and also used to build an internal security model before the data gets passed to DATA_PROVIDER.
    You can get more information if you review the documentation for enhancement RSR00002.Go to SMOD type in RSR00002 and select the documentation radiobutton..
    Some ABAB coding samples:
    Virtual Characterstics & Key Figures
    Virtual Characteristic problem
    how to read characteristic variable value into virtual characteristic
    How to implement Virtual Characteristics or Virtual key figures
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5#search=%22SAP%20Customer%20Exit%20virtual%20key%20figure%22
    For more info
    You can go through the following links.
    Virtual Key Figures
    sampel code for virtual key figures
    Virtual Key Figure - ZXRSRU02
    Virtual Keyfigures and Characterisitics
    How to implement Virtual Characteristics or Virtual key figures
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20use%20variable%20time%20references%20in%20currency%20conversion
    Search for the keyword virtual keyfigure in the following link :
    https://www.sdn.sap.com/sdn/developerareas/bi.sdn?page=BW_How_To.htm
    Creating Virtual keyfigures
    you create virtual keyfigure just like create normal keyfigure (RSD2),
    populate not via transformation/transfer/update rules, but when query execution via user exit, take a look
    Virtual Characteristic problem
    virtual key figure
    http://www.bwexpertonline.com/downloads/Nissen.doc
    Also
    How to implement Virtual Characteristics or Virtual key figures
    Check post by Sree Rama Tata 
    Hope it helps
    Regards
    Bala

  • Key figure Explaination in SNP planning books 9ASNP94

    Dear Experts ,
    I am curious to know regarding SNP planning books key figures
    when i am exploring sap standard  Planning book
    9ASNP94
    Data view : SNP94(1)
    I can able to see many KEY FIGURES  Please refer below
    I AM NOT SURE how they are used in planning , i mean  what is clear definition of those key figures and i see some key figures are grey out and some or open for entry
    how to find those detail information
    when i go  to T code SDP84 - define planning book
    i can able to see those descrption and infocubes but not sure how to understand clearly , would be more thankful if some give me a clear explaination of it
    Forecast     TXT                                                                                                                   
    Sales Order     TXT                                                                                                                   
    Distribution Demand (Planned)     TXT                                                                                                                   
    Distribution Demand (Confirmed)     TXT                                                                                                                   
    DistrDemand (TLB-Confirmed)     TXT                                                                                                                   
    Dependent Demand     TXT                                                                                                                   
    Total Demand     TXT                                                                                                                   
    Distribution Receipt (Planned)     TXT                                                                                                                   
    Distribution Receipt (Confirmed)     TXT                                                                                                                   
    Distribution Receipt (TLB-Confirmed)     TXT                                                                                                                   
    In Transit     TXT                                                                                                                   
    Production (Planned)     TXT                                                                                                                   
    Production (Confirmed)     TXT                                                                                                                   
    Manufacture of Co-Products     TXT                                                                                                                   
    Total Receipts     TXT                                                                                                                   
    Stock on Hand     TXT                                                                                                                   
    Supply Shortage     TXT                                                                                                                   
    Safety Stock     TXT                                                                                                                   
    Reorder Point     TXT                                                                                                                   
    Target Days´ Supply     D                                                                                                                   
    Target Stock Level     TXT                                                                                                                   
    Days´ Supply     D                                                                                                                   
    ATD Receipts     TXT                                                                                                                   
    ATD Issues     TXT                                                                                                    
    Many thanks & Regards
    Raj

    Hi
    Please find below the short summary of each key figures.
    Forecast TXT  :- FCST which has been released from APO DP to APO SNP
    Sales Order TXT :- Sales order transferred from ECC to APO via CIF.
    Distribution Demand (Planned) TXT :- Dependent demand coming from other location to this location for same product. Network planning
    Distribution Demand (Confirmed) TXT :- In case deployment , we confirm the Distribution Demand (Planned) will appear her.
    DistrDemand (TLB-Confirmed) TXT :- Mainly used in case of TLB.
    Dependent Demand TXT :- Dependent demand coming from parent product in case of BOM
    Total Demand TXT :- The sum of all above demands is called as Total Demand.
    Distribution Receipt (Planned) TXT :- SNP created Purchase req will appear in this key figure.
    Distribution Receipt (Confirmed) TXT :- In case of deployment Distribution Receipt (Planned) will be get confirmed in the Distribution Receipt (Confirmed) key figure.
    Distribution Receipt (TLB-Confirmed) TXT :- Mainly used in case of TLB.
    In Transit TXT :- In will contain the in transit stock which will transfer for ECC via CIF.
    Production (Planned) TXT :- Planned order will get created via SNP in case of domestic mfg.
    Production (Confirmed) TXT :- In case of SNP deployment Production (Planned) will be get confirmed in the Production (Confirmed)) key figure.
    Total Receipts TXT  :- Total of all the receipt elements as been used.
    Stock on Hand TXT :- Stock has transferred from ECC or R3 via CIF.
    Supply Shortage TXT :- This will be calculated with macro based on total demand and total receipt.
    Safety Stock TXT :- Based on SNP master data, safety stock will get calculated during planning run.
    Reorder Point TXT :- Based on SNP master data, Reorder Point will get calculated during planning run. . There are different methods of calculating safety stock.
    Target Days´ Supply D :- The safety stock defined in number of days appears based on SNP master data in APO.
    Target Stock Level TXT :- Get calculated by macro  based on Target Days´ Supply D and total demand in future.
    ATD Receipts TXT :- Mainly used for Deployment.
    ATD Issues TXT :- Mainly used for Deployment
    If you require any specific information for any key figure please do let me know.
    I hope this will be useful for you.
    Thanks
    Amol

  • Key figure values vary each time the report is run by different users

    Hi All,
    We are facing a unique problem, here it goes :
    Different users are getting different values for the same key figure, when executing the same query  on the same selection conditions.Each time, user executes the report, he is getting varying values for the same key figure.Any idea's how to resolve this issue??
    Thanks in Advance
    Bindu

    Hi Bindu,
    One reason might be due to authorizations as discussed earlier.
    check how frequently is the cube getting refreshed.
    This might also happen that if users are running the data at different times and there is a cube load in between.
    check for this.
    Cheers,
    Srinath.

  • Key Figure in a Input Ready Query

    I have 9 key figures in my input ready query. 5 of them are not input ready and being loaded through a job and 4 are input ready. There is a problem with one key figure, I am able to see data for the key figure when i have START QUERY IN THE CHANGE MODE turned off. But once I turn it on it is not showing any data for the key figure. This is happening only wiht that key figure, all the other key figures are working fine. Could someone help fixing this
    Thanks
    Rashmi.

    Hi,
    I do face this type problem during my BI IP implemenation project. Pls chk thoroughly the following points.
    1.The planning mode of your real-time infocube should be on always on( you need change from load to planning mode, while inputting data).
    2.The START QUERY IN THE CHANGE MODE , should be on.
    3.In the planning tab of key figures, ensure you enable the button : Data can be changed using planning functions.
    4.In the advanced tab of key figures, pls make sure to enable the right button( Master data).
    5.Pls make sure  , the real time infocube, aggregation levels, filters etc, should be refreshed & active,if make any changes in planning model in between, in Aggregation levels,filters etc.
    6. Pls chk the locks( SM12) always, and delete all of them, if any.
    7. Log-off the  Server (BEX/DWWB) and restart the BEX ,then open your Input query, it should work .
    Regards
    CSM Reddy

  • Samples of non-cumulative key figure

    hi experts,
    can u give me samples about:
    1> in what scenario should i use the non-***.Value change to create a non-cumulative key figure?
    Characteristic            : HEADCOUNT
    Aggregation               : (here chose sum?)
    Exception Aggregation:(here chose sumation?)
    Agg.Reference Char   : (here chose a 0calday?)
    N-*** with N-*** Value Change
           Non-***.Value Change: (here what to insert?)
    2> in what scenario should i use the inflow/outflow to create a non-cumulative key figure?
    Characteristic            : HEADCOUNT
    Aggregation               : (here chose sum?)
    Exception Aggregation:(here chose sumation?)
    Agg.Reference Char   : (here chose a 0calday?)
    N-*** with In- and Out-flow
                               Inflow  : (here what to insert?)
                               Outflow: (here what to insert?)

    hI
    1> in what scenario should i use the non-***.Value change to create a non-cumulative key figure?
    Characteristic : HEADCOUNT
    Aggregation :  sum
    Exception Aggregation: sumation
    Agg.Reference Char :  0calday-----* U CAN GIVE 0CALMONTH too to view head count month wise.*
    N-*** with N-*** Value Change
    Non-***.Value Change: * If u are maintaining delta value ie if no. of employees joined is 10 and resigned is 6, then delta value is 10-8=2*
    in this situation use this type.
    2> in what scenario should i use the inflow/outflow to create a non-cumulative key figure?
    Characteristic : HEADCOUNT
    Aggregation : sum
    Exception Aggregation: sumation
    Agg.Reference Char :  0calday
    N-*** with In- and Out-flow
    Inflow : *Inoobject which maintains no of employess joined *
    Outflow: *Inoobject which maintains no of employess resigned. *

  • Restricted key figure

    HI,
    can any body explain me what is the difference between Restricted key Figure and the filter option in BEX reporting.

    Hi Ali,
    If you want restrict particuler key figure based on characteristic value, that you have to go for restricted key figure.
    For example: You have calender year month data from 2005 to 2006.An dyou have also have sales data for the period.
    If you want see the say some feb 2005 to may 2006.
    than you can use restricted key figure to see the values.
    where as Filter will show the values which you have filtered irrespective of key figure (only characteristic value).
    just go throw the below description.
    Hi,
    Restricted key figure:
    Use
    You can restrict the key figures of an InfoProvider for reuse by selecting one or more characteristics. The key figures that are restricted by one or more characteristic selections can be basic key figures, calculated key figures, or key figures that are already restricted.
    Procedure
    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.
    Calculated key figure:
    Use
    In the Query Designer, you use formulas to recalculate the key figures in an InfoProvider so that you can reuse them. Calculated key figures consist of formula definitions containing basic key figures, restricted key figures or precalculated key figures.
    Procedure
    Defining a New Calculated Key Figure
    1. In the InfoProvider screen area, select the Key Figures entry and from the context menu (secondary mouse button click), choose New Calculated Key Figure.
    If a calculated key figure has already been defined for this InfoProvider, you can select the Calculated Key Figures entry and, from the context menu, choose New Calculated Key Figure.
    The system adds the New Calculated Key Figure entry. The properties for the calculated key figure are displayed in the Properties screen area.
    2. Select the New Calculated Key Figure entry and, from the context menu (secondary mouse button), choose Edit.
    The Calculated Key Figure dialog box appears.
    You can also call the Change Calculated Key Figure dialog box from the Properties screen area by choosing the Edit pushbutton.
    Formula:
    Use
    You can recalculate the key figures in a structure using a formula. You can include basic key figures, restricted key figures, and calculated key figures in the formula definition.
    Procedure
    Defining a Formula
    1. If the query does not yet have a key figure structure, create a New Structure in the Rows or Columns of the Query Designer by highlighting the row or column directory using the secondary mouse button and selecting New Structure from the context menu.
    2. If the structure does not yet contain any key figures, use drag and drop to transfer a (basic) key figure of the InfoProvider into the directory of the new structure.
    3. Select the structure directory, and choose New Formula. The New Formula entry is inserted and the properties for the formula are displayed in the Properties screen area.
    4. Select the New Formula entry and, from the context menu (secondary mouse button), choose Edit. The Change Formula dialog box appears.
    You can also call the Change Formula dialog box from the Properties screen area by choosing the Edit pushbutton.
    Regards,
    Shailaja

Maybe you are looking for