Counter in a cube with two update rules

Dear experts,
We are implementing a counter to count the occurrences of a characteristic. We are following the steps of the how-to document. But in our case, our cube where we have added the KF for the counter, has 2 update rules. Our question is which update rule shoud have the KF = 1. The characteristic we are going to count is mapped in both update rules.
Thanks in advance,
Inma

Thanks for your answer but, if the same value of the characteristic I want to count comes from both update rules, will the counter value be 2? in my case, value of 2 would be wrong.
Thanks,
Inma

Similar Messages

  • RSAU461, problem with activating update rules for cube 0csrv_c01

    Hello,
    I have added new fields to data source 0CRM_SRV_PROCESS_H, then changed transfer rules, added characteristics to ODS 0crm_proh, and reactivated update rules 80crm_proh. But now I have problem with second update rules for this cube named 80crm_cnfh. It is not active and all fields in it have red status, error RSAU461, and I cannot activate it.
    What I should do? Should I change somehow that second source for data to my cube (change infosource, ods, rule?)
    Regards
    Radek

    hi
    As said by the Mti u have just changed the info objects in the ods and u need to map them with the specific info objects from the ods.
    double click on the Update rules of the cube and go to the characteristic tab there map the newly added info objects with the IO in the ods.
    Khaja

  • Designing a cube with two Fact tables

    Hi,
    I am new to multi-dimensional modeling. I am trying to define a cube with two fact tables which have many to many relationship. so I came up with following schema:-
    I want to design a cube so that I can get the count of "FactOne" items which are related to "FactTwo" items having particular status. So, I want to get the count of "FactOne" where they are related to items in "FactTwo"
    which have "Status1". Could anyone please guide me how would I do it?
    Thanks

    Hi Ahsan,
    In your scenario, there are tow fact tables on your Data Source View, and now what you want is that "count of FactOne" which are related to "FactTwo" in a particular status, right?
    It seem that you have find a blog that describes how to select facts with reference dimension on you another thread. As per my understanding, you can follow that blog to achieve your requirement.
    http://bifuture.blogspot.com/2011/11/ssas-selecting-facts-with-reference.html
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.

  • Two Update Rules populating One Infocube

    Hi all
    Im a little confused:
    1) I have to add a characteristic to an Infocube.Which I did and also assigned it to an appropriate dimension.
    2)There are two update rules populating the Infocube.
    3)The new charcteristic that ive added to the cube has to be populated using a routine.
    My confusion is that to which update rule should i add the routine to?whats the deciding factor? how do i decide?
    I would like to have more details and preferably any document which clarifies such scenarios.
    Thanks

    You can do it using both update rules or...
    Find out which are the related characteritics and write the routine in that update rule:
    Ex
    Cube has
    Project | Activity | Manager | Team Member | .....
    Update rule 1 :
    Project | Manager |...
    Update rule 2:
    Project | Activity | Team Member | ....
    and the added characteristic is Project Status and it makes more sense to add it to update rule 1 rather than update rule 2...
    my 0.02
    Arun

  • Help with an Update rule

    Hello,
    I'm trying to write an update rule to transfer some data from one cube to another. I'll try to explain as much as i can :).
    I have an info object FACID (contains the facility ID for XYZ facilities), which has various attributes including one called ZR profit center (ZRPC). This is in both cubes.
    1. I need to only transfer records from cube 1 to cube 2 where the ZRPC has a value.
    2. I need to convert the FACID record to ZRPC record.
    3. I also need to import a Statistical Key Figure (SKF) for those concerned records.
    Cube one:
    FACID         ZRPC       SKF
    1000            4000         PD1
    1234            4456         PD2
    5678            5688         PD3
    4562                            PD4
    3457                            PD5
    2467            4566         PD6
    Cube two:
    FACID        SKF
    4000          PD1
    4456          PD2
    5688          PD3
    4566          PD6
    I hope that makes sense. I need help in the the ABAP program, since I don't have the requisite knowledge to write a complicated program.
    Sam
    PS: Ok, Ok... Who am I kidding.I don't have the knowledge to write even a simple ABAP program. :):)

    Hi,
    [code]
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line -
    TABLES: ...             " << This u can define in the TOP include
    Global table. referred to in update routines.
    DATA: ...
    $$ end of global - insert your declaration only before this line -
    FORM compute_data_field
    TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
    USING COMM_STRUCTURE LIKE /BIC/CSDB_VW_KHAT_SHIFT_HOURS
    RECORD_NO LIKE SY-TABIX
    RECORD_ALL LIKE SY-TABIX
    SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
    CHANGING RESULT LIKE /BIC/AHCA_O00500-PROFIT_CTR
    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
    select * from CI_C001 into table i_CI_C001 where zrpc ne space.
    select * from RI_C001 into table i_RI_C001 for all entries in i_CI_C001
    where ZFACID eq i_CI_C001-zrpc.
    loop at i_CI_001.
    read table i_RI_C001 with key ZFACID = i_CI_C001-zrpc.
    if sy-subrc eq 0.
    update RI_C001 set skf = i_CI_C001-skf.
    endif.
    endloop.
    commit work.
    if sy-subrc ne 0                           " <<  Inserted this code
      rollback.                                   " <<           "
    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.
    [/code]
    aRs

  • Cannot update data from DSO to Cube with further update in process chain

    Hi Guys,
                  This is the message am getting when am trying to update to cube by process further update with process chain.Process fails at further update with the following below message.
    However at DSO level i can see the data mart status but no request at cube level.
    Error Message:
    Cannot update request REQU_D57WAP7Z2WAI1CG5Y5OQ5W7JR in data target
        Message no. RSM1523
    Diagnosis
        System checks show that request REQU_D57WAP7Z2WAI1CG5Y5OQ5W7JR cannot be
        updated to a data target.
        The system checked whether
        o   request REQU_D57WAP7Z2WAI1CG5Y5OQ5W7JR is already in the data target
        o   the data target has active update rules for the InfoSource
        o   the data target was selected for updating
        o   locks exist
        o   for a DataStore object as a data target, that the request was
            updated in the correct order, if the DataStore object stipulates
    When i check the monitor screen under status tab it says "A caller 01, 02 or equal to or greater than 20 contains an error meesage" and under details tab "Data Package 1 : arrived in BW ; Processing : Data packet not yet processed "
    Regards,
    Krishna.
    Edited by: krishna Krishna on Mar 4, 2009 6:37 PM

    Hi
    It seems you used infopack when you select update data inot datatarget then system prompts you a infopack.That's the infopack which is generated by system being used in process chain variant to update data into datatarget.
    Create new infopack/ DTP manually then use that infoapck/DTP on the process chain variant then try.
    Chandu.

  • Update Rules in ABAP to consolidate two InfoSources into one ODS?

    Hello experts,
    I want to solve the following problem with ABAP update rules (I am a novice in ABAP):
    In an Oracle DB I have two tables TRANSACTIONS and PARTICIPANTS with an 1:n relationship:
    One or many PARTICIPANTS can be assigned to one TRANSACTIONS and
    one TRANSACTION can be assigned to one PARTICIPANT.
    I want an ODS that contains TRANSACTIONS with the number of male and female PARTICIPANTS of each transaction.
    So I created two InfoSources each representing one of the above tables:
    IO_TRANSACTION with COMM_STRUCTURE:
    TRANS_ID
    TRANS_DATE
    TRANS_STATE
    IO_PARTICIPANT with COMM_STRUCTURE:
    PARTIC_ID
    PARTIC_TYPE (1=male and 2=female)
    TRANS_ID
    Now I want to consolidate all male participants into the data field PARTIC_M
    and all female participants into the data field PARTIC_F of the following ODS:
    Key fields:
    TRANS_ID
    TRANS_DATE
    TRANS_STATE
    Data fields:
    PARTIC_M (number of male participants)
    PARTIC_F (number of female participants)
    I tried it with the following lines of ABAB Code in the ABAP routine
    for the datafield PARTIC_M:
    IF COMM_STRUCTURE-/BIC/PARTIC_TYPE = 1.   " 1 is the value for  "male"
       RESULT = 1.
    ELSE.
       RESULT = 0.
    ENDIF.
    But after loading both InfoSources into the ODS the fields PARTIC_M and PARTIC_F are empty!!
    Do I have to do some kind of joint in a start routine in order to connect Participant Information with a specific transaction?? How?
    Thanks a lot
    Of course, solutions will be rewarded
    Axel

    Hi Venkat,
    Thanks for the hint with the common key fields.
    My problem is, that both tables have only the field TRANS_ID in common.
    So when I update TRANSACTIONS with the three Key fields TRANS_ID, TRANS_DATE and TRANS_STATE
    and PARTICIPANTS with the Key field TRANS_ID into the ODS I get data like this:
    TRANS_ID, TRANS_DATE, TRANS_STATE, PARTIC_M, PARTIC_F
    TR01                                                                        1              1
    TR02                                                                        0              3
    But I also need the fields TRANS_DATE, TRANS_STATE to be filld with data!
    any suggestions?
    Axel

  • Update Rule Migration from ODS to Cube --Error

    Hello SAP Experts,
    I am triing to migrate Update Rule (from 3.x to 7.0 transformation) from DSO 0QM_DS01 to Cube 0QM_C12 and i am getting error.
    Error message:
    Internal error: 32 0NOTIFICATN 01 Standard Group MASTER - Contact SAP.
    Similary with another update rule migration from DSO 0QM_DS02 to Cube 0QM_C13 .
    Error message:
    Internal error: 41 0NOTIFICATN 01 Standard Group MASTER - Contact SAP.
    I dont have any clue about the error message. Need your help to figure it out the issue.
    Thanks in Advance.
    Lasya.

    MR..V.. you are the man... my problem has been solved.
    Anyway my problem has been solved.. do you mind asking one more question regarding the above error?? how did you think about the above solution.. just changing it from read master data --> direct assingmen then back to read master data.. Please tell if i come accorss anything in future shall i follow the same.. please tell me..
    I have assigned full points to you.
    Thanks for all your help.
    Lasya.

  • Unable to map Update Rule with u201CMaster data attribu201D option

    Hi,
    Does anybody know the reason why sometimes, in update rules to an ODS, I cannot map an InfoObject with the option u201CMaster data attribu201D?
    I have the characteristic in the ODS, and for another update rule, to the same ODS, I am able to map this field correctly, but for a specific rule, the u201CMaster data attribu201D field appears in blank when I press F4.
    Strange this behaviouru2026
    Can anybody help me with this issue?
    Thanks,
    Best Regards,
    Joana

    Hi  Shanthi,
    I didn't insert the InfoObject as an InfoProvider.
    The problem is that I have two update rules for the same ODS object. For one I can map the characteristic correctly, and for the other, when I press F4 in the "Master Data Attrib", no characteristics appear.
    Thanks,
    Joana

  • Cube update rules transport failing-urgent

    Hello All,
    We had a set of TPs created for our project. All went well to the QA system. But when we tried to move these transports to the PROD, first we had a set of TPs failed, all related to the activation of the update rules of the cube we have. We found that this happened ( I think so) because we missed sending changes of a few display attributes, changed to Navigational attributes, to PROD. These navigational attributes are used in the cube. Even after sending the changes of display attributes to NAV attributes, still the TPs are failing. We tried activating the cube update rules by creating new TP and transporting to PROD. But the TP failed.  As nobody in us have the authorization for activating the update rules directly in PROD, we are facing the problem. We are in doubt even if we create another new TP for activation of the UR, we may still fail to activate the UR.
    Can anybody help me with this.
    Many Thanks in advance
    Vinay

    Hello Dinesh,
    When I recreated transports, I included the cube and its update rules in 2 transports. All other object, like the infoobjects changed/created, Navigational attributes are already in production box. When I sent the TPs with cube activation and update rules activation, the TP with the UR activation failed again.
    Hi Siggi,
    When I try to open the update rules in PROD, I am unable to open and I get a message that there is error in UR coming from the data mart infosource to the cube.
    Could you please suggest me something more.
    Thanks a lot
    Regards
    Vinay

  • Error in Update rules while defining CKF at cube level

    Hi,
    I am willing to create a Calculated Key figure at CUBE level using formula function
    <b>Unit Cube: Item Cube / Units</b>
    <b>Definitation</b>
    Item Cube - Total Cube for line
    Units   - Actual destination quantity in alternative unit
    <b>Units</b>
    The Unit for ‘Item Cube’ is Volume unit and
    The Unit for ‘Units’ is Alternative Unit of Measure for Stock keeping Unit
    When i tried to create CKF at Cube level in update rules using formula it is displaying me an error that no unit is available in source system for the CKF Unit Cube
    How can I proceed on this
    Thanks

    Hi
    Have you transferred the global settings from the context menu of source system where all the units from the source is replicated to BW system
    Regards
    N Ganesh

  • Update Rules to deal with Asymmetrical Records

    Hello,
    Is there a way with standard update rules one can handle the following scenario:
    Incoming Datapackage:
    Char  Char1   Char2
    XYZ    A      -
    XYZ    -      B
    Desired result in an ODS (Char is the key of the ODS)
    Char  Char1   Char2
    XYZ   A         B
    It is not known ahead of time whether char 1 or char 2 will be filled in so 2 URs is not an option.
    An intermediate ODS or recursive look-ups are option but I am wondering if there is an option like:
    "update only if non-blank" or is that too much to expect?

    Why would the active table be empty? All active records will be saved to the active ODS Table...
    I would code the following:
    Select CHAR2 FROM ODS_TABLE WHERE CHAR = XYZ INTO TABLE
    ODS_VALUE.
    IF sy-subrc = 0.
    DATA_PACKAGE-CHAR2 = ODS_VALUE-CHAR2.
    MODIFY DATA_PACKAGE.
    ENDIF.

  • Update rule not working with high data load.

    Hi all,
    i have a problem with a update rule: it's an update loop in a dso, in the start routine i do 3 select for all entries in data-package on the active table of another structure; then i read those table to update some values in my update rule.
    I did some test and it seemed to work well (i tryed for example just for a plant) but when i launched it for all the records in the dso the result was differente and, for the same plant, the values where not updated correctly (they were blank).
    Now the routine is really the same so it sound strange to me that launching the infopackage without filters i can't get the same correct result of my previous test but i was wondering what could be the reason of this error...
    Anyone can help?
    The start routine is this:
      REFRESH i_tab.
      SELECT field1 field2 field3
        INTO TABLE i_tab
        FROM target_dso
        FOR ALL ENTRIES IN DATA_PACKAGE
        WHERE deliv_numb = DATA_PACKAGE-deliv_numb
          AND deliv_item = DATA_PACKAGE-deliv_item
          AND act_gi_dte <> l_blank_date.
    then i read this table in the other routines...

    It is hard to say.  What does the update rule look like?
    after the read statement, you could check the return code.  If it is not zero, go into an infinite loop, and debug it via SM37.
    read table....
    IF sy-subrc <> 0.
      WHILE 1 = 1.
        "debug in SM37.
      ENDWHILE.
    ENDIF.

  • Loading ODS to Cube Creates two records

    I am using one ODS to load data into Cube 1 and Cube 2.
    Cube 1 is a delta load and Cube 2 is a full load. The design is that Cube 1 will have all the daily updates from R/3 and Cube 2 will be loaded with a snap-shot of the ODS data at midnight. When the snap-shot is loaded into Cube 2 an update rule will change characteristic infoobject  "Snap-Shot date" to the current date.  So, cube 2 will contain all the nightly snap-shots with different dates
    The initial load of Cube 1 runs fine and it loads 1488 records. When I run Cube 2's full load it add 2976 records (double). When I look at the Cube 2 data I see one record with the Snap-shot date that is blank and one with the current date in it.
    I have to click on a key figure that has an "Update Type = Addition" to get to the characteristics update rule for "snap-shot date". Is the fact that the key figure is additive causing the creation of two records?
    Regards,
    Mike...

    Yes, that was my problem I didn't have the update rule applied to all the key figures. When I put in the update rule and I saved it, I said "no" to the pop-up "Apply to all key figures".
    I just re-edited the update rule and this time I clicked "yes" apply to all key figures. Load is working fine now...
    Thanks,
    Mike...

  • Transport of update rules from one BW system to another

    Hello all,
    SAP BW 7.0. Two systems: acceptance, development.
    We adjusted 4 old update rules between DSOs and InfoCubes in development system. Trying to transport it to acceptance system (transactions se01, STMS).
    Two update rules were transferred succesfully as executable. Other two were transferred as inactive. Overall transfer error code 8.
    Strange that when I select some of these update rule and push "check" button it says no errors. But in transport log errors exactly in checking and activating of these rules. Please if someone faced with such strange things suggest a solution.
    Want to add that rules are consistent, they are transported fully to acceptance. Proble just two are inective. In development they are active, of course.
    Activate after transport not an option. They must be transported as active, all 4.
    Appreciate any thoughts, thanks in advance,
    Pavel

    Hi ,
    My friend , kindly follow the steps
    Step1
    Analyze the transfer rules in development , check for any start routines if any , and also field routines , and also some Tables which are associated with the start routines.
    Step2
    In case if you find those , first transport those and collect it in a separate request and transport it
    Step3
    later collect a transfer rule request and go with Over write option ( please tell your BASIS guys )
    Hopefully your issue will be solved
    santosh

Maybe you are looking for

  • How can I sync my iPhone to a new library without losing all the data on the phone?

    I recently switched computers as the old one had died but I can't transfer any of my music from the iTunes to the new phone. Is there any way I can backup the phone and then sync it with the new library and somehow restore all my app's etc? Thanks, R

  • Wireless Mighty Mouse Refuses To Scroll Up

    Hello, I have a small issue. My wireless mighty mouse suddenly refuses to scrcoll up. I changed the batteries, reconfigured it in Sys Preferences. It will scroll every direction but up. Do any of you fine people have an idea of what is wrong? Thanks

  • Looking forward to upgrade ram for 24" iMac7,1.

    Hi, I have been happily using my iMac 7,1 (24") for last few years. Recently I have bought Nikon D7100 and when I have started to digital manipulation using Adobe Creative Suit, it is clearly noticeable that it struggles. Therefore, I would like to u

  • Can CarPlay be retrofitted to my 2013 Honda Accord

    I own a 2013 Honda Accord with full touch screen radio and controls.  Since the touch configuration already exists, can the software in the car be updated to the CarPlay configuration?

  • Can't update to  iTunes 12.0.1

    I've tried to update through the app store and get the same problem as others, it downloads but does not install. I have also tried the manual way by downloading iTunes from http://www.apple.com/itunes/download/ but it won't download anything. Is the