Update rule key figure problem

Hello All,
I am busy creating update rules for an InfoCube. I have defined the update type for the key figure as "addition", I have also selected the source key figure (Budget Volume APO PC) but get the message "Target unit and source unit for the key figure Budget Volume APO PC must be the same" and it gives a red status to the key figure. Please explain what I should do to rectify the problem?
Thank you and kind regards,
Keith

Hello KeItH,
how r u ?
first analyze the InfoObject and then if it is not going to be added up for the result value then u can try selecting OVERWRITE option, but this will overwrite your old values and hold the latest one.
Best Regards....
Sankar Kumar

Similar Messages

  • Trade Funds report to update Settled key-figure for rebate scenario

    Dear Experts,
    We have a scenario where we are triggering rebate creation in ERP from Trade Promotion in CRM.
    The rebate accruals are generated over a period of time based on sales orders.
    Now we have 3 standard SAP Trade Funds reports which helps us in extracting the accruals data from ERP rebates and updates "Accrual Balance" key-figure of the Fund associated with the Trade Promotion.
    Now in ERP once the rebate settlement is created, is there any standard SAP report which will update the "Settled" key-figure in the Fund.
    Please advise.
    N.B. Our scenario has TPM integrated with Trade Funds & we are using CRM 7.0 EhP1
    regards
    Animesh.

    Many thanks for ur replies!
    problem here is that, since i had declared this  particular fileld as a integer type key figure, it is not allowing me to enter characteristic values in  update formula .
    and venkat, how can i change that key figure to char? is that possible? they have specifically told to write as a key figure. and in this model we have only one key figure ( this particular field ).
    that infoobject is not available in BW as of now. so i had created it as a key figure as was told by them.
    Thanks,
    Ravi

  • Update rule for ODS problem

    Hi experts,
    I have a ODS which is created on another ODS. The unerlying ODS had one infoobject and later on it was removed. The problem occurs when creating the udpate rules for the top ODS. The deleted infoobject comes in the update rules of the ODS as grey but I think it shouldnt be there .

    Hey, in the Update Rules, you have 2 sections.
    1) Source ODS InfoObjects
    2) Taget ODS InfoObjects
    If you want, remoe the InfoObject from both the ODS.
    Also, activate the Source ODS again and also Activate the Update Rules too.
    Uday-Ram Chamarthy

  • Key figure problem

    Hi,
    In EHS Module i am trying to give a report on accidents overview.In that the key figures are Number of accidents, number of persons involved with aggregation MAX and at exception level as SUM.but in reporting it is showing 0 my number of entries in all types of accidents are one(persons affected). I want to change the key faigure aggregation to sum. Or is there anyway of using exception aggregate in reporting.
    Regards
    Ravindra

    HI Ravindra,
    We can change the aggregation of a keyfigure to SUM in RSA1 and also can change while desinging query.
    RSA1 select the keyfigure right click , change then under the aggregation tab choose "summation".
    In the query definition after placing the key figure, selecte that keyfigure right click , click on properties then at "calculate result as"  choose "summation".
    please let me know if it hepls u.
    Kind Regards
    N.Prasad Babu

  • Selection on Global Calculated Key Figure problem

    Hi all,
    I've got a Calculated key figure, made up of 2 key figures and 2 restricted key figures, saved to a homogenous multiprovider (Customer Sales).  this works fine as is. 
    However, when you create a selection in BEx QD, that limits the CKF further by Distribution channel, and view the result, the result seems to be multiplied by a value to the effect of 2.8???
    If you view the CKF by itself its fine (though not limited to what it needs to be).
    As an example.
    Say sales for a distribution channel was 1 million dollars.  Sales overall was 2 million dollars.  If i drag in my CKF (and have NO characteristics), it comes up with 2 million dollars.
    If i limit it to 1 sales office, no issues, I get that sales office's value.  However, if i limit it to a distribution channel, i get roughly 2.8 million dollars.
    Any ideas?  I can't see the logic in this.  Perhaps someone knows of the issue/has seen a note or something regarding this, cos its got me scratchin my head?
    Cheers

    Hi Pierre,
    I appreciate the fast reply.  This thing is driving me nuts!
    Ok so when you refer to the CKF are you referring to the global CKF on the multiprovider or the CKF i have on the report that is restricted (basically a local RKF)?
    I've had a look through there and have found the calculation tab, but can't really say i've found "Calculate according to current formula".
    What i see are:
    a dropdown list headed "calculate results as..." (nothing defined)
    another dropdown list called "calculate Single Values as..."  (nothing defined)
    a tick box called cumulated (unticked)
    another tickbox called "also apply to results" (unticked)
    another dropdown listbox called "calculation direction" (default setting)
    Underneath all that is a tickbox called "use precalculated value" (unticked).
    is it something under all that that i need to change?
    Do i change the global CKF or the local RKF?
    Thanks for the assist.

  • Virtual key figure problem

    hi all,
    i have a virtual key figure that i have to populate data into....this query is off a infoset...the client wants to see the total number of unique records populated into the virtual kf.the user exit has to read records from sales document number and document number and populate the unique ones in th the vkf.say, if the vkf's name is zpop and the infoset is zi_pop, the two ods's that make up this infoset is zods_1 and zods_2....please can u write me an abap code that reads the records and populates only the tot number of unique records into that kf.
    thanks in advance

    hi
    Have you debugged after refreshing?
    Regards
    N Ganesh

  • Virtual key figures problem?

    Hi Gurus,
    what is Virtual key figures? at what scenerio you go for that.
    please guide me ASAP.
    In advance i appreciate you
    RK

    Hi
    Virtual key figures are used when you want to determine the value of a key figure at runtime , the key figure is not populated in the load process ie its value is not stored in the cube. The logic for populating the keyfigures is written in an SAP Exit RSR00002.
    Since the values are computed at run time, it affects the query performance if you have too many VKF or too many records in your cube.
    There is a how to guide on the steps for working with virual key figures/ characteristics.
    To give an example suppose you need an aging report where you want to show how many orders are delayed by 30 days , how many 30 to 60 days and so on based on todays date, So this number needs to change dynamically based on the date the report is run , you could use VKF in this scenario...There might be other ways of doing but just giving an example to explain the concept.

  • How to find all the cubes update rules transfer rules ,programms ,ds,ect

    HI SDN
    Is there any tables for finding update rules,cubes,multiproviders in the system.
    can any body tells me the tables for the objects all the objects
    thx

    Hi Rubane,
    These the tables which gives relevant info,
    Here are few of those -
    Thought it may be of some use if we make a list of useful BW tables
    for instance
    v_rszglobv = variables
    /bic/f (cubename) is the fact table of a content cube
    /bic/D (cubename) P is the package dimension of a content cube
    /bic/D(cubename) U is the unit dimension of a content cube
    /bic/D(cubename) T is the time dimension of a content cube
    /bic/D(cubename) I is the userdefined dimension of a content cube
    /bic/m (object name) master data of object
    /bic/t (object name) text data of object
    /bic/H (object name) hierarchy data of object
    you can replace the BIC with BI0 for business content object and cubes
    RSDIOBJ - index of all InfoObjects
    RSSELDONE - Monitor: Selections for executed request
    RSREQDONE - Monitor: Saving of the QM entries, state of the uploads, all info about the upload via request number, field: RNR
    ODS Table names
    1.New data: /BIC/A (ODS NAME)40
    2.Active data: /BIC/A (ODS NAME)00
    3.Change log: /BIC/B ( NUMBERS)
    RSRREPDIR which is the table containing all your reports.
    RSTSODS - table that contain relation between "ODS Name" and PSA Table.
    TBDLS - Logical system customization, when you run TA: BDLS
    EDP21 - Partner Profile, when you run TA: WE20
    RSBASIDOC - Assignment of source systems to BIW systems incl. IDoc type
    In V_COMPDIR_COMPIC you can also see all your reports. The advantage is that you can see the name/text of the query, not only the technical id.
    RSDCUBEIOBJ Objects per InfoCube (where-used list)
    RSDODSOATRNAV InfoObject in ODS (navigational attributes)
    RSDODSOIOBJ InfoObject in ODS
    RSDIOBJT InfoObject texts
    RSDIOBJ Directory of all InfoObjects
    RSDKYF Key figures
    RSDBCHATR Master data attributes
    RSBBSQUERYDIR BW: Directory of the Query Sender
    RSBBSQUERY BW: Query Receiver
    RSBBSQUERYT BW: Texts for Query Receiver
    TQOP Compare Operators for View Maintenance Query
    TQOPT Compare operators for view maintenance query (texts)
    TQLOT Logical operators for view maintenance query (texts)
    ROMSDIOBJ BIW: Assignment of master data attributes to InfoObjects
    RODCHA BIW: InfoObjects / characteristics
    RODIOBJCMP BIW: InfoObjects / compounding
    RODKYF BIW: Key figures
    ROAPPLT BIW: Name of the application components
    RSUICDONE BIW: Selection table for user-selection update ICs
    RODTIM BIW: Time characteristics
    RODUNI BIW: Units
    RSIST InfoSource texts
    RSIS InfoSource (transaction data)
    RSISOSMAP Mapping Between InfoSources and OLTP Sources
    RSOSFIELDMAP Mapping Between OLTP Source Fields and InfoObjects
    RSUPDDAT Update rules key figures
    RSUPDKEY Update rule: Key per key figure
    RSUPDROUT Update rules - ABAP routine - check table
    RSRWBINDEXT Titles of binary objects (Excel workbooks) in InfoCatalog
    RSRWORKBOOK 'Where-used list' for reports in workbooks
    RSDDIME Dimensions directory
    RSDDIMEIOBJ InfoObjects per dimension (where-used list)
    RSDDIMET Dimension Texts
    RSZCOMPDIR Directory of reporting components
    RSZELTATTR Attribute selection per dimension element
    RSZELTDIR Directory of the reporting component elements
    RSZELTTXT Texts of reporting component elements
    RSZELTXREF Directory of query element references
    RSZGLOBV Global Variables in Reporting
    RSDCUBET Texts for the InfoCubes
    SMEN_BUFFC-Table for Storing Favorites.
    tables which hold the list of BEx Queries, Web Reports, and Workbooks,
    RSRREPDIR
    RSZCALC
    RSZCEL
    RSZCHANGES
    RSZCOMPDIR
    RSZCOMPIC
    RSRWORKBOOK
    RSZCOMPDIR - Directory of reporting components
    RSZELTDIR - Reporting Component Details
    RSBCT_NAVKEY_T  
    RSBCT_NAVKEYDET 
    check it in the following table
    RSDDAGGL
    RSDDAGGLF
    RSDDAGGRDIR
    RSDDAGGRDIR_M
    RSAABAP - Routines
    Thanks,
    Sudhakar.

  • Routine for Update rule in cube

    Hi Friends,
           I have added a field to a cube, now i need to populate the same during the data is loading from the DSO to Cube.  Inupdate rule since we will get only te key figures, is it possible to access the dimensions in the routine. Please help me in giving some coadings for the routine for update rule.
    Thanks
    Prem

    Hi,
    one more suggestion..
    create a end routine and update the key figures based on ur dimension values by useing resuly_package.
    sample code:
    [Transformation end routine|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/203eb778-461d-2c10-60b3-8a94ee91cbfc]
    thnks.

  • Adding new key figures to DP planning area

    I am using APO DP.
    When adding new key figures to a planning area, is there any way of avoiding having to deinitialise and then re initialise the planning area?
    Thanks for any advice on this...

    First of, let us know which version of DP are you using.
    If you are using 7.0, all you need to do is right click on your planning area and select Change Keyfigure setting and you should be able to update the key figures there.
    The below is from SAP help for SAP APO 7.0, you should be able to add the key figure without deinitializing the planning area.
    Key Figure Settings
    Here you can change the properties of the key figures of a planning area, if the planning area has already been initialized. You can also add or delete key figures. However, you can only delete key figures that are no longer used in planning books, data views, macros, or demand forecasts. You can find out in which objects a specific key figure is used with the where-used list.

  • The macro attempted to modify a key figure that is not locked

    Hi
    In my planning area I choosen detailed lock, keyfigure specific lock and do not lock read only keyfig after that In interactive DP, I have 2 Planning Books A and B .when I load the selection for book A itu2019s loaded well because all are editable key fig but when I load book B I get error u201CThe macro attempted to modify a key figure that is not lockedu201D in this book 3are editable keyfig 3 are display. I am in SAP SCM 7.0,I had seen the SAP NOTE 851731but its too old i think now iam in advanced that that but that note is not there in my system .
    Any ideas on why this is happening?
    Regards
    siva
    Edited by: sivaram2411 on Feb 3, 2012 1:52 PM

    Hello,
    According to your setting in the palnning area ("do not lock read-only key figures"), if you have set a key figure as "Output Only" in /sapapo/mc8b or by a default macro, then this key figure could not get locked.
    It is not allowed to make changes to unlocked key figures. So if there's  a macro that tries to update this key figure, you'll get the error message.
    If you have "do not lock read-only key figures" set, you must make sure that your macros do not make changes to those key figures that are output only (read only).
    Best Regards,
    Ada

  • Product Allocation Updating Rules

    Hi Experts,
    I am looking to update the Key Figure - Open Product Allocation (in mc25). Now I am not able to find the correct formula for the same. Can anyone help me is telling the correct one ?
    rgds..Ameet.

    Hi Experts,
    I am looking to update the Key Figure - Open Product Allocation (in mc25). Now I am not able to find the correct formula for the same. Can anyone help me is telling the correct one ?
    rgds..Ameet.

  • SIS some key figures are displaying zero value

    Dear all
    Following Key Figures in Standard SIS tcode like MCTE, MCTA, etc. are displaying as zero
    Incoming Return
    Credit Memo
    Credit memos qty
    Returns items
    Returns Quantity
    MC+6 is displaying all the key Figures as zero.
    What may be the reasons
    Regards
    Vipin

    Dear Babubala
    In MC26 I am getting below warning for Incom. Returns, Gross returns, Net Returns 1, Net Returns 2, Returns items, Returns Qty
    Incom. returns: Updating with date field VDATU can be set up restrictively only
    Message no. M!208
    Diagnosis
    While updating the key figure Incom. returns the data field MCVBAP-VDATU for the period determination is used.
    Updating via MCVBAP-VDATU causes a different result online as for statistic data set up. Online, MCVBAP-VDATU is filled with the current date (SY-DATLO); during set up, however, it is filled with the creation date MCVBAP-ERDAT of the item.
    By using VDATU document changes you can see in the statistics that this type of 'delta updating' cannot be reproduced by a statistic data set-up. During the set-up the data is updated in different periods as in online updating, thereby causing the change history to be lost.
    Procedure
    Be certain that this is the type of updating you want.
    In MC26 the Credit Memo Update Setting is VD Billing document and Type of Updating is A     Cumulative updating
    while as in Credit memo pricing procedure there is no subtotal. How to maintain it in Pricing procedure and in MC26 because in MC26 after pressing the change button the system is displaying the following message "Maintenance of SAP standard updates not allowed"
    Regards
    Vipin

  • Key Figure Update Rule aggregation problem?

    Hello all,
    I am trying to create a simple routine in an update rule to sum up two key figures and perform a calculation.  To be more specific, I want to add ZQTY and ZQTY2, and calculate the quantity greater then 8 for formula (F1).
    (F2) = ZQTY + ZQTY2.
    (F1) = IF ( F2 > 8, then F2 - 8, else zero)
    Source:
    0CALDAY...0EMPLOYEE...ZTASK....ZQTY....ZQTY2
    2008.05.01....90000....TASK1.....5.......1
    2008.05.01....90000....TASK2.....1.......2
    2008.05.01....90001....TASK1.....8......0
    2008.05.01....90002.....TASK1....9.......4
    Target:
    0CALDAY...0EMPLOYEE...ZQTY....ZQTY2....(F1)
    2008.05.01.......90000............6..........3...........1
    2008.05.01.......90001............8..........0...........0
    2008.05.01.......90002............9..........4...........12
    In the source, calday, employee, task are the key.   In the target, 0calday, 0employee are the key.
    Here is the code I am using for my update rule routine for F1:
    DATA:  total_sum TYPE d .
    *BL - Get sum of qty
        total_sum = COMM_STRUCTURE-/BIC/ZQTY + COMM_STRUCTURE-/BIC/ZQTY2 .
    *BL - Calculate qty > 8
        IF total_sum > 8 .
          RESULT = total_sum - 8.
        ENDIF.
    With the current code, I am not getting the correct results (employee 90002 will be correct, employee 90000 will be wrong because of aggregation).  Does anyone know how to get around this?
    Thanks,
    Edited by: Brendon Lipchen on May 13, 2008 4:38 PM

    Hi,
    In case of 'ABORT = 1' the whole data package will not be loaded.
    Best regards,
    Eugene

  • 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

Maybe you are looking for

  • Need help in using FM BAPI_MATERIAL_SAVEDATA

    Gurus, I need help in using the FM BAPI_MATERIAL_SAVEDATA. The FM is returning a message that says "The field MARA-MEINS/BAPI_MARA-BASE_UOM(_ISO) is defined as a required field; it does not contain an entry". I have supplied the necessary details and

  • How Fowrarding Agent get Determined in Delivery?

    Hi Gurus, I have a delivery which forwarding agent is different from Forwarding agent showed in Sales Order. For example, in Sales Order partner function I have Mr. A as forwarding agent. But, I got forwarding agent as Mr B when I create delivery. I

  • Insert Photoshop Web Gallery swf file into Dreamweaver

    So i tried to take a shortcut, and created a flash photoshop web gallery and placed the "gallery.swf" file into my html file in Dreamweaver. However, it is showing a blank white screen (i'm guessing it can't find the images?) but when I view it on my

  • Forms 10g - Design Document

    Good day, I'm working in Oracle Forms Builder 10g (10.1.2.0.2) and I keep coming across functions in the PL/SQL code that are used to modify values in the forms. Unfortunately I don't have a design document for my system so I can't tell the API of th

  • SAP 4.7EE SR1 200Relase - CJS-00030  Assertion failed Argument listenerOraT

    Hi All, I am installing SAP 4.7EE 200 release on HP UX 11.23, JDK 1.4.2_12 on oracle 10g. I have sucessfully installed DB using RUNINSTALLER, CI and while installing DB Instance installation i am getting error at Oracle net configuration step. Log fi