Navigation attributes in Updates Rules.

Hi,
I´d like to know if it is possible to use a navigation attribute of one InfoCube in the update rule of other InfoCube. For example, i am trying to consolidate some date using the 0Customer attibute 0City, but when i create a new update rule to my InfoCube the only object avaible is 0Customer, its navigation attribute (0City) is unavaible in the Update rule.
Thanks.

Hi Luiz,
check the "Master Data Attribute of" update method in the help link below and see if it does what you need:
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a64e0e07211d2acb80000e829fbfe/frameset.htm

Similar Messages

  • Can routine replace "master data attribute of" update rule for performance?

    Hi all,
    We are working on CRM-BW data modeling, We have to look up agent master data for agent level and position for each transaction data. So now we are using "Master data attribute of" update rule. Can we use routine instead of "Master data Attribute of" ? Will it improve the loading performance? Since we have to load 1 lack transaction records , where as we have 20,000 agent details in agent master data.My understanding is, for each record in data package the system has to go to master data table and bring the agent details & store in cubes. Say one agent created 10 transactions, then this option "master data attribute of" will read the agent master data 10 times even though we are going to pull same details for all 10 transactions from master data. if we use routine, we can pull the agent details& storing in internal table removing all duplicates and in update routine we can read the internal table.
    Will this way improve performance?
    let me know if you need further info?
    Thanks in advance.
    Arun Thangaraj

    Hi,
    your thinking is absolutely right!
    I don't recommend to use the standard attribute derivation since it will perform a SELECT to the database for EACH record.
    Better implement a sorted table in your start routine; fill it with SELECT <fields> FROM <master_data_table> FOR ALL ENTRIES OF datapak WHERE OBJVERS = 'A' etc...
    In your routine perform a READ itab ... BINARY SEARCH.... I believe that you won't be able to go faster...
    hope this helps...
    Olivier.

  • Look up InfoObject's attributes in update rule

    Hello Gurus!!!
    I have an update rule that looks up for an InfoObject's attributes to update some fields of an InfoCube. Is there another way to do this look up than load all InfoObject attributes into an internal table from the start routine? I tried to read the attribute's table directly from the routine but it takes very very long time.
    Thanks for your help!!

    Hi:
    I think you made good progress with Viren's advice.
    Your statement looks fine. Now, I think you should play with some settings.
    1) Try reading a sebset without too many AND statements. I cannot tell you which ones are important.
    Look at it this way, if you get 1 million by htis complex Select, try to get 1.5 mil by simplifying the statement since you don't have memory problems anymore.
    If you are reading my Master Data table, why don't you read by KEY, Active Data and just one more FIELD (you pick the field which will give you least values).
    E.g.
    SELECT * FROM /bic/pzdocument
       INTO TABLE it_document
       FOR ALL ENTRIES IN DATA_PACKAGE
       WHERE
       /bic/zdocument = DATA_PACKAGE-ac_doc_no AND
       objvers = 'A' AND
       item_num = DATA_PACKAGE-item_num.
    Another one is that there is a good chance your DATA_PACKAGE-ac_doc_no  is there Multiple times. Now your Select Statement will read the DB table Multiple Times. So, you can do this:
    DATA_PACKAGE_1 like DATA_PACKAGE.
    DATA_PACKAGE_1 [] =DATA_PACKAGE [].
    DELETE ADJACENT DUPLICATES FROM DATA_PACKAGE_1
                 COMPARING ac_doc_no.
    Then, write your Code.
    SELECT * FROM /bic/pzdocument
       INTO TABLE it_document
       FOR ALL ENTRIES IN DATA_PACKAGE_1
       WHERE
       /bic/zdocument = DATA_PACKAGE_1-ac_doc_no AND
       objvers = 'A' AND
       item_num = DATA_PACKAGE_1-item_num.
    Its difficult to tell which one is more efficient. Your best bet is to spend soem time on these Codes and get the Statistics. Also, take an ABAPers help if available.
    Good luck,
    Forget: Its a good time now to play with your Laod Tansfer Settings (do it at the InfoPackage Level so that you don't change others' load)
    Go to InfoPackage, Sechduler from Menu, Data Transfer Settings for Max Size, no. of data packets.
    Ram C.
    Message was edited by:
            Ram Chamarty

  • Master data Attribute of ( Update rule)

    Hi SDN,
    I Just want to know the procedure to create update method of Master data Attribute of . coild any one tell me step by step
    Regards
    sujan

    3.     Creation of data targets
    •     In left panel select info provider
    •     Select created info area and right click to select Insert Characteristics as info provider
    •     Select required info object ( Ex : Employee ID)
    •     Under that info object select attributes
    •     Right click on attributes and select create transformation.
    •     In source of transformation , select object type( data  source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    •     Activate created transformation
    •     Create Data transfer process (DTP) by right clicking the master data attributes
    •     In extraction tab specify extraction mode ( full)
    •     In update tab specify error handling ( request green)
    •     Activate DTP and in execute tab click execute button to load data in data targets.
    cheers
    John

  • Update rule on master data attribute

    Hi
    In my cube, I have a master data object  0COMP_CODE, which has attribute 0COMPANY.
    Additionally, in the same cube, there's:
    Master data object 0CUST_GROUP, which has attribute ZBUSPART
    Master data object 0CO_AREA, which also has attribute ZBUSPART
    I need to fill a characteristic ZTAXCODE (not a master data object) in the cube, with the following logic:
    If 0COMPANY is between 1 and 30, populate ZTAXCODE with value of ZBUSPART from 0CUST_GROUP
    If 0COMPANY is between 31-9999999, populate ZTAXCODE with value of ZBUS_PART from 0CO_AREA
    I guess this will have to be done in the update rule.  Right now I have 0COMP_CODE in the communication structure. How should the code be written to populate ZTAXCODE, with value of ZBUSPART, based on the value of the attribute of 0COMP_CODE - 0COMPANY?
    Any help with getting me started here would be appreciated...
    Thanks
    Marty

    In the start routine.
    First, for all data package select company code, cust_group and zbuspart from cust_group and store it in the internal table.
    Second for all data package select company code, co_area and zbuspart  from co_area and store it in the second internal table.
    Third for all data package select company and company code from comp_code and store it in the third internal table.
    Now in the update rule routine.
    read the third table and get the company for the company code and if the value which comes from this company is between 31 and 9999999 then read from second internal table otherwise read from the first internal table and update the result.
    hope that is clear.
    thanks.
    Wond

  • Update rule from attribute

    Hi, my problem may be simple to solve, but I dont know too much ABAP so need some help.
    I want to populate Cost Center in my cube by mapping it to Responsible Cost Center (attribute of Order Number).
    How can I do that?
    Thanks,
    Frank

    Hi Frank,
    Insert Cost Center in Communication Structure and then in Start Routine of Update Rules insert this code (substitute definition with the IO code, cut off '0'):
    data: begin of t_costcent occurs 0,
    costcenter like /BI0/Pcostcenter-costcenter,
    responsible like /BI0/Pcostcenter-responsible,
    end of t_costcent.
    select * into corresponding fields of table t_costcent
    from /BI0/Pcostcenter where  objvers = 'A'.
    loop at DATA_PACKAGE.
    read table t_costcent with key
    responsible = DATA_PACKAGE-responsible
    if sy-subrc = 0.
    DATA_PACKAGE-costcenter = t_costcent-costcenter.
    modify DATA_PACKAGE.
    endif.
    endloop.
    Ciao.
    Riccardo.

  • How to use Master Data Attribute of in Update Rule's Formula

    Hi experts.
    In update rule, there is an option to use <b>Master Data Attribute of</b>. However, due to user requirement, I need to use that in <b>Formula</b> instead.
    <b>Field to update:</b>
    Profit Center
    <b>Logic:</b>
    If Cost Center is empty
    Then Profit Center
    Else
    Master Data Attribute of Cost Center
    I use the following formula at the moment but it is not 100% correct.
    <b>IF( Cost Center = '', Profit Center, Cost Center )</b>
    Appreciate if anyone could help me out.
    Thanks!

    Hi,
    The easier thing to do will be to use a Update Routine.
    Logic will be as follows :-
    If Cost center iss initial.
    Result = Profit Center
    else.
    result = Cost center.
    endif.
    Regards
    SM

  • Attribute or routine first in update rule

    Hi
    In my update rules if i populate a characteristics from master data (Ex: 0MATL_GRP from 0MATERIAL) and write a routine to populate other keyfigure based on the attribute. Will it work when i execute the infopackage.
    My requirement is after populating the 0MATL_GRP only, the key figure should be calculated based on the 0MATL_GRP.
    Hope i am clear.
    Regards
    Annie

    Hi
    Thanks for the replies:
    PB: <b>One more way is..just add 0MAT_GRP in the ODS and in the update rules; select the update method as "Master Data Attr. of" - 0MATERIAL (0MAT_GRP is an attribute of 0MATERIAL), so no need to populate in the start routine.</b>
    Now if i add 0MAT_GRP in ods and in the update rules; select the update method as "Master Data Attr. of" - 0MATERIAL (0MAT_GRP is an attribute of 0MATERIAL)
    And in INCENTIVE keyfigure if i write a routine based on 0MAT_GRP and execute the infopackage, will my requirement be met.
    Condition is: After populating the 0MAT_GRP only my kf routine should run.
    So will execute infopackage will 0MAT_GRP is an attribute of 0MATERIAL) run <b>first?</b> or routine in kf
    Regards
    Annie

  • Using "Master Data Attribute of" in the Update Rule

    Hi,
    In my update rule of, i want to replace the master data attribute of my characteristic instead of using its source characteristic. For example. <i>InfoObject ZSTORECODE</i> has an attribute <i>ZSTORENAME</i>. My objective is to use the Store Name instead of a Store Code.
    I initially thought of using <i>"Master Data Attribute of"</i> in the update rules. However, I always end of with having an error of <i>"No Values."
    </i>
    Hope you guys can help me with this!
    Thanks,
    Raomon

    DATA: V_NSTC_SN2,
    V_KFC_COSTC LIKE RSGENERAL-CHAVL.
    V_KFC_COSTC = DATA_PACKAGE-KFC_COSTC.
    CALL FUNCTION 'RSAU_READ_MASTER_DATA'
        EXPORTING
          I_IOBJNM                      = 'KFC_COSTC'
          I_CHAVL                       = V_KFC_COSTC
    *   I_T_CHAVL                     =
    *   I_DATE                        =
    *   I_FLG_WHOLE_TABLE             =
          I_ATTRNM                      = 'NSTC_SN2'
      IMPORTING
    *   E_STRUCTURE                   =
    *   E_TABLE                       =
          E_ATTRVAL                     = V_NSTC_SN2
        EXCEPTIONS
          READ_ERROR                    = 1
          NO_SUCH_ATTRIBUTE             = 2
          WRONG_IMPORT_PARAMETERS       = 3
          CHAVL_NOT_FOUND               = 4
          OTHERS                        = 5
    RESULT = V_NSTC_SN2.
    Another Example Code:
    index on infoObject

  • Master data attributes declaration in update rules

    Hi Everyone,
    can any one tell me, How do we use attributes of master data in update rules..need syntax for using attributes of customer.... like comm_structure-/bic/......etc
    post code is attribute of customer, How do I use it in update rule
    thanks
    Siri

    Hi!
    if you have customer as attribute in your Infosource and Postcode as acharecteristic in your data target then you just need to select ther 3rd type of update rule "MAster data attribute of" and specifxy 0Cusotomer beside
    with regards
    ashwin

  • Navigational attribute in Cube

    Hi Gurus,
    I want to understand one point before I am going to perform a small enhancement.
    I need to set a navigational attribute in a cube(before it is not checked on "I/O") meaning make this navigational attribute behave as a char., but this cube contains data already, my question is :
    can I make this change ? if yes any other additional effort?
    Thanks in advance

    Hi Ryan,
    The attr needs to be marked and activated as Navigational Attr in the parent char first. Then you can mark it as nav attr in the cube (which contains the parent char). Does not matter if the cube contains data...you can do this activity in a cube with data. Remember to reactivate the cube's update rules and any multiproviders that it is a part of after you make this change.
    Hope this helps...

  • Adding navigational attributes to a cube

    We have upgraded to BW 7.3. Previously when we added navigational attributes to a cube we need to activate the update rules from the ods but now it appears that we don't need to do that anymore. Is this the expected behavaior?  We are using the 3.5 update rules.
    thanks

    HI,
    If you are using 3.5, after selecting nav attr in the cube, the cube structure gets deactivated. The dependent update rules also gets deactivated. You will be forced to activate all again.
    In BW 7.3, SAP would have given privilege to add without activation. It is good for us. So nothing to worry.
    Regards,
    Suman

  • "Master data attr. of" un change source of update rule.

    hi,
    What is the importance of following in "change source" (characteristics) in update rules.
    1. master data attr. of
    2.initial value
    3. Source chars
    4. constant
    When and why these are used.
    Thanks in advance.
    Regards,
    Avneet

    Hi Avneet,
    Lets say Material group is an attribute of 0MATERIAL. You cube contains Material and also Material Group as a separate characteristic (not as navigational attr) becasue you want to store the value of material group as it was during the time the transaction happened.
    But here you transactional data coming from the source brings Material values, not values of Material Group. So in the update rule for Material Group, you can specify "Master data attribute of" 0MATERIAL. What the system will do is take the value of 0MATERIAL on this record and populate Material Group taking the value that is present in Material Master data.
    So if Material = M100 and Material Group is MG01 in master data, it will supply MG01 to Material Group char in the cube.
    Hope this helps...

  • Database access in update rules

    Hi all,
          I am planning to write an ABAP routine for a update rule. Now I want to know whether I can find out some data from some tables. These data are a part of my master data.
          Let me explain; I have a field in the communication structure called BookID and two dimensions in the cube called BookID and AuthorName. Now both these dimensions are characteristic infoobjects with some master data already uploaded.
          I have to write a update rule routine, where I'll fetch the AuthorName from the BookID. AuthorName is an attribute of BookID.
          Can you tell me if this is possible? If yes, then which are the database tables I need to look at? Also, some code examples will really help.
          If it's not possible, please suggest some way to do it. Currently I have AuthorName as "Master data attrib. of" BookID. But still it doesn't update the records. New records are being created with only BookID. No AuthorName.
          Please help.
    Thanks,
    Satyajit.

    hi,
    are you going to update AuthorName in master data BookID or AuthorName in the cube ? do the AuthorName set as 'navigational' attribute of BookID ?
    Both are possible for update.
    Master data has 3 tables (beside other table) : text, attribute and hierarhy.
    For master data that's not time-dependent, attribute are stored in /bi0/p[infoobject name] - without 0, e.g infoobject 0customer has /bi0/pcustomer table for attribute. for our own created infoobject it's stored in /biC/p[infoobject name], e.g ZCUSTOMER has /bic/pZcustomer table.
    For update in infocube, if you didn't set it as navigational attribute, you may use Update Method 'Master data attrib. of'.
    sample code :
    data : it_data_package like DATA_PACKAGE occurs 0 with header line,
           begin of it_authorname occurs 0,
              /bic/zbookid like /bic/pzbookid-/bic/zbookid,
           end of it_authorname,
           l_tabix like sy-tabix.
    tables : /bic/pzbookid.
    select /bic/zbookid
    from /bic/pzbookid
    into corresponding fields of table it_authorname
    for all entries in data_package
    where /bic/zbookid = data_package-/bic/zauthorname.
    loop at DATA_PACKAGE.
    endloop.

  • Update rule dead lock

    I need to reload an ODS to an infocube. I've erased the whole infocube (fact table and dimensions) and then i launched init with all data from ODS to infocube. All informations are getting stuck at the level of update rules. It ends after a while wih TIME OUT error.
    I've verified in Runtime Errors(st22) and the loading stops at an update rule for Material Group:
    SELECT MATL_GROUP FROM /BI0/PMATERIAL INTO RESULT WHERE MATERIAL =
    COMM_STRUCTURE-MATERIAL.
    ENDSELECT.
    I've commented the routine and it loads withou any problem.. But I really need the material group in the infocube. What could I do.
    Please help... I will assingn valuable points.
    Thank you and Merry Christmas,
    Gabriel

    Load your material master from the source system and the Material Group is generally the navigational attribute of the 0MATERIAL. Hence you just have to switch on the Navigational attribute in your InfoCube.
    Hope it solves your problem.
    Regards
    Gajendra

Maybe you are looking for

  • Final Cut Pro HD 4.5 freezes on output to VHS and other weridness!!!

    Gents and Ladies, First time poster...I feel all warm and fuzzy on the inside...really I do... My Brand New G5 dual 2.7GHz blah blah blah is freezing up on out put to VHS. I am using a JVC SR-VS30 Mini-DV/SVHS dual deck. Why VHS? I work for a school

  • How do I make Finder windows narrower (in Lion)?

    One new feature of 10.7 Lion is that the minimum possible Findow window width seems to have increased (to around 300 pixels it seems, from about 150 in 10.6).   Does anyone know how to decrease the window width? 300 pixels is too wide for the 13 inch

  • Extra Tab opening by itself with spam not requested

    Every other time (or so) that I open Firefox, it shows my home page, then spontaneously, another tab opens with some type of spam....... you know, you have won this prize or "there is a problem with your registry" which are not valid or requested. So

  • Guidance needed in getting OCA certified.

    Hi friends and mentors, I am working in Wipro as a desktop support engineer. As my role change is on due, I selected my career in Oracle DB. I have idea about SQL and DBMS. Now as a first step, I want to get OCA certification. Please help me out in c

  • If my iPod is stolen and I have a warranty on it, am I able to get a new one for free?

    I got an iPod touch (4th Generation) for Christmas. I brought it to school yesterday and someone stole it. I have a warranty on it but I am not sure if the warranty covers it for being stolen. I just wanted to know that since my iPod is stolen and I