Map 0MATERIAL to ZMATERIAL in Update Rules

Hi all,
I have two separate InfoCubes for two different Regions. And because the both regions have overlapping Materials, I am asked to create a ZMATERIAL for the new region (Different Source System).I cannot compound 0MATERIAL to Source System since one region has already gone LIVE. 0MATERIAL is Mapped to MATNR in the Transfer Rules. If I map 0MATERIAL to ZMATERIAL in the Update Rules would that work?
Or would I need to change the mapping in the transfer rule level from MATNR to ZMATERIAL? That would mean to add ZMATERIAL into the InfoSource as well.
Cheers

You can able to MAP .. That's not a problem
The data for 2 regions passes thru Transfer rules .. thru MATNR -->0MATERIAL
Now you have 2 update rules for 0MATERIAL AND ZMATERIAL as well
UR1 - 0MATERIAL - 0MATERIAL
UR2 - 0MATERIAL - ZMATERIAL
How do you differentiate the data has to update particular region to particular material ?
If you are able to write Routine in update rule to update particular reg1 to 0material and reg2 to zmaterial  .. it should be ok

Similar Messages

  • Find Update Rule mapping!!!

    Hi All,
    Please let me know a method to find thru a FM or thru any Class (method) the mapping for characteristics in Update rule...
    I want to find how is target fields mapped with src field in update rule...
    Regards
    Aadil
    Point will be assigned!!!

    Thanks 4 response!!!
    @ Raj,
    I know it can be found like that  but i want to find it in backend...ie an ABAP program to find it.....
    @Aduri
    Thanks for the table name... but i still would like to know some FM or some standard class cause i know it shud be present... 
    But thanks for suggestion.

  • Routine in Update rule (Urgent)

    Hi
    My issue is a bit typical.
    We enhanced 0MATERIAL_ATTR datasource to get one field from ZTABLE1 from R/3 called "Product type" and this is working fine and populated to 0MATERIAL.
    In R/3, Our clients are giving the incentives to the customers based on their bill value. Incentives are maintained in ZTABLE2 master data in R/3.
    There are three types of incentives 1. special 2. period 3. policy.
    Incentives should be calculated based on the "product type"
    I maintained ZTABLE2 (incentive) in BW ODS.
    When i pull the 2LIS_13_VDITM, incentive value should be calculated from the ODS based on the product type in 0MATERIAL.
    How can i do it?
    One more thing.
    Product type is NAV Attr to 0MATERIAL.
    Now in Update rule if i put product type and populate as"Master data attribute"
    and add a keyfigure called ZINCENTVAL and write a routine , Will it work?
    Regards
    Annie
    Please get back to me if you dont understand the question?

    First define the two tables you use:
    DATA: g_workarea LIKE /BIC/AZTABLE2,
          l_/BIC/AZTABLE2_itab TYPE HASHED TABLE OF /BIC/AZTABLE2
    WITH
          UNIQUE KEY [enter your unique key here],
          g_key1_save LIKE /BIC/AZTABLE2-key1,
          g_key2_save LIKE /BIC/AZTABLE2-key2,
          l_days_open type i,
          l_index like sy-tabix.
    DATA: g_workarea2 LIKE /BI0/pmaterial,
          l_/BI0/pmaterial_itab TYPE HASHED TABLE OF /BI0/pmaterial
    WITH
          UNIQUE KEY material,
          g_material_save LIKE /BI0/pmaterial-material,
          l_days2_open type i,
          l_index2 like sy-tabix.
    Then define the checks you want to make:
    FORM check_producttype USING    l_producttype
                        CHANGING g_workarea2 LIKE /BI0/pmaterial.
      IF l_material NE g_material_save.
        CLEAR g_workarea2.
        SELECT SINGLE * FROM /BI0/pmaterial INTO CORRESPONDING FIELDS OF
    g_workarea2 WHERE
                        material = l_material AND
                        objvers = 'A'.
        g_material_save = l_material.
      ENDIF.
    ENDFORM.
    FORM check_incentive USING    l_key1 l_key2
                        CHANGING g_workarea LIKE /BIC/AZTABLE2.
      IF l_key1 NE g_key1_save OR
          l_key2 NE g_key2_save.
        CLEAR g_workarea.
        SELECT SINGLE * FROM /BIC/AZTABLE2 INTO CORRESPONDING FIELDS OF
    g_workarea WHERE
                        key1 = l_key1 AND
                        key2 = l_key2
        g_key1_save = l_key1.
      g_key2_save = l_key2.
      ENDIF.
    ENDFORM.
    Finally, execute your whole thing:
    PERFORM check_producttype USING  COMM_STRUCTURE-material
                             CHANGING g_workarea2.
    PERFORM check_incentive USING  COMM_STRUCTURE-key1
                             CHANGING g_workarea.
    IF g_workarea2-producttype EQ ...
    ELSE.
    ENDIF.
    and so on...
    RESULT =...
    Hope this helps.

  • Purchasing cube designing, update rule mapping for 0calday

    Hi All,
       Iam designing cube for Purchasing module in BW. Iam having doubt in mapping for 0calday in update rules, is it with document date or scheduline date. I have searched in SAP cube 0PUR_C01, it is mapped with 0SCHED_DATE( schedule line date). How the difference comes when we choose document date and schedule line date.
      FYI, we are using only schedule line data source, which is giving relevant information.
    Thanks,
    Ram

    Hi Ram,
    Please note:
    0SCHED_DATE: The schedule line date is the day on which the scheduled quantity of the material is to be delivered.
    0DOC_DATE: The date on which document has been craeted.
    Use the first one for purchasing.
    Thanks...
    Shambhu

  • Error in update rules mapping

    Hi,
    I have added two new fileds into the view and then replicated in bw side.The two fields mapping correctly in Transfer rules.Getting error for two fileds while adding in the update rule.
    Thanks,
    Jayapal.

    Hi Jayapal,
    Hope, SAP Note 588247 will help you to resolve this issue. It is giving "Rule incorrect" error, may be because of Infoobject 0RECORDMODE is ignored.
    Veerendra.

  • Update rules mapping display

    I need to check the update rules and its mapping for objects in production.
    I clicked the next arrow button to see the mapping but not able to  . It is good enought for me to just see it in display mode.
    How can i see the mappings in display mode in Production system?

    Hi,
    Please double click on the update rule and it show the update rule in display mode .If it is a keyfigure you can see the mapping for all keyfigures and click on the Ty symbol then you can see the mapping for charachterstics.If it is a ODS then you can see the mapping for all char and whne you will double click on Ty symbol you can see the mapping for key fields in ODS.
    Regards
    Bibhu

  • Update rules mapping

    Hi Friends,
    I have ZSTCSDF coming from transfer structure now I need to map this field with InfoCube field ZCUSTOMER.
    ZSTCSDF is using ZCUSTOMER as a reference characteristic.
    If it is an attribute then I can map that in update rules but it is reference characteristic instead.
    Can anyone suggest me what to do in this?
    Thanks,
    John.

    Hi Friend,
    I already have ZSTCSDF this field. This gfield is using 0CUSTOMER as reference characteristic.
    So, I have ZSTCSDF in communication structure.
    my question is can I map ZSTCSDF and 0CUSTOMER one to one in update rules characteristics.
    by referenceing source characteristic in update rules mapping options.
    Thanks,
    John.

  • Mapping in update rules

    Hi experts,
    could anyone please advice on how to map in update rules for the following requirement.
    I have a generic extractor, with Order date,Billing date and Delivery Date fields.
    to map { Order date,Billing date, Delivery Date} - three different fields from Data source to one 'Date' info object in ODS.
    If I have Order record -
    > I have to get 'order date' in the
    'Date' Info object of ODS.
    similarly 'Date' info object should be filled as and when I have
    Billing and Delivery records, it should store Billing date and Delivery Date.
    Please advice

    Hi,
    If you are on the BI 7.0, you can achieve this by creating three different rule groups.
    In 3.5 you can do this by splitting keyfigures:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm

  • 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

  • Direct mapping in updates rules not functioning as expected

    Hi experts,
      I have a character string with only digits (NUMC) which is mapped in udpate rules of a ODS. Its a direct mapping from another ODS. Inspite of that, we are having scenarios where the source ODS is filled and the character in the destination ODS is coming as empty. The source ODS is looking up that value from another ODS.
    I am wondering why is it so. I am in 3.5 enviornment.

    Is it just this field coming up as blank or other fields too,
    Do you any start routine or any kind of filtering in place in the update rules.
    Just try to simulate a update and see if you can find anything.
    /people/pavan.bayyapu/blog/2006/09/06/debugging-data-upload-in-bw
    Also make sure you "No Update" is not selected in update rules for this field.
    Edited by: sam hennry on Mar 28, 2008 1:15 PM
    Edited by: sam hennry on Mar 28, 2008 1:17 PM

  • Coding in Update Rules accessing a Z-Table

    Hi,
    I have a datarecord that looks as follows:
    0MATERIAL:                     1000
    ZMC (Manufacturing Company)      03
    ZFAC (Facility ID)               16
    ZSHIP (Total Shipments)         500 Units
    <b>There is a Z-Table in R/3 (ZPLANT) that maps ZMC and ZFAC to R/3 Plants (ZPLANT).</b>
    Assuming this Z-Table is available in BW <b>what would the  coding in the update rules into a Cube  look like to do that mapping?</b>
    Thanks again
    Christian

    dear Christian,
    try use start routine, assume the table in bw is zplant and has fields zmc and zfac ...
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line -
    TABLES: zplant.
    DATA: l_tabix like sy-tabix,
    it_plant like zplant occurs 0 with header line.
    $$ begin of routine - insert your code only below this line -
    fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
    to make monitor entries
    data : it_data_package like DATA_PACKAGE occurs 0 with header line.
    first select the master data to internal table, this to
    avoid each time has to fetch from database table for
    single record, for better performance
    select * from zplant
    into table it_plant.
    if table zplant has high volume data, you can use for * select * from zplant
    into table it_plant.
    all entries
    for all entries in data_package
    where material ? = data_package-material.
    loop at data_package.
    l_tabix = sy-tabix.
    move-corresponding DATA_PACKAGE to it_data_package.
    read it_plant with key [field name e.g zplant] = it_data_package-[/bic/zplant] BINARY SEARCH
    if more key add it_data_package-[fieldname] - without * AND
    if sy-subrc = 0.
    it_data_package-/bic/zmc = it_plant-zmc.
    it_data_package-/bic/zfac = it_plant-zfac.
    modify data_package from it_data_package index l_tabix.
    endif.
    endloop.
    take a look some sample code
    Re: Is it possible to read a third ODS in update rules between two ODS?
    Re: Update Rules
    hope this helps.

  • Fields missing in Update rules

    I am creating snap shot DSO for inventory management and after that i created the update rules for it linking it to the info source 2LIS_03_BX. When i do this i am missing the info objects that i created to include in the DSO. How do i solve this issue as those info objects are very important and i have to create the routines for it.
    I have got the units for those fields and they are mapped but the info objects itself are missing.
    Thanks for any help in advance
    Naveen

    HI Naveen,
    Yes, you can include the missing infoobject in DSO. for that you need to follow bellow steps:
    a). Delete the data from DSO.
    b). you have to include the infoobject in DSO.
          Double click on  DSO>select chage mode->select keyfield /data field node--->right click select Infoobject Direct Input.
    c). Activate the DSO
    Brief Description about 2LIS_03_BX :
    The 2LIS_03_BX is used to extract an opening stock balance on a detailed level (material, plant, storage location and so on). At this moment, the opening stock is the operative stock in the source system. "At this moment" is the point in time at which the statistical setup ran for infosource 2LIS_03_BX.Loading the opening stock balance InfoSource 2LIS_03_BX into data target.In the InfoPackage, choose the upload mode u201CCreate opening balanceu201D.
    Regards,
    Suman.

  • DTP Vs Update Rules  Error!!!!!!!!!!!!!!!!!!!!!!1

    Hi guys,
    I have a scenerio , where I need to have data from 2 DSOs in to one combined DSO. Lets Says the 2 DSOs as DSO A and DSO B. and the Third as DSO C.
    I want to get DSO C Structure as exactly as DSO A. and DSO B structure is only few fiew fields from DSO A (Key Fields are same). I have loaded the data in to DSO A and DSO B using Transformation and DTP . Now How to load DSO C data I mean combined data of DSO A and B.
    1.If I create update Rules to DSO C using DSO A and DSO B. Iam not getting any data in to DSO C. (Do I need to make any settings in DSOs to update the data of A and B in to C ?).
    2.If I create 2 transformations between DSO A -C and DSO B-C. I am sure I need to create DTPs to get the corresponding data. When I do that Iam getting 2 separate sets of data for DSO C. But I need data as one set from DSO A & B in to C.
    Please help me ASAP and let me know if you need more information on it.
    Thanks in advance

    Harish,
       as i told you earlier, if the fields you are looking from DSO B is not available in DSO A, you can create transformation usign respective DSO if your Key fields are same in both DSO A and DSO B..
    assume...F1, F2, F3 are key fields in both DSO A and B.
    DSO A:
    F1, F2, F3, F4, F5, F6, F7.
    DSO B:
    F1, F2, F3, F8, F9.
    DSO C:
    F1, F2, F3, F4, F5, F6, F7, F8, F9.
    If you load data from DSO A to DSO C, it will create one record in DSO C with updation of F1, F2, F3, F4, F5, F6, F7(because f1, f2, f3, f4, f5, f6, f7 only mapped).
    If you load data from DSO B to DSO C, it will <b>Update</b> existing entry using Key fields for other 2 fields(which mapped from DSO B to DSO C).
    Change log table of DSO C update with 2 records(i'm talking about Standard table).
    write optimized works differently.
    all the best.
    Regards,
    Nagesh Ganisetti.
    assign points if it helps.

  • 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.

  • "Error when activating update rule" after changing ODS key

    Hi Gurus,
    I have problem when transporting in productive system an existing ODS & the update rule linked. The message is  :  "Error when activating update rule".
    This is when i move one field from the key to a simple field of the ODS.
    Before transporting requests, i deleted data in the ODS by right-click on ODS --> Request tab --> select the request --> click on delete....
    I don't understand because i did the same in Qual environment and everything is OK : transport request & ODS loading...
    Please help.....

    Hello,
    Please try to check/perform the following steps:
    1- You must ensure for the update rule have mapping between infosources
       and ODS/CUBEs correct, this means that also these objects need
       to be of the same version in the source system of the transport as in
       target system.
    2- Please ensure all infoobjects in the cube are active.Please
       reactivate all the objects again in source system.
    3- Ensure all infoobjects are found in the communication structure.
    4- Please try to collect the update rule via BW transport connection
       with the grouping option "only necessary objects" and then transport
       those objects again.
    Could you please reactivate the infocube and its update rules again
    and then create a new transport for this infocube and transport it
    again.
    Best regards,
    Paula Csete

Maybe you are looking for