Formula Problem in Update Rule

Hi all,
I am facing one problem with formula in update rule.
I have written one formula in update rule which it is working in development, but I moved the content to quality there it is not working.
I have used the following formula.
IF( NEGATIVE( TRUNC( Total Revenue in USD ) ) >= 5,000,000, 1, 0 )
Best Regards,
SGK

Hi
It should work fine,If you still facing the same problem,do one thing(work around)
Create a transport request for your cube with indata flow before,and then activate your update once again in dev server,then transport it...
Hope it helps
Thanks
Teja

Similar Messages

  • Problem in update rule

    Hello
    The update rule for 0HR_PA_0 calculates the age in years by using routine . But I am not getting that while executing the query .

    Raghavendra,
        Try to debugg the Update Rule. you will what is happening in the Update Rule.
    Bottom line when you face problem with Data inconsistensy or data miscalculation, if you use UR on that field, try to debugg the Update Rule from the Monitor Screen. You will get the Problem. At runtime you will know what values are getting populated.
    For Debugging the UR:
    Monitor Details Tab> Data Package> right click> simulate Update> select Update Rule in the Next screen. debugg that Package.
    if we can provide the code, we can look into it.
    All the best.
    Nagesh.

  • Problem in update rules

    hi.
    Am doing some enhancement to cube.means added some fields to that.when coming to update rules, what ever i created new infoobjects am not finding over here.written routine for char.everything is fine with that.when activating that its givng that some insource error.
    expecting help.
    thanks

    Hi banu and all guys,
    yes added.when coming to keyfigures by mistake i added extra objects.when am trying to take our means its giving message that u cant deleted those.why bcz it will affect other cubes and ods.other data targets r using these fields.and also in update rules i mapped correctly but its givng that error in data source.what could be the problem.
    thanks.

  • 0PM_DS02 - Problem with Update Rule

    Hi ,
    I have installed the Standard ODS 0PM_DS02 from BI content.
    Problem is --> In Update Rule all Data Fields have been installed perfectly but all Key Fields with Blank ( No Assignment ) .
    I would like to know  what is the reason that All the KEY Fields have installed with Blank .
    Though I can do the manual assignment for characteristics like Equipment / Functional location but my specific area of Concern is what to assign to time characteristcs 0CALDAY / 0CALMONTH etc.
    I would appreciate your help in guiding me what to assign in Key fields of 0PM_DS02 update rule.
    regards
    Vishal

    Probably you have got it resolved already.  The key fields are assigned along with the data fields in the statement RESULT_TABLE[] = G_T_UPDATE_IMAGE. 
    G_T_UPDATE_IMAGE has the same structure as /BI0/APM_DS0200, which is nothing but the active data table of 0PM_DS02.  This structure gets populated in the FM BW_MCI1_KEYFIGURE_ARRAY_GET.

  • Random problem in update rule

    I have one ODS which was loaded from another ODS, there are 57 records out of millions are having blank value for all the data fields except the key fields (overwrite) and key figures (addition), those data fields are direct mapping from ODS 1 and one of it even is updated by constant '0'.  Anyone with any idea how could this happen?  Thanks in advance.
    Cheers!
    Cecil

    Raghavendra,
        Try to debugg the Update Rule. you will what is happening in the Update Rule.
    Bottom line when you face problem with Data inconsistensy or data miscalculation, if you use UR on that field, try to debugg the Update Rule from the Monitor Screen. You will get the Problem. At runtime you will know what values are getting populated.
    For Debugging the UR:
    Monitor Details Tab> Data Package> right click> simulate Update> select Update Rule in the Next screen. debugg that Package.
    if we can provide the code, we can look into it.
    All the best.
    Nagesh.

  • Problem with update Rules

    Hi I am having four Key figures k1,k2,k3k4 and  four characterstic c1,c2,c3 and c4.Now if I write a routine with k1 giving some conditions then only the records satisfyig that conditions will be updated in the cube.If I write a routine for characterstic then what happens ..?
    my questions is if I select the characterstic by clicking on the keyfigure and thenking on the particular characterstic then what happens..?
    Hope I am clear if not plz let me know.
    vasu.

    Hi Vasu.
    When you save your routine you will be asked if you would like to use the routine for all key figures. If you choose no it will only use the routine for the selected KF.
    Hope it helps.
    BR
    Stefan

  • Error with Update Rule Formula

    I have the following formula in an update rule
    CALMONTH_FISCPER( Calendar Year/Month, 'SO', 1 )
    and get the error (below) when loading data to the cube (loads ok to PSA).  I have checked ROUTINE_0001 via the Generated Program and it is referring to a problem with the formula could someone assist? Thanks
    error in a formula function (ROUTINE_0001 routine)

    Hi:
    Yes. You will have to maintain Fiscal Variant and Period breakdowns for that year.
    If data is coming from R/3, its a good idea to speak with R/3 Finanace and tell them to amintains variant and periods in R.3 and then you can do a Global Transfer.
    If not, you can maintain them directly in BW. I think you know how to do this part.
    Ram Chamarthy

  • Routine /Formula in update rule

    Hello
    I am trying to use formula function in update rule but its giving me error
    scenerio here is
    I tried with routine syntax wise itz correct but not working
    here is the example
    fill theIF 'KNART' eq 'ZP01'. internal table "MONITOR", to make
    result value of the routine
    RESULT = 'KNVAL'.IF 'KNART' eq 'ZP01'.
    ENDIF.
    if abort is not equal zero, the update process will be canceled
    ABORT = 0.
    $$ end of routine - insert your code only before this line -
    ENDFORM.
    trying to update with knval( avleble in commication structure) only if other(KNART is eq zp01) i found sysntaxwise code is correct but its giving me shortdump at teh time of loading
    any input will be great help
    cheers
    Praveen

    Hi
    I tried with this code though its syntax wise correct but again its not working
    IF COMM_STRUCTURE-KNART eq 'ZP01'.
    RESULT = COMM_STRUCTURE-KNVAL.
    ELSE.
    RETURNCODE = 1.
    ENDIF.

  • Formulas in Update rule active Program

    Hi,
    I would like to know whether is it possible to see the formulas applied in the update rule active program generated .
    for exampkle: (IF TRANINDIC = 0, NET_VALUE,0).....This formula has been applied for a specific kefigure in update rule.
    I just wanted to see the above formula in the update rule activer progrma...so is it possible to see....if it is possible please let me know some tips and tricks to check the same.
    Thanks
    Sujan

    Hi,
    In rsa1 open upadate rules. and in the main menu. check for option generated program under menu options.
    you can get the program.

  • Update rules, different source and target units (0BASE_UOM-- 0QVVMRA)

    Hi,
    I have a problem with update rules as I'm trying to map two keyfigures with different unit-types together. They are both kilograms (KG) but the source figure is defined as 0BASE_UOM and the target keyfigure is 0QVVMRA (Amount of sales).
    How can I make this connection work? Do I have to use the 'Unit calculation in routine' -option or is there a more simple way? I a routine must ne written, please post an example or link to a thread which has one.
    Thx!
    -miikka

    Hi,
    The Problem is that you are trying to connect a Key Fig for Type Quantity with the Key Figure Amount.
    The Amount Key Fig will have either 0CURRENCY or Fixed Currency.
    Using Update Rules Coding you could transfer the Value but you will have problems with the Currency. You cant store a Unit like KG in 0CURRENCY.
    Regards.

  • RS_EXCEPTION230 object  Update rule not found

    hi guys
    while extracting the standard business  content for 0gl_account  i  am facing the problem RS_EXCEPTION230 update rule object not found .The update rule appears as a white.
    please help as this preventing me to move forward
    thanks
    nitin

    Exactly, i had the same problem and have solved it as follow:
    First you have to select the update rules (for example) and transfer them  (you have to select the option 'Transfer', of the 'Transfer command), you will see that they will be activated without error, next step you can simulate them or include them into an order to transport to another environment.
    Hope this help.

  • RSAU466 : Update rule Activation error

    Hello Guys,
    We upgrated BW3.5 to BI7.0 SP13
    We're facing problem on Update Rule activation
    the message is an RSAU466, I have locked for solution on service sap, they suggering to run SP13, but we're already on SP13
    Any one have an idea ?

    I recreated the update rule

  • Issues with update rule

    Hi All,
    I am having a problem with update rule
    My object
    A
    B
    C
    D(Seller phase) (complex table)
    Q1(Question)
    A1(Answer) (complex table)
    Q2(Question)
    A2(Answer) (complex table)
    Q3(Question)
    A3(Answer) (complex table)
    E(Collection object)
    D(seller Phase)
    Q(Question)
    A(Answer)
    My transaction during Add
    A
    B
    C
    D(Seller phase)(complex table)
    Q1(Question)
    A1(Answer)(complex table)
    Q2(Question)
    A2(Answer)(complex table)
    Q3(Question)
    A3(Answer)(complex table)
    E(Collection object)
    D(seller Phase)
    Q(Question)
    A(Answer)
    here is my requirement:
    During Activity create/Edit upon choosing seller phase i bring questions based on update rules of q1 q2 and q3 from complex table.
    Possible answers are also fetched from complex table based on selection of phase for each question. I have a update rules for answers to check the object collection(E) and determine if this phase exist or not, If exist previously selected Answers will bulled from collection for the corresponding question if not it has to empty.
    All rule are working with out any problem.
    Issue.
    During create or edit if some one chooses phase P1 and answers for the questions and with out saving if they change phase then answers which are been selected earlier still exist.
    This is happening in IPAD but not in ATE. I have checked the log for rules all the rules are returning values as expected.
    So i tried the below options to test
    1) with special value option in field level
    2) I created a dummy field with update rule with value test. On creation i have modified the dummy field value X then changed the phase the value is not getting updated as per update rule.
    Is it the real behavior of update rule? Is there any work around for this problem
    Regards,
    Gupta

    Gupta,
    So based on your comments above I have the workarounds I gave you.
    1) A button that refreshes "resets" to make the screen repaint (in essence a button that just re-navigates to the same screen will make all the system reset) if you just want one screen.
    2)Or the multiple screen approach. Let phase 1 be in one screen and the other questions and answers on others.
    Not sure if you can just do 1 screen with multi-tiles - If this is better approach where the phase selection is on 1 tile (top tile) and the questions and answers are on a different tile (bottom tile).
    The trick is to make the screen repaint. As long as you present to the customers a flawless flow you will be okay. The one that you don't want to happen is when your rules are buggy then it may be just a good idea to sell a more controlled flow that works than debugging what went down the wrong during UAT (User Acceptance Test).
    Regards,
    Mark

  • Update rule problem for date in Prod

    My scenario is like this:-
    ODS 2 is loaded from ODS 1, in ODS 1 there is a data field calendar day (DATS, time characteristic) and there is a data field posting date (DATS, characteristic) in ODS 2. In the update rule, the posting date is updated from calendar day by a formula source. 
    The problem is the posting date data field is updated into ODS 2 correctly in development box but it is not updated (blank) in production box.  I can't figure out what is the cause, hopefully someone can give me some help.  Thanks.
    Cheers!
    Cecil

    The only different is the development system is having this part of code in the update rules program compare to production system.  Do I need to compile the update rules formula manually?
    *This ABAP Code was generated automatically          *
    *Formula Calculator                                  *
    *Generated :2008:09:12-10:47
    *User: XXX
    *Calculation:
    result = COMM_STRUCTURE-CALDAY.
      ENDCATCH.
      if sy-subrc <> 0.
        perform error_message using 'RSAU' 'E' '507'
                'ROUTINE_0004' g_s_is-recno
                rs_c_false rs_c_false g_s_is-recno
                changing c_abort.
      endif.
    Cheers!

  • Formula in Update rule(Urgent)

    Dear Gurus,
    Iam written Formula in update rule
    Get source system type is SUBSTRING( Source System, 2, 1 )
    And Get Client Formula is RIGHT( Source System, 3 )
    Above formula  syntax is correct.
    But when iam loading data getting below error.
    Formula in InfoObject /BIC/CLIENT : The argument 'R3DCLNT240' cannot be interpreted as.
    In Help node it is showing below message.
    This is a specific error message of processing from the handling of incorrect data data records. It enables the jump into the error requests or the PSA maintenance, depending on whether the generation of an error request was desired, and whether or not it was possible.
    How to solve this problem?What does it mean?
    Thanks in advance
    Ramu

    Hi Ramu,
    Instead of using Formula why don't u try with Constant in Update rules for R3DCLNT240.
    Try with this and hope it may works.
    Thanks & Regards,
    Reddy.

Maybe you are looking for