Processing Sequence of update rules

Dear All,
Before loading a new record in the update rules, I would like to do a select on a different table based on the information in the comm_structure-record. 
1) For performance reasons I cannot put this select in the start routine, on the other hand, I want to be absolutely sure that the select is executed before each record.
2) I cannot depend on the sequence because for some key figures I have different routines than for other key figures.
I'm sure this is a general problem, so can someone help me with the best practice to do this?
thanks,
Tom

Hi Tom,
well you can use the start routine to select all relevant records into a global internal table.
select * into gt_tab from <tablename>
for all entries in data_package
where <fieldname> = data_package-<fieldname>. ....
And in the relevant routines just do a
read table gt_tab into wa_tab
with key ....
Hope this helps!
regards
Siggi

Similar Messages

  • Error in update rules *urgent*

    Hello all,
    We got error in loading 2LIS_03_BF due to loss of connectivity to source system ,
    After correcting the connection  I tryed to reload the delta.
    while loading we got all the records <i>(100000 of 100000)</i> but the processing is still running at
    <b>Second step in update</b>
    plz through light on this issue
    Regards..... SAP

    Hi SAP,
    HAs the extraction been finished for your data load? If so are you able to see the data packets in processing in yellow state? then try making the status red and then update the data pckages manually.
    If your data packets taking time to get processed in the update rules stage, reduce the data packet size and then reload, this should give less records to process in the update rules.
    Regards
    Srini

  • Migration of update rules to transformations

    Hi Experts,
    We are in process of migrating update rules to Transformations.
    We have following data flow for one info cube.
    *Existing*
    Data source -
    >transfer Rules--->info source->update rules--
    >cube
    New
    Data source -
    >transformations----
    >cube
    When I am trying to create transformations, I am not able to read master data properties for all info objects.
    It gives error that No info object is available.
    Now my question is
    it is not possible to read mster data in one transformation?
    If I change my new scenario to this then it workes.
    Data source -
    >transformations----->info source(new BI7)--
    >transformations -
    >cube
    But then I need to convert All existing info source to new one in BI7 then only I can use read from master data functionality.
    Please advice.
    <removed by moderator>
    Edited by: Siegfried Szameitat on Nov 25, 2008 9:05 AM

    In the Transformation maintenance, open the rule details.
    Here you see the source fields of the rule.
    Update 'IOAssgnmnt' with the InfoObject corresponding to the field from the source system.
    Example
    Field PERNR
    Description Personnel No.
    Type NUMC
    Length 8               
    Conversion
    IOAssgnmnt 0EMPLOYEE  <-- Entered manually
    Then you should be able to use the 'Read master data' functionality.
    Regards,
    Lars

  • Process: Start Routine, Delta, Update Rules

    Hi SDN,
    Can someone point to detailed discussion on the events related to loading, such as:
    Start Routine is exectued before each data package, or entire load?
    Update rules are applied row by row or the entire KYF column in a data package is processed first?
    When is delta determined, before Start Routine is executed, or, after it is executed, and before update rules are applied? This is important to know if we are dropping records from the data package.
    If you have the answers, would love to hear and appreciate.
    Thanks.
    Saf.
    P.S. I always award points.

    Thanks Farhan,
    If you don't mind, can you outline how delta is determined, between ODS and ODS and ODS and Infocube. If I am correct, records in the sender object are marked as sent. Can I look at the field where the flag is?
    Also, you are saying that only those records make up the data package which are new, in case of a delta load. That means, if there were no new records, Start Routine would not even execute, or it still will but do not have any records processed?
    I already awarded the points.
    Thanks.
    Saf.

  • Update Rule Timestamp to mutiple data targets show serial processing

    All,
       I just noticed something very strange.  One of our ODS has two infocubes as data targets.  What I observed is that even though there are mutiple work processes spawned to process multiple data packets to the cubes the update rule is processed serially within each of them to the targets.
    In turn I am saying that within EACH data packet updates data to the different targets serially.  Is it true or is there any RSADMIN paremeter for this to make it go parallel?
    Source
    |
    |Packet 1Update Rule ACube AUpdate Rule B--Cube B
    |    
    |Packet 2Update Rule ACube AUpdate Rule B--Cube B
    |
    |Packet 3Update Rule ACube AUpdate Rule B--Cube B
    |
    |
    |....
    Thanks

    Assuming that it does it (and there is no way around)..
    It is not really that much of inefficiency. You have a fixed amount of resources (CPU, DBMS, memory) which is flexibly distributed at two levels already (work processes, data packets in parallel); introducing a third level might make it complex without bringing much benefits.

  • Update Rule: error during activate process

    Dear Guys!
    I could not activate one of my update rules. When i go to transport connection
    to try solve the problem, found this errors:
    Object '0SPL_EXPHRZ' (IOBJ) of type 'InfoObject' is not available in version 'A'
    Object '0SPL_TARGET' (IOBJ) of type 'InfoObject' is not available in version 'A'
    Object '0SPL_TRSORD' (IOBJ) of type 'InfoObject' is not available in version 'A'
    If i ignore this errors and transport the rule, i receive the RSAU466 message.
    But i checked the rule's program and didn't found any error.
    Can somebody please help?
    Regards,
    Wilson
    PS.: Sorry my english, it's not my natural language.

    Hi Manga!
    First of all, thank you for the attention!
    I solved the update rule's problem transporting the infocube and the rules again. The infocube after the rules.
    Now every thing is OK. I sent your tips to the BW-Administrator, he will solve the problem about 0SPL_EXPHRZ, 0SPL_TARGET and 0SPL_TRSORD, because the rule's problem it wasn't related with this.
    Best Regards
    Wilson.

  • Error in activation of update rules.

    Hi,
    I get an error - 'IC=0PP_C02 IS=2LIS_04_P_MATNR error when checking the update rules' while activating the update rules in BI content. Rest all the data flow is activated except update rules.
    Can anyone throw some light on this?
    Thanks & Regards,
    Manisha

    Hi ,
    Check the update rule.
    In that there are two routines.
    In the first one Goods being processed & 2nd one as well , there is syntax err.
    /BI0/APP_O010 doest exist.
    Mostly it is fetching some data from some dso in this routine.
    So it should be activated.
    Then update rules will be activated.
    Regards,
    Devina

  • Can not view update rules on production BW server

    This can be quite a time-consuming problem as I can't always tell if the latest update rules are successfully transported to production. 
    Most every where else in production I can choose to DISPLAY however this is not the case with update rules only.
    Is this a typical setting for most companies?  Can I turn off this setting so I can at least DISPLAY the update rules?

    hi,
    as far as I know you can only see any rules (transfer, update etc.) in BW in change mode.
    if you know where to change this setting (i.e. to see rules) - do it
    you only have to remember to change it on dev and transport.
    Regards,
    Andrzej
    ps. work around would be to debugg it with simulate data package processing, how to do this?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/advanced sap bw data transformation
    page 12
    Message was edited by: Andrzej Krysiuk

  • Key Figure missing in update rules

    Hi All,
    A Key figure is missing in Update rule of ODS & Infocube.
    But it is listed in infosource ( comm. & transfer structure) of ODS.
    Why it is so . Any suggestions.
    infosource->ODS_>infocube.
    Please help me.
    Edited by: anand k on Mar 24, 2008 12:16 PM

    Hi,
    I will give the process that I followed (as you specified) now:
    1. I deleted the Source System Assignment for the Infosource.
    2. Next went to Source Systems. Right click on source system and replicate it.
    3. Select the InfoSoucre and assign the Data Source.
    4. Here I automatically got the Field(ZZMBGBTR).
    5. I added the field in the Communication Structure. and then assigned the Transfer Rules.  Next activated the InfoSource.NExt checked the InfoCube for the KeyFigure. That InfoObject ZQTY is available.
    6. I activated the InfoCube. Right Click and select Create Update Rules. Still I didnt got that InfoObject.
    Regards
    Jay

  • 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 after transporting to QA

    Hi,
    When we transport Info cubes and update rules along with Process chains. There are the following errors in Transport request(XXXXXXXX).
    1. Error when activating update rule 22HSFD3ZMALU46LS0R8PRF2MW
    IC=ZSDPCXY2 IS=2LIS_11_VAITM error when checking the update rules
    2. Error when activating update rule 7NT4WIDPDCN2ERFDRXIGH95PM
    IC=ZSDPCXY2 IS=2LIS_12_VCHDR error when checking the update rules
    and etc.
    Then we activated and saved all the erroneous update rules in another tranport request(YYYYYYYY) and again we transported alongwith the previous transport request(XXXXXXXX).
    The last request(YYYYYYYY)was successfully tranported and still there are same errors in TR(XXXXXXXX).
    Quick answers will be highly appreciated.
    Regards,
    Vijay

    Hi Vijay,
    Next time you would have transport only (YYYYYYYY). Transport Request (XXXXXXX) was not required to be moved.
    Normally Update Rule gets deactivated in QA when any changes to the CUbe/ODS are moved.
    Thus either you can transport transport request for only active update rule to QA or activate your UR directly in QA system in case you have authorization to do that.
    Regards,
    Rohini

  • Update Rule Routine Problem

    Hi
    i have wriiten a update rule routine.
    in that routine i am fetching comp code ,GL Acct. from SKB1 table and match those records wth Data Package records.
    Data Package has both Open and Closed items. so i need to match the Comp Code and GL Account which i have fetched from SKB1 with Data Package Comp Code and GL account which records will be matched they will go to Target ODS otherwise Delete from Data Package.
    But data is not coming properly in Target ODS.
    i have debug the routine and found , there are 10 records(Comp Code + GL Acct.) has been fetched from SKB1
    and Data Package has Total 416 Records. Only 20 Records has been gone to Target ODS while I have seen the 216 Comp Code and GL Account combination has been successfully matched with 10 Records of SKB1
    Below is the code in Start routine.
    Note: Data Package has Multiple Records for a Combination of Company Code and GL Account which is present in SKB1.
    How can i resolve this problem.
    ********Logic to Fetch Open items GL Account**************
    *Fetch data from SKB1*********
    SELECT /BIC/ZMCFBUKRS
           /BIC/ZMCFSAKNR
           FROM /BIC/AZOCFSKB100
           INTO TABLE TB_ZOCFSKB1
           FOR ALL ENTRIES IN DATA_PACKAGE
           WHERE /BIC/ZMCFBUKRS = DATA_PACKAGE-COMP_CODE
           AND  /BIC/ZMCFSAKNR = DATA_PACKAGE-GL_ACCOUNT
           AND /BIC/ZMCFXOPVW = 'X'.
    ***Fetch records from FI GL Data Package which match with
    ***internal table TB_ZOCFSKB1
    LOOP AT DATA_PACKAGE INTO WA_DATA_PACKAGE.
    READ TABLE TB_ZOCFSKB1 INTO WA_TB_ZOCFSKB1 WITH KEY
    /BIC/ZMCFBUKRS = WA_DATA_PACKAGE-COMP_CODE
    /BIC/ZMCFSAKNR = WA_DATA_PACKAGE-GL_ACCOUNT
    binary search.
          IF sy-subrc ne 0.
            DELETE TABLE DATA_PACKAGE FROM WA_DATA_PACKAGE.
          ENDIF.
    ***Clear Work Area****************
          CLEAR WA_TB_ZOCFSKB1.
          CLEAR WA_DATA_PACKAGE.
        ENDLOOP.
    ***Refresh internal table*********
       REFRESH TB_ZOCFSKB1.
      ENDIF.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    Edited by: AtulMohan Mishra on Feb 9, 2011 11:22 AM

    Hi,
    It is very important that you SORT the internal table before you do a READ with Binary Search.
    SORT TB_ZOCFSKB1 BY /BIC/ZMCFBUKRS /BIC/ZMCFSAKNR.
    You are sure to miss results unless you do.

  • 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

  • How do I tell if a particular update rule is used

    I have inherited a sales reporting application in BW 3.5. It has update rules from 2LIS_13_VDITM to 4 level 1 ODS. There are update rules from those 4 level 1 ODS to Level 2 ODS and cubes. So far so good. However there are also update rules from 2LIS_13_VDITM to the L2 ODS and to the cubes direct.
    My belief is that these update rules are never used. This is based on the production infopackage settings which do NOT have these objects ticked as data targets. However i would like to know for sure that these update rules have never been used.
    Question: Is there a way to tell this eg.
    a) is there a table linking infosource to destination with a date last used,
    b) or a table linking infopackage to destinations showing when a particular destination was last changed,
    c) or some other mechanism?

    Hi,
    Chk the L2 ODS which have update rules from 2LIS_13_VDITM if it has data loaded in it in production.
    If its loaded means it is used.
    You can also chk whether the InfoPackage which loads this data is used in any process chain, and then chk if that chain is scheduled in production.
    Regards,
    Mansi

  • Update Rule error while loading the data

    Hello All,
    I tried to do the init load for the datasource 2LIS_02_VAKON (Sales Document Condition), But it error's out in the Update rule saying:
    Short text: Error when generating the update program
    Long Text:  Diagnosis
         An error occurred during program generation for InfoSource 2LIS_11_VAKON
         and InfoProvider 0SD_C15 . This may be extrapolated to incorrect update
         rules.
    Procedure
         Check and correct your update rules and then generate the update program
         again. You can find help on the error in the error log.
    The update rule looks very fine. I even deleted it and re created, but no success..... Please give me your thoughts abt it..... Any suggestions will be great for me.....

    Hello Gokul,
    I could'nt see any analyse button in RSMON. This is the only error message I could get from the Process monitor:
    Short text: Error when generating the update program
    Long Text: Diagnosis
    An error occurred during program generation for InfoSource 2LIS_11_VAKON
    and InfoProvider 0SD_C15 . This may be extrapolated to incorrect update
    rules.
    Procedure
    Check and correct your update rules and then generate the update program
    again. You can find help on the error in the error log.
    Do you expect something else ? Also I went through your OSS note, they are asking to apply support pack 18. Is this a serious issue to apply SP? Because in Quality and Prod it loads fine......
    Please let me know your idea

Maybe you are looking for

  • I have windows 8.1 and itunes is installed but my ipod don't work with it?

    when i plug in my ipod itunes comes up and say "an ipod has been detected but it could not be identified properly.                                                                         please disconnect the ipod, then try again.                    

  • Copying bookmarks and quotations

    I'm writing a paper based on a ebook that I downloaded in PDF format.  I'm using bookmarks to take notes, and I need to get my bookmarks into a text document somehow.  I can't see any way to copy or export bookmarks.  Any ideas?  Also, I will need to

  • Internationization

    Hi, I am facing issue while displaying Japanese characters in the Text Box on an HTML/JSP page. When I take input from the user in the Text box , it shows proper japanese characters in the text box and also on the labels. But when the same is saved i

  • How to identify responsive themes

    In Poojah's Best Practices for Responsive Projects, she warns against using responsive themes in non-responsive projects. The choice of themes seems to be identical for both responsive and non-responsive projects. How can I identify which themes are

  • Error Code 150:30 Photoshop Will Not Open after System Software crash

    Error Code 150:30 Photoshop Will Not Open after System Software crash