Key figures enhancement in 0imfa_1 from 0co_om_opa_1

Hi all,
we need to enhance 0imfa_1 with two new key figures. They get the value from 0fiscper according to some rules on 0vtype. Fill is from 0co_om_opa_1.
We insert the code in update rules but it doesn't work, meaning that we have duplicate record for an order:
1. one record has 0amount and 0prog_pos just filled with right values, but no value for two new key figures;
2. second record has values for new key figures, but no values for 0amount and 0prog_pos.
our target would be to have two new key figures, 0amount and 0prog_pos all filled for the same record.
So we try to modify standard code in 0amount rule, but no good result came on:
we try to fill two new key figures in result_table, but at the end no values were on the cube;
have you some idea to fill these two key figures as said?
thanks
Laura

Did anyone face the problem with standard code in updating 0imfa_1 from 0co_om_opa_1, in which it seems to fill field to field using structure g and g_s_kb and then table g_t_kb?
Is it possibile to modify code as to fill new key figures?

Similar Messages

  • Remove scaling factor from key figure - still shows in Report !

    Hi all,
    A key figure we use somehow had its scaling factor set to 100.
    This was accidental, so I have changed the key figure to have no scaling factor and then activated it.
    The query that uses this key figure still sees it as having the 100 scaling factor however.  While this is the case, I cannot set it to no scaling factor as needed.
    I have tried adding this key figure to a new report and it still comes in with the incorrect scaling factor setting.
    So far I have tried,
    Changed the scaling factor on the key figure to none and activated.
    Regenerated the query through rsrt
    Removing the key figure from the query and then readding as well as adding the key figure to a entirely new report. Incorrect scaling setting still comes through in both cases.
    Checked table RSDIKYFPRO and RSDKYF - both of which have no scaling as their settings for this key figure.
    I know that I could created a restricted key figure in the query from the original and set the scaling factor to none to get around the problem, however I would like the query to see the settings in the key figure.
    Can anyone suggest how I can resolve this ?
    Many thanks,
    Blair

    Was there ever a solution to this problem? I, too, have noticed the same issue. The key figure properties (in my case, # of decimal places) is not inherited in the query, and the only solution was to change the kf properties directly in the query, which I shouldn't have to do. The selection of decimal places "from key figure (0)" does not work; I have to override this and select "0". Anyone seen any notes or anything to fix this?
    Thanks.
    Rachel

  • Short Dump When Installing Key Figure Catalog from BI Content

    Hi Friends,
                    I get a Short dump when trying to Install a Key Figure Catalog (in Purchasing) from the BI content. This is what the Error Says ,
    " You Attempted to Use a "NULL" object reference (Points to nothing) access a component (variable : "  "). An Object reference must point to an object (an instance of class ) before it can be used to access components.
    Any input will be greatly appreciated,

    Hi Michal,
    this bug hits only patch level 201 of the DBSL. Please update the DBSl.
    Regarding the ABAP code I do not believe that the hint helps in this case but it should not cause any problems either. If this hint is applied more PREPARE calls are neccessary since before every execution a new statement text is assembled.
    The advantage of SUBSTITUTE_VALUES hints is that the database optimizer get more information through the statement text. The downside is that a new statement is generated every time. E.g. you won't find the statement as a top scorer in a SQL cache analysis if the access plan is still bad.
    Regards
                   Frank

  • Key figure display in planning book with respect to Time bucket profile

    Hi,
    I am loading a key figure to planning area from the info cube for the current month. When I review the key figure in planning book with monthly time bucket profile it shows 85 for the current month. In the same planning book with weekly bucket profile, it shows 55 from the current week and future weeks and the remaining 30 goes into the past weeks of the current month.
    How to make the total quantity 85 to show in the current and future weeks only.
    thanks and regards
    Murugesan

    Hi Murugesan,
    Within the Planning Area, the data is stored at the lowest level granularity that you maintain in storage bucket profile. Then during display, system will decide what data to show depending on what kind of time bucket profile you use in the planning view, and the time based disaggregation that you maintain for Key Figure.
    In this below case, what time characteristic do you have in cube? Is it date, week or month?
    If it's date, check how much KF data is maintained on the dates which belong to week which has days both in this month/last month e.g. if I talk about Dec 2011, how much data is stored 1,2,3 & 4 th of Dec, 2011.
    This data would appear in Dec in monthly view, but in week, it would appear in the week starting 28th November.
    If data is maintained in cube in weeks, then you need to calculate how time based disaggregation would show it to you in months.
    If it's months, then you would need to find out how much data would go to the days in the past week of the month.
    The time based disaggregation may be causing you some issues, but in that case, I would not expect 30 out of 85 to go in the past week, unless you have data in cube in days.
    Data shown in weekly view for week starting 28th Nov should ideally be a small proportion of 85, unless you are using a time stream/fiscal year variant, due to which most of December is in holidays.  The only other exception I can think of is that you have data in teh days mentioned above.
    It would be best to help the business understand this disaggregation logic, rather than thinking of manipulating the data to shift to a later week.
    If this logic doesn't explain your situation, then please provide the date/week/month at which you have data in cube, and what quantity.
    Thanks - Pawan

  • Key figure routine in update rules

    I have a Cube (X) that gets data from a ODS (A) but one of the key figures gets the data from another ODS (B) with a routine in update rules and I want to change it to ODS (C)
    A (All objects except one) - X (All objects except one)
    B (0DEB_CRE_LC) - X (0DEB_CRE_LC)
    select sum( DEB_CRE_LC )
             into RESULT
             from /BIC/AZDOC_SUB00
             where OI_EBELN EQ COMM_STRUCTURE-OI_EBELN
              and OI_EBELP EQ COMM_STRUCTURE-OI_EBELP
              and /BIC/ZCLASC_ID EQ COMM_STRUCTURE-/BIC/ZCLASC_ID
              and PSTNG_DATE LE l_datafim
              and PSTNG_DATE GE l_datainicio
              and /BIC/ZTPOPER = '9'.
    My problem is that my ODS (C) doesn't have 0DEB_CRE_LC and the values are divided in 2 key figures (D) & (E), I want to sum both key figures into 0DEB_CRE_LC of the cube.
    I tried a tip from a friend but didn't work, I'm lost (newbie), and apreciated some tips, it doesn't seem to sum anything
    data: result1 type /BIC/AZPUR_S0100-/BIC/ZSLIQ_VAL,
          result2 type /BIC/AZPUR_S0100-/BIC/ZSIVA_VAL.
    select sum( /BIC/ZSLIQ_VAL ) sum( /BIC/ZSIVA_VAL )
             into (RESULT1, RESULT2)
              from /BIC/AZPUR_S0100
               where OI_EBELN EQ COMM_STRUCTURE-OI_EBELN
                and OI_EBELP EQ COMM_STRUCTURE-OI_EBELP
                and /BIC/ZCLASC_ID EQ COMM_STRUCTURE-/BIC/ZCLASC_ID
                and PSTNG_DATE LE l_datafim
                and PSTNG_DATE GE l_datainicio.
      write result1.
      write result2.
    Many thankx

    data: result1 type /BIC/AZPUR_S0100-/BIC/ZSLIQ_VAL,
    result2 type /BIC/AZPUR_S0100-/BIC/ZSIVA_VAL.
    select sum( /BIC/ZSLIQ_VAL ) sum( /BIC/ZSIVA_VAL )
    into (RESULT1, RESULT2)
    from /BIC/AZPUR_S0100
    where OI_EBELN EQ COMM_STRUCTURE-OI_EBELN
    and OI_EBELP EQ COMM_STRUCTURE-OI_EBELP
    and /BIC/ZCLASC_ID EQ COMM_STRUCTURE-/BIC/ZCLASC_ID
    and PSTNG_DATE LE l_datafim
    and PSTNG_DATE GE l_datainicio.
    write result1.
    write result2.
    <u>RESULT = result1 + result2</u>
    I still have to test it, first i was getting syntax errors because I didn't put spaces right sorry

  • Assigning a Key Figure in a Multi provider

    In a multi provider if I have a key figure which is assigned from more than one part providers.  What does this exactly mean?  For example:
    Let's say I have a key figure Number of Sales which is present in two part providers and assigned from both the providers, if I build a query say Country | Number of Sales what happens with the assignment
    Thanks

    Good point.
    My scenario is as follows. 
    1. We are building a query which uses a base query as a template. 
    2. Our query is built off a seperate multiprovider which replaces one of the part cubes with a cube that has consolidated set of data from SAP and Non SAP systems
    3. In the original multi provider one of the key figures is assigned from two part providers, one of which is that which we are replacing - this key figure is used extensively in the definition of other query level key figures
    4. The key figure does not exist in the consolidated cube but we have a key figure that we will use instead of.
    5. The original query does not have info provider restrictions at the query or local key figure levels
    I believe I can sum the two figures when I define the Key figures in the new query but just needed clarity on if this is a solution hence wanted to confirm the values are being summed up assuming no restrictions etc
    Sorry guys,
    before I close this message I just wanted to confirm the following, do not want to save/activate the change on the system
    I have carried out a check after I removed the assignment from one of the part providers it seems that this is possible - this is correct.  If this is the case it seems that the business requirement is to sum the values from the two part providers
    I
    Edited by: Niten Shah on Jul 9, 2008 6:44 PM

  • Key Figure can't find mapping in transfer rules

    Hi,
    I am trying to validate some data for datasource 2LIS_12_VCITM. I went through the transfer structure and it has the mapping of LFIMG Actual quantity delivered (in sales units) to 0DLV_QTY. However, when I tried to validate the key figure data, this field LFIMG supposedly has the quantity value for the key figure InfoObject name other than 0DLV_QTY. Why is this? I can't seem to do a 1-to-1 mapping of the key figures to the fields from the R3 table.
    Thanks,
    "<i>To succeed in the world it is not enough to be stupid, you must also be well-mannered</i>." ~ Voltaire, French author, humanist, rationalist, & satirist (1694 - 1778)
    "<i>Words -- so innocent and powerless as they are, as standing in a dictionary, how potent for good and evil they become in the hands of one who knows how to combine them</i>." ~ Nathaniel Hawthorne (1804 - 1864)
    "<i>Vulgarity is, in reality, nothing but a modern, chic, pert descendant of the goddess Dullness.</i>" ~ Edith Sitwell (1887 - 1964)

    Hi,
    Ucan goto Busines content level... .  u can install that relevant.. quantity fileds...
    in quantity fields.. so many fileds in Business content....
    regards,
    raj

  • Cumulative key figure and non cumulative key figure

    Hi BW Expertz
    Could any one give me the clarification about cumulative and non cumulative key figures .Why we go for cumulative key figure and non cumulative key figure.If any docs could u just mail to the following [email protected]
    Thanx In advance
    Best regards
    sankar prasad

    Cumulative values are those key figures (KF) that are cumulated using all characteristics, thus also using time.
    Ex: Sales revenue, Quantity....
    Non-cumulative values are those key figures that are measured in relation to a period in time; they cannot be meaningfully cumulated over time. Non-cumulative values are summarized over time using so called exception aggregation.
    Ex: Number of employees, Inventory, Stock prices, Account balance,.....
    AGGREGATION TAB
    Non cumulatives are evaluated by non-cummulative values. Non-cummulative values are special key figures that are different from other key figures (cummulative values) in data transfers and saving as well as in aggregational behaviour. These are measured in relation to a period in time; that is to say, they cannot be meaningfully cumulated over time. Non-cumulative value are summaraized over-time using exception aggregation.
    Non-cumulative values such as 'number of employess' are cumulated using characteristics such as 'cost center'. It does not make any sense, however, to cumulate the number of employees using different periods. The result at the end of any particular period would be the sum total of number of employees for each posting during the period. This would of course be wrong.
    Instead, the aggregation of the KF can be defined as exception aggregation wherein an additional references characteristics is utilized to tell BW which value to use during the period, in this case, 0CALMONTH is used, in the above example, to indicate that only the last value of 0HEADCOUNT, updated by costcenter, is to be taken for any calender year and month.
    Cummulative vs Non-Cumulatives
    The purpose of non-cumulatives is to optimize the data transfer in BW, the data retention and the database access. The data transfer from OLTP to BW is minimized and only the meaningful data is saved and processed.
    It is recommended that you use non-cumulative values for areas that dont change frequently such as warehouse stock or number of employees.
    Non-cumulatives are modeled in BW using a non-cumulative value with the fields belonging to it for storing the non-cumulative or for inflows or outflows.
    Non-cumulative values are stored with special KF that differ in terms of data transfers and aggregational behaviour.
    Features of NON-Cumulative Values Transfering and Saving Data:
    - NC values are mapped uisng one KF for NC changes or two KF for inflows and outflows.
    -NC are transferred in an initialization run and the change runs that follow (initialization can also be omitted here)
    - A non-cumulative value always has a time-related exception aggegation.
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a62dee07211d2acb80000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/82/f2dc37f0f12313e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/82/f2dc37f0f12313e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/d2/e0173f5ff48443e10000000a114084/content.htm
    with Example
    Re: Non-Cumulative keyfigure example
    Re: Types of non-cumulative keyfigures
    /community [original link is broken]
    /community [original link is broken]?forumID=131&threadID=29557&messageID=273049
    /community [original link is broken]?forumID=131&threadID=111914&messageID=1248243
    ****Assign Points If Useful*********

  • Can't change a Restricted Key Figure technical name in QD BEx 7.1.0

    A few days ago I created a new Restricted Key Figure in Query Designer and it was autopopulated with a default technical name.  So I immediately changed it to 'ZRNPVORDINTFACTPPP_FY'.
    Now, today, I realized that the 'F' in the technical name is a typographical error and I need to remove it.  I clicked the Restricted Key Figure on the left from within the list and clicked the Change/Display pencil icon in the properties window, but the Technical Name field is still greyed out.  Also tried right clicking and selecting Edit, but same problem.
    Would removing all instances of where the figure is used in the query and other queries allow me to change it?  Could it be a user rights issue?
    As always, thanks for the help!

    Hi,
    After creating a RKF , you cannot change its technical name.
    If the RKF has a lot of restrictions and creation of another similar RKF is a big process ,
    you can create a copy of the same through transaction RSZC.
    In RSZC , give the source and target cube name as the name of the multiprovider on which your query is built,
    select restricted keyfigure ,click on execute ,  in the list which comes after execute find your KF 'ZRNPVORDINTFACTPPP_FY'
    and click on transfer/copy option available.Change the technical name as you want and then click on execute. A similar keyfigure with the desired technical name will be created in query designer ,global keyfigures .
    Replace the same with your Old keyfigure in report.

  • InfoSet - Calculated Key figures in query

    Hi
    I created an InfoSet  from two cubes, and a query to report from the InfoSet , I noticed that the query displays the keyfigures twice, e.g., I have gross sales in both cubes so it appears on the left side of query designer twice. When I created the InfoSet  I turned off these key figures but they still appear on the left side of the query and doubled.
    Any suggestion?

    This might be b'coz you didn't select which infoprovider the Key figures should be picked from.
    Hence it's select both the infoprovider and displaying the values twice.
    Regards,
    Hima

  • Cockpit report-mapping of key figures in WAD

    Hi,
    I'm working on a cockpit report wich consist of several different key figures combined together and shown for various months + some planning values. The key figures come from a multitude of infoproviders (and applications). So you would have a plan value, a value month -1, a value month -2 and a value current month on the X-axis and than the different kind of key figures (for instance: financial result, costs, number of employees, absence % etc.) on the Y-axis. Hereby the number of digits can differ per  keyfigure, as well as the scaling factor, and some key figures require a %-sign.
    On top of this there are several key figures that combine data from different providers (let's say: financial result divided by number of technical installations).
    Now this can never be done in a query. Even the just the financial block would require key figures on both X- and Y-axis wich is not possible (and wouldn't make any sense in a logical way), not even mentioning the key figures that combine data from totally different applications. Now what I'm looking for is a way to map the query results to create the required report. If we'd only use the analyzer it wouldn't be a problem since I could put the queries on one tab and then use Excel functionality to map them to the fields and to be able to decide per cell how it should be formatted (with regard to number of digits for instance, wich can differ per cell). Since no navigation other than a selection on year/month is required this would do.
    The only problem is that the client wishes to use web fucntionality. So now I'm looking for a way to do the same in the WAD. However I can't find a substitute in the WAD for the Excel functionality that is required to link query results to cells in the final report, nor to format each cell individually. My only solution (wich only solves the first problem) is one that constitutes of a large number of APD's that are used to get the query results into a DSO wich uses one key figure for al numerical info and some characteristics for the specification of the actual key figure that it represents.
    First of all this solution is rather cumbersome and second, it doesn't solve my second problem (because the actual report consists of only one key figure for wich I can set the number of digits only for the entire column.
    Big question is, is there anybody who has a more satisfying solution tho this problem. I'd think that there are a lot more companies that use reports that consist of key figures from different applications combined together in the way I described. However I could'nt find much on the inetrnet with concern to this matter.
    By the way, I'm sorry for the poor lay out of this post, but no matter what I try, this forum ignores the use of the enter key and spaces.
    Edited by: Jesse Brock on Sep 24, 2009 11:29 AM

    Hi Priya,
    Most likely, you have too many figures to display. You need to hide or add some drilldowns (or KFs in BEx) just to leave what you want to show in graph. Then select an area in Excel and use a standard Excel functionality to show graphs.
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov

  • Can we filter the Key figure ( by not using Bex Conditions)

    Hello Friends,
    I have a requirement in which I am passing the result of one query "A" to another query "B" ( using replacement path). Also there is a requirement to filter the keyfigure of the query "A"
    Problems I face:
    1) If I use Conditions, it does'nt filter the actual rows from the info cube, but just the query result
    2) Hence when I pass the query result of "A" to query "B", it sends more records which I dont need.
    Question:
    Hence is it possible to filter the keyfigure values at the database level?
    Thanks... Hope some one will guide me.....................

    Hi,
    I've had a similar problem in the past, not specifically for a replacement path but because the number of rows returned by the query was too great to use conditions. In the end what I did was create a characteristic char version of the key figure that was loaded from the same source as the key figure. You then effectively have a key figure that can be filtered in the same way as a normal characteristic.
    Hope this helps.
    Gareth

  • Restricted Key figure in Qery

    I have a critical problem - many points for a solution :). In my cube (Purchasing data - 0PUR_C01) I have several invoices that correspond to a material. Each invoice has an invoice date and an invoice amount;
    Cube contents:
    Material A - 2004-01-14 - 1000 USD
    Material A - 2004-03-05 - 1500 USD
    Material A - 2004-12-20 - 1700 USD
    Material B - 2004-03-15 - 100 USD
    Material B - 2004-04-17 - 200 USD
    Material B - 2004-11-30 - 300 USD
    Now, in the report I need to define a restricted (or calculated, or anything) key figure containing the amount from the latest invoice for each material. In the examples above the result would be:
    Material A - 1700 USD
    Material B - 300 USD
    The restricted key figure is later to be used as a base in price development calculations.
    How can I solve this, if it’s not possible to solve in the report I’m ready to restructure the flow.

    Hi Daniel,
    You can achieve it with the Aggregation settings of the Key Figure as follows:
    Aggregation: SUM
    Exception aggregation: Last value
    Agg. referen. char 0CALDAY or whatever temporary characteristic you use in the cube.
    You must consider that this setting will affect the KPI aggregation procedure and probably this won't be the expected result in the other queries so you better create a copy of the KPI with this settings and map it with initial KPI in the Update rules of the cube.
    Hope it helps,
    Andreu

  • ABAP-Coding for EVERY Key figure in infocube 0RT_C02

    Hello gurus;
          Does anybody know which is the reason for Abap-coding for every key figure in infocube 0rt_c02 from InfoSource 2lis_13_vditm?
    Thanks in advanced!
    Csr

    Hi,
    this is done like this in the business content because the extractor is providing the data with a process key; this process key is then translated into meaningfull business objects (key figures);
    fro instance ProcessKey 202 in application SD is reflecting Credit memos:
    * Credit Memo
      IF COMM_STRUCTURE-PROCESSKEY = '202'
        AND COMM_STRUCTURE-BWAPPLNM EQ 'SD'.
    * currency convert
        IF COMM_STRUCTURE-COST <> 0.       "Value in document UNIT
          PERFORM LOC_CURR_CONVERT
            USING    COMM_STRUCTURE-COST   "Value in doc UNIT
                     COMM_STRUCTURE-TRANS_DATE     "Date for exchange
                     COMM_STRUCTURE-DOC_CURRCY     "Document Currency
                     COMM_STRUCTURE-LOC_CURRCY     "Local currency
    *                COMM_STRUCTURE-EXCHG_RATE     "Exchanging rate
                     COMM_STRUCTURE-/BIC/ZEXRATEAC "Exchanging rate Acctn
            CHANGING RESULT.
    * the KPI's must be turned to positive because the SD-extractors
    * allways deliver them neg. if it's a process back (e.g. return order)
          RESULT = RESULT * ( -1 ).
          UNIT = COMM_STRUCTURE-LOC_CURRCY.
    * if the returncode is not equal zero, the result will not be updated
          RETURNCODE = 0.
        ELSE.
    * if the returncode is not equal zero, the result will not be updated
          RETURNCODE = 4.
        ENDIF.
      ELSE.
    * if the returncode is not equal zero, the result will not be updated
        RETURNCODE = 4.
      ENDIF.
    the above routine is quite self explaining the code.
    hope this helps...
    Olivier.
    Message was edited by:
            Olivier Cora

  • Virtual key figure BADI - does not change value

    I wrote a badi for virtual key figure according to guidelines from an SDN doc on how to create virtual chars and kf's.
    However, the value of the key figure is not changed at all. Below is my code. Please see what I'm doing wrong
    method IF_EX_RSR_OLAP_BADI~DEFINE.
       APPEND 'ZRANKS' TO c_t_kyfnm.
    endmethod.
    method IF_EX_RSR_OLAP_BADI~COMPUTE.
      if P_KYF_ZRANKS > 0.
        assign component p_kyf_zranks of structure c_s_data
        to <fs_ranks>.
        <fs_ranks> = '1.0'.
      endif.
    endmethod.

    There is something you need to do which I have not seen described in any of the documention here.
    You need to copy the source code for the INITIALIZE method directly from the code given in the example class CL_EXM_IM_RSR_OLAP_BAPI. That is where the P_KYF<object> and P_CHA<object> attributes are assigned their values. If you do not copy this code into your own implementation, these attributes have no value in the COMPUTE method and your code will probably not work.
    Bryan

Maybe you are looking for

  • How to update Data Services (ALDSP 2.5) from WebLogic Server 9.2 correctly?

    Hi, I need to update some physical data service in ALDSP 2.5 on WLS 8.1 SP6 (8.1.6) via Static Mediator API from WebLogic Server 9.2 MP2 (9.2.2) application. I have reviewed the article about interoperability of ALDSP 2.5 and WLS 9 here: http://edocs

  • What's wrong with my select?

    Hi! What's wrong with my select? The message I got is: "("has no closing ")" SELECT SINGLE iclclaim~claim      INTO os_namir_stabi-claim      FROM ( ( iclclaim     INNER JOIN iclpoloau       ON iclpoloauclaim = iclclaimclaim     CLIENT specified     

  • AI Waveform Scan Conversion of VI to LaqbVIEW 7.1

    Hi, I have a labVIEW program written in version Labview i think 5.1 or 6.0.  Im using labVIEW Version 7.1 and when I run the simulation it gives me error 10401.  I dont really understand what it means, but I am assuming that I cannot use AI Waveform

  • Grand Total in Rows of Pivot Table

    Hi, How to display Grand total in rows of pivot table. Thanks and Regards, Kiran

  • Unable to open SAP refernce IMG

    HI, In SAP ecc6.0 eph4 IS-utilites ides server when i hit t-code spro, there when i click SAP Reference IMG, I go to Finacial Accounting(new) there Accounts Receivable & Payable there customer accounts->master data ->preparation of creating master da