What is update rules

Hi All,
        can anyone tell me what is update rules with one practicle example . i have gone through materials but i am not getting it  what happens when we do cleansing between transfer structure to the target.
Edited by: Mohit Shrivastava on Jan 2, 2009 2:09 PM

Hi Mohit,
Actually update rules comes in BIW 3.5 now this concept has been removed from BI7
DEFN:Update rules specify how the data (key figures, time characteristics, characteristics) is updated to data targets from the communication structure of an InfoSource. You are therefore connecting an InfoSource with a data target
the data From infosource(Infosource means collection of information that logically belongs together gathered in to single unit)  to target is sent through this update rules
An update rule must be specified for each key figure and the corresponding characteristics of the InfoCube. For an ODS Object, it must be specified for the data and key fields, and for an InfoObject it must be specified for the attribute and key fields
the real senarrio example means ,
suppose ur getting data  of quantity(XYZ,ABC) sold for this year ,from flatfile and from SAP source system .. in the final report u want to see the overall sales of that quantity the data of both source system can be combined infosource , in the report if u want to see only XYZ data then the target has to have data of XYZ only but in the infosource both XYZ and ABC data both are avaliable ..
u can avoid the data of ABC in update rules (by writing program) this is one senario the use of pdate rules
Hopes this information help  u ..if yes assigin points to this thread
Regards,
Gurudatt

Similar Messages

  • Update rule

    BW needs 6 decimal places - The Group and Legal costs that are sent to BW from R/3 contain as many as 6 decimal places.  As cost fields, the Group and Legal Costs are stored in BW as currencies and therefore have only 2 decimal places.  The two objects are going to need to be changed to be floating point numbers and then the update rules , I want to know what this update rule will do to populate group and legal cost. please tell me how to write update rule to populate the field group and legal cost
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...      DATA:   /BIC/AZCOPC_O200.
    DATA:   WS_ZLGL_COST(16) decimals 4 TYPE P,
             WS_ZGRP_COST(16) decimals 4 TYPE P.
    DATA: ZPRICE_AVG LIKE /BIC/AZCOPC_O100-PRICE_AVG.
    DATA: ZPRICE_STD LIKE /BIC/AZCOPC_O100-PRICE_STD.
    DATA: ZPRICE_VAL LIKE /BIC/AZCOPC_O100-PRICE_VAL.
    DATA: ZPRICE_VAL1 LIKE /BIC/AZCOPC_O100-PRICE_VAL.
    DATA: ZPRICE_VAL2 LIKE /BIC/AZCOPC_O100-PRICE_VAL.
    CLEAR WS_ZLGL_COST.
    CLEAR WS_ZGRP_COST.
    DATA:  i_/BIC/AZCOPC_O140 like /BIC/AZCOPC_O140.
    $$ end of global - insert your declaration only before this line   -
    FORM compute_data_field
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
               RESULT_TABLE STRUCTURE /BIC/AZCOPC_O100
      USING    COMM_STRUCTURE LIKE /BIC/CS0CO_PC_ACT_05
               RECORD_NO LIKE SY-TABIX
               RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
               ICUBE_VALUES LIKE /BIC/AZCOPC_O100
      CHANGING RETURNCODE LIKE SY-SUBRC  "Do not use!
               ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal table "MONITOR", to make monitor entries
    result value of the routine
      RESULT = ws_zgrp_cost.
    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.

    Soniya,
    I don't understand why you need to write the update rules to make the 2 decimal key figure to 6 decimal key figure. Also, if the keyfigure is only 2 decimal type how will you change the properties of the key figure via the update rule?
    All you need to do is change the properties of the data element/domain associated with the key figure and reactivate the key figure infoobject. Here are the steps.
    1) Display the key figure info object (e.g 0AMOUNT).
    2) Under the "additional properties" tab, you will see the data element. Double click on the data element, you will see the domain that was used to create the data element.
    3) In SE11, edit that domain and change from 2 decimal to 6 decimal. If it is a SAP object and you are not able to change it, create a new custom object exactly like the SAP object and select 6 decimal places and activate it.
    4) Now, in the data element make sure you are using the changed domain and activate the data element.
    5) Edit your Key Figure and reactivate it.
    From now on, this key figure will always have 6 decimal places instead of the 2. One thing to remember is if you change the domain from 2 to 6 decimals, all the data elements that are based on that domain may be impacted. So, I would recommend that you create a new Z*** domain and use that in the data element so that the other data elements are not impacted.
    Abdul

  • What are the special conversions for time in update rules?

    What are the special conversions for time in update rules?

    Hello,
    Special conversions for time in update rules are automatically conversion rules.
    Example: If the cube contains calendar month and your transfer structure contains date, the date to month is converted automatically.
    Assign points if this helps,
    Regards,
    Jorge Diogo

  • What is the Relationship between Update Rule and Infopackage/Transfer Rules

    Hello Experts,
    can you help explain these scenarios to me:
    What is the relationship between update rules and infopackges?
    What is the relationship between transfer rules and infopackges?
    What is the relationship between update rules and transfer rules?

    Hello,
    Info-packages trigger the data load into BW system from the source system. An info-package is created for a specific data source and info source combination.
    1) When you trigger the info-package it sends an request to the source system to start the extraction process and this corresponds to the step "Data Request Received" in monitor under details tab. It is the first step.
    2) Then the selections specified in the info-package are transferred to the source system to select the requested data from BW system. Then it is sent back to BW system.
    3) Once it reach BW, it gets into the PSA and then it gets updated into the data target (depends on what settings are made in IP). No rules (Transfer rules / update rules) comes into picture when data is stored in PSA. Only the transfer structure is used to map the BW info-objects with the source system fields.
    4) After data is stored into PSA, the update into the data targets begins. First the transfer rules are applied -> data then flows through the communication structure -> update rules are applied and finally the records gets updated into the data target. 
    The extraction flow is: -
    Source System (DS) -> PSA -> Transfer Rules -> Communication Structure -> Update Rules -> Data target.
    Info-package actually triggers the whole data flow in BW system.
    Hope it gives you a clear picture.
    Thx,
    Soumya

  • Start Routine in Update Rule

    I want to replace all '# ' values showing up in a report with  space. For this I plan to write a Start Routine in the Update Rules which should scan all the data coming in into the cube and replace all  null or '' with space.
    What is the best way to write this routine. It should check all data in all the fields of the data load coming in.
    Thanks

    Hi,
         The space is shown as # in the BW Reports, to confirm check the value in the cube for this field, so
          you need to change that to some other character like X or Y or explain your end users that SAP
          designates a space as # and it will be displayed that way in the reports.
    Regards,
    Raj

  • Can you help me interpret the following lines in UPDATE rule?

    Hi,
    Can you help me interpret the following lines in UPDATE rule?
    1. What is the role of role of u201CCHANGING RESULT.u201D and u201CCHANGING lc_local_value.u201D?
    2. What is the role of the CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY', in particular the Exporting and Importing parts?
    3. Can I say that u201CCOMM_STRUCTURE-ORDER_VALu201D in the subroutine is passed to u201Clc_document_valueu201D in the u201CFORM loc_curr_convertu201D; and further passed to u201Cforeign_amountu201D in the u201CCALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'u201D?
    4. Finally, what becomes of my original u201CActual Goods receipt quantityu201D( 0GR_QTY ) which I am writing the routine for? I donu2019t see any where in the code that it is being referred to? Do any of these codes affect the value of 0GR_QTY?
    5. Also, if there are 3 different subroutines in the INCLUDE and I am making the change described in #4 above, how do I know which of the 3 subroutines to call?
    ===============================
    ===============================
    So I am reviewing a transfer routine in for u201CActual Goods receipt quantityu201D and routine an INCLUDE statement: INCLUDE RS_BCT_MM_UPDATE_RULES.
    The update rule also includes the following properties to run the following subroutine in the Include:
    IF u2026..
    perFORM LOC_CURR_CONVERT
               USING    COMM_STRUCTURE-ORDER_VAL
                        COMM_STRUCTURE-DOC_DATE
                        COMM_STRUCTURE-ORDER_CURR
                        COMM_STRUCTURE-LOC_CURRCY
                        COMM_STRUCTURE-EXCHG_RATE
               CHANGING RESULT.
    I verified in the INCLUDE (RS_BCT_MM_UPDATE_RULES) and the subroutine is as follows:
    FORM loc_curr_convert
      USING    lc_document_value
               lc_date
               lc_document_currency
               value(lc_local_currency)
               lc_rate
      CHANGING lc_local_value.
    conversion of lc_rate from floating-point to decimal. Necessary for *
    call of CONVERT_TO_LOCAL_CURRENCY.
    data lc_rate_dec type p decimals 5.
    lc_rate_dec = lc_rate.
      IF lc_document_currency = lc_local_currency
      no conversion necessary -> Main case 1
        AND NOT ( lc_document_currency IS INITIAL
               OR lc_local_currency IS INITIAL ) .
        lc_local_value = lc_document_value.
      ELSEIF NOT ( lc_document_currency IS INITIAL
      OR lc_local_currency IS INITIAL OR lc_date IS INITIAL ) .
      conversion necessary with lc_date -> Normally not possible
        CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
          EXPORTING
            date                 = lc_date
            foreign_amount       = lc_document_value
            foreign_currency     = lc_document_currency
            local_currency       = lc_local_currency
            rate                 = lc_rate_dec
          IMPORTING
          EXCHANGE_RATE        =
            local_amount         = lc_local_value
          EXCEPTIONS
            NO_RATE_FOUND        = 1
            OVERFLOW             = 2
            NO_FACTORS_FOUND     = 3
            NO_SPREAD_FOUND      = 4
            DERIVED_2_TIMES      = 5.
        IF sy-subrc NE 0.
      message a802 with lc_date lc_document_currency lc_local_currency
                        sy-subrc.
        ENDIF.
      ELSE.
      if conversion not possible -> assign target values
        lc_local_value = lc_document_value.
        lc_local_currency = lc_document_currency.
      ENDIF.
    ENDFORM.

    HI,
    Thanks so much the explanations.
    I just verified again on our dev system and the update rule for 0GR_QTY (Actual goods receipt quantity) include the following:
        perFORM QUANTITY_CONVERT
           USING    COMM_STRUCTURE-CPQUAOU
                    COMM_STRUCTURE-po_UNIT
                    COMM_STRUCTURE-base_uom
                    COMM_STRUCTURE-numerator
                    COMM_STRUCTURE-denomintr
           CHANGING RESULT
    Now, in the include, I also found:
    FORM QUANTITY_CONVERT
      USING    QC_SOURCE_VALUE
               QC_SOURCE_UNIT
               VALUE(QC_TARGET_UNIT)
               QC_UMREZ
               QC_UMREN
      CHANGING QC_TARGET_VALUE.
    i.  Does it mean it actually does quantity conversion?
    ii. If you have access to the INCLUDE I will appreciate some hints on what the subroutine QUANTITY_CONVERT is doing. It does not appear do to be saying anything about quantity conversion; but it is supposed to be doing something with the parameters being passed from the update routine.
    iii. In your response to #5, after all the computation in the INCLUDE, what comes back to the Update rule  i.e. what comes back to become the value of 0GR_QTY?
    Is it the u201CRESULT.u201D in the update rule or u201CQC_TARGET_VALUE.u201D in the subroutine in the INCLUDE.
    iv. So, am to create an Update rule for 0PSTNG_DATE and the source is BUDAT; and I need to write a routine using the include INCLUDE RS_BCT_MM_UPDATE_RULES.
    I looked through the INCLUDE and identified all the subroutines in this INCLUDE as follows:
    QUANTITY_CONVERT
    LOC_CURR_CONVERT
    GET_WEEK
    WEEK_DAY
    QUARTER_DAY
    --Does it mean that to use this subroutine, I can only use the USING parameters of one of these listed subroutines?
    --Also, does it mean that because 0PSTNG_DATE is a date, I can only use one of
    GET_WEEK
    WEEK_DAY
    QUARTER_DAY
    --Or, are there other includes to be used for 0PSTNG_DATE
    Thanks

  • Error while transporting update rule.

    Hi experts
    I am trying to transport one update rule to production..
    But it is ending with error code 8 n it is giving me following error :
          Errors when activating update rule XXX
          IC=0PP_DS03 IS=0CO_OM_OPA_6 error when checking update rules
    Kindly tell me what need to be done now.
    Regards
    Swati

    Hi  Swati,
    Before transporting the update rule, in the present scenario, you have to transport the infosource which contains the corresponding "0recordmode".
    Whenever you transport anything into the quality or production, the list should be as followed in the given manner : 
    Seq No     Objects in Request
    1     Package(DEVC), InfoArea(AREA), Application Component(APCO)
    2     Function Modules
    3     Keyfigure Catalog(IOBC), Keyfigures(IOBJ), Units(IOBJ)
    4     Characteristic Catalog(IOBC), Characteristic Infoobjects(IOBJ)
    5     Infosources (ISCS, ISTD, ISMP, ISTS, ISFS, ROUT) and
                    Generic Data Sources(DataSrce Active Version(OSOA), ISMP, ISTS,DataSourceReplica (ISFS) 
                    and Tables (TABL)
    6     Infoproviders(ODS(ODSO), Cube(CUBE), Infoset(ISET))
    7     Update Rules(UPDR, ROUT)
    8     Infopackages(ISIP)
    9     Queries(ELEM)
    10     Webtemplates(TMPL, BLTM, BPTM)
    Just transport all your things in the above sequence, and it will be done successfully.
    Also, remember  there should not be any data in the corresponding infoprovider while you transfer the update rule, else it will fail.
    Hope it helps,
    Regards,
    Neha.

  • Error when activating update rule

    HI BI Expert,
    The original transfer rule for 2LIS_11_VAITM was deleted accidently and I created new one and mapped with the existing infosource. The system always generates the following error at the time of transport to another client.
    Error when activating update rule D1GOAPD9O0P9CFOY8KBSOUDFA
    Activation of the update rules for ZO_SOP_1 ZT_SOP_SALO_ITM
    IC=ZO_SOP_1 IS=ZT_SOP_SALO_ITM error when checking the update rules.
    Would you kindly be able to suggest me what steps I need to take so as to correct this issue?
    Thanks.

    Hi,
    When you say that update rule was accidently deleted, was that attached to transport request and transported to your QA & PRD at that time.
    Because it may happen that, your old rules are still there in QA & PRD and the new rules are failing to overwrite that.
    If it is the case, then you may have to open the client for QA & PRD and delete the existing update rule (doesnt sound good practice though), and then create a fresh update rule and transport.
    Rgds,
    Vikram.
    Rgds,
    Vikram.

  • How to add a new char in Update rule

    Hi Gurus:
    I copied update rules from an old cube. This new cube is a copy of old cube - almost.
    One of the char is missing in the new cube when compared to old cube. There is a small update routine for that char which I need to introduce to new cube.
    My problem is, I'm not able to figure out how to add the new char in the update rule & start the mapping process..
    Thanks & Regards

    Dear Bhanu: This is what happened.
    When I copied - it defaulted this char with what present in comm structure. Basically the old cube has a routine for this char...
    And the position of this char in the update rule for chars..got realigned.
    I'm sorry - I should have check it properly.
    Thanks a LOT for your time & input...I will assign the points
    Best Regards

  • Update Rules

    Hi,
    i get an error while activating transformation it first says cannot generate proposal and in the update rules i get this " error while activationg transformation : key rule 2 (target field "ZTRDPRO): Initial Update set
    Can someone tell me what need to be done??
    Thanks,

    Hi,
    While we are creating the Transformations, system proposes few Transafermations.For reamining fields you need to make the transformations by  selecting the source field by clickin the mouse and the drag and drop on target fields.
    With rgds,
    Anil Kumar Sharma. P

  • Error when transporting a transformation (Update rule) BI 7.0

    Error when transporting a transformation (Update rule) BI 7.0
    Hi all,
    I’m trying to transport the transformation between the infocube 0FIGL_C10 and the ODS 0FIGL_010 from BI Dev into BI QAS. I kept getting a return code 12.
    Transport message:
       Program terminated (job: RDDEXECL, no.: 18141700)
       See job log
       Execution of programs after import (XPRA)
       End date and time: 20070620181432
    I go to the log and I got the following message:
    Job started
    Step 001 started (program RDDEXECL, variant, user ID DDIC)
    All DB buffers of application server vrxsapq1 were synchronized
    ABAP/4 processor: ASSERTION_FAILED
    Job cancelled
    I’m using BI 7.0
    I don’t know what it is. Can someone tell what should I do or what I’m missing?
    Thanks a lot
    Regards
    Vic

    Hi Victor,
    check this thread may it solves your problem
    Re: Error during the creation of transport request
    one more thread
    /message/2785863#2785863 [original link is broken]
    cheers
    Sunil
    Message was edited by:
            Sunil John

  • Error when activating update rules

    Hi ,
    0RT_C36 cube shows --- stock per weeek (ocalweek)
    My requirement is on daily wise .
    So i copy the standard one 0RT_C36 and add the 0cal day.In update rule 0calweek has the reference feild posting date For 0calday i mapped with the same feild posting date . Error has occured when activating the update rule . Error is' No component exists whith the feild sid_calweek_f.
    Regards
    chakra

    Hi,
    The Automatic conversion in the update rules helps us map 0CALDAY of Info source  to 0CALWEEK of the cube. So it is not a problem with this mapping.
    These type of problem occurs especially when we copied update rules. So what we have to do is checking all mappings for corectness in the mapping.
    With rgds,
    Anil Kumar Sharma .P

  • Error in the update rules

    Hi All,
       I added a BUOM Unit for a keyfigure and activated the cube.While I am activating the update rules it shows the error message unit for the Keyfigure is not recognized in the update rules . Kindly let me Know what i need to do for this error.
    Thanks In Advance...
    Raghu

    Hi,
    Make sure that the mapping for the unit of your KF is also selected in update rule.
    With rgds,
    Anil Kumar Sharma .P

  • Activating SIS structure error while maintaining update rules

    Hi Experts
    please reply <removed by moderator>
    i am trying to activate self defined SIS structure but at the time of creating maintain update rule in transaction MC24 i am getting error
    please guide what i am missing
    DDIC structure S990 for info structure S990 not active in Data Dictionary
    Message no. M2464
    Diagnosis
    It is not possible to maintain the updating procedure since DDIC structure S990, which belongs to info structure S990, is not active.
    The info structure has probably been saved but not generated.
    Procedure
    The info structure must be generated.
    Regards
    Abhi
    Message was edited by: Manish Kumar

    Hi ,
    Just check whether update rules has any routines or fomula, or constant.
    If so collect that in a request and transport it.
    Assign points if it is helpful.
    Thanks
    Shanba

  • Error in Transporting Update Rules

    Hi,
    I am transporting ODS, Info package and UPdate Rule from Dev to QA.
    I request seems to be fine, but transport ended in error.
    ODS, IP and UR got transported , but the UR is inactive.
    and i dont havr the permission to activate that in QA system.
    What could be the reason for inactive UR in QA.

    I have done that also,
    But it is giving error as :
    Error when activating update rule 49U3N0VD2IJOOELH5APVBBIP1                  
    Activation of the update rules for ZFY6_SDT ZIB_SHIPDAILY_TRAN               
    IC=ZFY6_SDT IS=ZIB_SHIPDAILY_TRAN error when checking the update rules                                                                               
    Start of the after-import method for object type R3TR UPDR (Delete Mode)     
    Update rules 49U3N0VD2IJOOELH5APVBBIP1 read in version M                     
    Errors occurred during post-handling RS_AFTER_IMPORT for UPDR L              
    RS_AFTER_IMPORT belongs to package RS                                        
    The errors affect the following components:                                  
        BW-WHM (Warehouse Management)                                             
    Please help me out, all the dependent objects are present in the QA
    Dependent Objects:
    Info Objects
    ODS
    Info Source
    Transfer and comm str
    Info pacakge

Maybe you are looking for

  • Face detection is not working on iPhone 4 camera after update to iOS 5.1

    I managed to update my iphone 4 to IOS 5.1.. and I was just checking the list of features in new update which said camera will detect faces but it is not working on iphone 4 it seems or am I missing something??

  • Laserjet 2550n only printing in yellow

    My HP color laserjet 2550n no longer prints in full color + black. I've removed and re-instered ecah ink cartridge and there is no indication that I'm low on toner. I've also unplugged the printer and  disconnected the usb connection. I Let the print

  • Connect iPad to tv

    What extra cables, wires, etc do I need to connect my iPad 2 to my TV? I want to watch netflix videos thru my iPad. Thanks

  • Tried to finalize my movie.  Not enough heap(?)

    Tried to finalize my 28 minute imovie.  Aftrer 2 plus hours computer said "error, not enough HEAP"  How do I correct that.   I must add that I did finalize once completely but had to redo part.

  • Fill form with JS data; dropdown

    Looking for a way to have a drop down of people or companies. When you select a company the city, state, etc the indo will auto fill text boxes. what is my best options to go about this? I have been trying to use this http://acrobatusers.com/tutorial