Is it possible to read a third ODS in update rules between two ODS?

Hi,
       I have ODS1 and ODS2. I need to have data coming from ODS1 to ODS2. But there is a field "F" in ODS2 that doesnot exist in ODS1. I need to get this from a third ODS3. Is it possible to write a routine in the update rules for ODS2 to read the "F" from third ODS3 and return it in "ODS2"? If so how?
I appreciate if anybody can refer me to any documentation. Also my id is [email protected]
Thank you.

hi Visu,
yes, it's possible.
say the ods name is zods1, zods2, zods3, you can write a start routine update rules like following :
PROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line  -
TABLES: /bic/azods300
/bic/a[odsname]00 or /bi0/a[odsname] is the ods active table name /bi0 for business content, /bic for customize
DATA:  l_tabix like sy-tabix,
it_ods like /bic/azods300 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.
select * from /bic/azods300
into table it_ods.
loop at data_package.
l_tabix = sy-tabix.
move-corresponding DATA_PACKAGE to it_data_package.
read it_ods with key [field name] = it_data_package-[fieldname]
if more key add it_data_package-[fieldname] - without AND
if sy-subrc = 0.
   it_data_package-F = it_ods-F.
   modify data_package from it_data_package index l_tabix.
endif.
endloop.
hope this helps.

Similar Messages

  • Change description of update rule between ODS'es

    Hi!
    In a BW 3.5 system I have the following problem: I cannot change the description of an update rule between two ODS'es.
    When creating such a rule the system automatically generates the technical name and takes the description of the source ODS for the naming of the update rule. Afterwards I have changed the description of the ODS. I have deleted the old update rule and recreated it. When selecting the source ODS from the F4 picklist the new description can be seen. When the source ODS is selected and the update rule is generated, the old description has appeared again however.
    Does anybody knows how this is possible and what can be done about it?
    Best regards,
    Hans

    have you tried regenerating an export DataSource out of the ODS?

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

  • Update Rules to an ODS

    I have a Data field as part of the Update Rules to an ODS.  By default it is able to get its value from the source field.  However, I want to modify this slightly so that I can strip out the brackets if they occur in the source field.  Would I need to write a routine and if so could someone advise on what should be written? Thanks

    Hi,
    Use like :
    REPLACE_ALL( ')', '', REPLACE_ALL( '(', '', BATCH ) )
    With rgds,
    Anil Kumar Sharma .P

  • How to read another ODS in update rules

    Hi Experts,
    I have to read another ODS to get the QTY field and update the key fig in my cube.  I want to write the SQL statement as follows
    Select doc_num
              material
              Sum (qty)
    From ODS2
            where doc_num = datapackage-doc_num
                and material = datapackage-material
    Group by
            doc num
            material.
    In ODS2 the data is at the item level and that is why we need to sum it up.  Could someone please send the exact code that I need to write in the update rules.
    Thanks,
    Lokesh

    Hi Reddy,
    Edit the update rules,find the key figure for which you dont want the currency translation and change the translation to "No currency Translation".Then activate the update rules.This will probably resolve your problem.
    Thanks & Regards,
    suchitra.V

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

  • Extracting data into two ODS at same time

    Hi experts,
    I am on BW 3.5, and was wondering if the possible scenario is possible;
    We are extracting 6.5 million recs from our R/3 system into ODS 1.
    But the records should split up and either go into ODS 1 or ODS 2 depending on its company code.
    I know this can be done by creating two datasources and using two different Modules we could decide what goes and what doesn't, but this would require two extractions, one per module.
    I want to know if there is a way this can be done with one extraction,
    e.g. the extraction would be to ODS 1, and in the update rules start routine is it possible to decide if the record belongs in ODS 1 or ODS 2,
    if it is ODS 2 can we write from this update rule to another ODS????
    Thanks,
    Shane.

    Hiya Santhosh,
    currently I have created two update rules one to each ODS. The problem is the load to ODS 1 is 6.5 million + recs, while the load to ODS 2 is 20,000 recs.
    The extraction from R/3 takes about 4 + hours, so I would have to perform the extraction twice to populate them both, which is a waste of time for the 20,000 recs.
    Is it possible to get all the recs in in one extract and then dictate what ODS it populates without creating a third ODS to initially populate????
    Thanks,
    Shane.

  • Error while copy of Update Rules from ODS 0SD_O03 to InfoCube 0SD_C13

    Hi all,
    I work on a NW04s SPS9 System I would like to simply copy Update Rules (from an ODS to an InfoCube) from the BCT to the 1:1 Z-Copies of these Objects.
    To do so, I copied the InfoProviders 0SD_O03 and 0SD_C13 to Z-Versions. In SAP BCT the InfoCube is updated from the ODS. The ODS itself is updated from InfoSource.
    After successfully copying the two InfoProviders as next step I tried to copy the Update Rules from the Content version Objects to the Z-Version Objects to link them.
    Similar to copying update rules in 3.5 I tried
    - right click on "ZSD_C13"
    - choose Additional Functions - Create Update Rules"
    - choose DataSource: ODS Object "ZSD_O03"
    - choose Copy from: InfoCube "0SD_C13"
    This result in the error "0SD_C13 is not suitable as a template for copying update rules".
    Some hints that might help:
    1. The very same error occurs if I try to copy the Update Rules from 0SD_O03 to 0SD_C13.
    2. I also tried to copy both Update Rules (to C12 & C13) on a BW 3.5 system where it worked fine: The update rules from both Z-ODSs to both Z-Cubes were copied correctly 1:1 and without any errors.
    3. In the NW04s System I was able to copy the Update Rules from the InfoSource 2LIS_11_VAITM to 0SD_O01 (as well as from 2LIS_11_VAHDR to ODS 0SD_O03). So I only cannot copy Update Rules from ODSs to InfoCubes while it is possible to copy Update Rules from InfoSources to ODSs.
    4. During copy of 0SD_O03 the system warned: "InfoObject 0FISCVARNT needs to be in key for DataStore object ZSD_O03". No matter whether I move this IO to the keys of the Z-ODS, the Update Rules copy does not work.
    - This warning does not show up on BW3.5 when I copy the very same ODS. Can anyone explain this?
    - This warning is not displayed during the copy of ODS 0SD_O01, just for 0SD_O03.
    5. Obviously during a preceding test I actually must have been able to copy the Update Rules for another copy of 0SD_C13 (as I can see the Update Rules in the SAPGUI). I stopped this first test as I was not able to do the Update Rules copy for 0SD_C12.
    Yet as of today I cannot copy Update Rules this for both cubes 0SD_C13 as well as 0SD_C12. So yesterday there was no error on copying the Update Rules to InfoCube ZSD_C13, but today there is. To my knowledge nothing has been changed in the System Setup / Customizing in the mean time.
    6. For both cubes ZSD_C13 as well as ZSD_C12 it is possible to copy Update Rules that map from the BCT ODS to the Z-InfoCbes. So I can copy Update Rules from 0SD_O03 to ZSD_C13 and from 0SD_O01 to ZSD_C12. This would point in the direction that the copied ODSes are the source of this behavior?
    I am not sure whether this is a special NW04s behavior and how to use it correctly so the Update Rules can be copied.
    Please could you help on how to copy these Update Rules in NW04s or share your experience if you had similar?
    Thanks a lot,
    Werner

    Hi Vinod,
    Check the update rules for the original cube. Are they active? It appears that they contain a formula...check this too.
    Hope this helps...

  • "Old" update rule from ODS not working

    Hi Gurus,
    I need to set up the "old" fashioned update rule to load data from an ODS1 to another ODS2.
    The thing is that I need to set up an update rule because I need to implement a Return Table Routine that is not supported (as far as I know) by the new Transformation/DTP.
    When I select option (through the right mouse click over ODS1)  "Other Options" - "Create Update Rule" it takes me out of the RSA1 and leaves me in the main menu making it impossible to create a new update rule.
    The strange thing is that I have this working from and ODS to an InfoCube.....
    Suggestions, a workaround??
    Andrea.

    Hi Jerry,
    Just to confirm that this is not working. The tys_TG_1 structure only shows me the target infoprovider structure. Check that in the how to, to be able to derive employee first you need to assign eache source_filed to the result_field leaving employee blank.
    I need to have in the same place, the source_field structure (source infoprovider field structure) and the result_field structure (target infoprovider structure). That is what the "old" return table gives me as in the same place I can have the communication_structure (source infoprovider field structure) with the return_table structure (target infoprovider structure). 
    Just to understand, in the source infoprovider I have 12 Key Figures (1 for each period) and I have to split each incoming record to 12 records. If I work only with the result_field structure tys_TG_1 and the result_package tyt_TG_1 I'm not able the see those 12 KF.
    So... return table functionality is not fully supported by BW 7 as far as I know.
    Any other ideas why I'm not able to create the old Update Rules from an ODS?
    Regards,
    Andrea.

  • Update Rules to ODS

    I have created an ODS which includes 3 key figures as data fields.
    When I create update rules to this ODS the key figures do not appear in the Update rules.  Is there any reason why and how can I resolve? Thanks
    This is specifically for an update rule to an Inventory management snap shot ODS for the InfoSource 2LIS_03_BX, if I look to create update rules for 2LIS_03_BF and 2LIS_03_UM the key figures are available in the update rules
    Message was edited by: Niten Shah

    HI Niten,
        After long time on this thread.
        But i came across the same problem now which u did last year .
        Did u solve this probelm of missing key figures in update rules 2lis_03_bx??
    Can u let me know how to solve this problem.
    regards,
    Sujai.

  • Problem in Generating the Infoset report(two ODS joining)

    I am facing the problem in ODS infoset report.
    Consider the two ODS (ie ODS1,ODS2)
    <b>ODS A</b>
    <b>A     B     Sal1(KF1)</b>
    1     10    10,000
    2     10     20,000
    Here A is the Keyfield of ODS A (all A,B, Sal1 are infoobjects).
    <b>ODS B</b>
    <b>B    Sal2(KF2)</b>
    10 4000
    Here B is the Keyfield of ODS B.
    I have  joined two ODS using Infoset.
    Joining condition: OSD A(charactersitics B ie value 10) joined with Keyfield of ODS B(ie B value 10)
    While exectuing the Report i am getting the following output.
    B   Sal1   <b>Sal2</b>
    10 30,000  8000(wrong data)
    Sal2 is summed twice since in ODS A it is having 2 records.
    My requirement is i wnat O/P as
    <b>B   Sal1   Sal2</b>
    10 30,000  4000
    With regards,
    Hari.
    +919323839017

    If you create a multiprovider with the two ODS you won’t have this problem.
    Hope it helps.
    Regards.

  • Only update specific data between 2 ODS

    I have 2 ODS ( with transfer rules between them).
    I have  DATE and period in the Source ODS1 , and I want to update only the register that the month of the date is equal to the period.
    I create a rutine in the field DATE in the transfer rules:
    <u><i><u>
    if COMM_STRUCTURE-DOC_DATE+4(2) EQ COMM_STRUCTURE-/BIC/Z99PERCON.
    result value of the routine
    RETURNCODE = 0.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    endif.</u></i></u>
    But it doent work. Becase the ods update all the data.
    How can I do it? Is it correct in the transfer rules from the SourceODS to the second ODS?
    thanks a lot

    Hi,
    try this.
    if COMM_STRUCTURE-DOC_DATE+4(2) EQ COMM_STRUCTURE-/BIC/Z99PERCON.
       RESULT = <thedate>.
       RETURNCODE = 0.
    ELSE.
       RETURNCODE = 4.
    ENDIF.
    if you set the returncode to 4, the record will be skipped; is that your requirement?
    hope that helps
    Olivier.
    if abort is not equal zero, the update process will be canceled
    ABORT = 0.

  • ODS Objects in update rules

    Hello,
    I'm using an ODS object lookup in multiple update rotines, Is there a way to list all the update rules that uses the ODS object.
    for (e.g)
    I'm looking up ODS 51 in the update routines for ODS 53 and ODS 56 and also in other update rules, I want to see a list of  all update rules that uses ODS 51.
    Please let me know if there is a way to do this.
    Thanks
    Krish

    Hello Krish,
    You can find this information by looking at a combination to tables:
    Lookup your ODS (tablename) in the program editor line of table RSAABAP. Then using the ABAP code id lookup the update rule id in table RSUPDROUT. For more information check out this link:
    /thread/229531 [original link is broken]
    Regards,
    Mahwish

  • Update rule for ODS problem

    Hi experts,
    I have a ODS which is created on another ODS. The unerlying ODS had one infoobject and later on it was removed. The problem occurs when creating the udpate rules for the top ODS. The deleted infoobject comes in the update rules of the ODS as grey but I think it shouldnt be there .

    Hey, in the Update Rules, you have 2 sections.
    1) Source ODS InfoObjects
    2) Taget ODS InfoObjects
    If you want, remoe the InfoObject from both the ODS.
    Also, activate the Source ODS again and also Activate the Update Rules too.
    Uday-Ram Chamarthy

  • ODS update rule activation

    Hi,
    Can some help me out for ODS (0SD_O03) update rules activation,I am not finding any thread related to this issue.
    Please donot suggest for RSAU_UPDR_REACTIVATE_ALL prg.It is for only Infocube update rules activation
    Thanks,
    Praveen

    Hi Praveen,
    RSAU_UPDR_REACTIVATE_ALL program is not only for InfoCubes update rules activation. You can activate any update rule through this program.
    In program
    S_UPDID give updaterule technical name such as(CONA85AOASV0HQ3B8I6E2EBJM)
    S_TARGET give 0SD_O03
    S_SOURCE give infosource name

Maybe you are looking for

  • Can't install LabVIEW Run-Time Engine 6.1 on Windows Terminal Server

    With my system admin, we tried to install the LabVIEW Run-Time Engine 6.1 on our Windows Terminal Server NT4. And we get an error all the time: -install using the plugin -install using LVRTE.exe -install after rebooting the server But I remember that

  • Calling a PL/SQL Procedure from button and then return to same page

    I have a button called "Process" that I want to call the database stored procedure "BUILD_WORKDAYS" with parameters P14_PROCESS_YEAR as an input parameter. I have the button on the page but is this a PL/SQL Page Process or a PL/SQL Branch? I have tri

  • Intel i915 Video Artifacts with Xorg 1.9

    Hey everyone.  I set up Arch with my girlfriend on her Asus U81A earlier tonight, but we're getting some terrible video artifacting and I can't seem to find us a solution.  Basically the screen often fails to refresh after things even as simple as ty

  • Xa-problems when releasing jdbc connection

    We have a very strange problem with our WL setup. Weblogic 8.1.4 (2 cluster nodes) Oracle 9i stand alone db (although tested on RAC with 2 nodes) The application architecture is quite complicated, with several EJB-applications that communicate via JM

  • Can I add a 3 months trial to a subscription?

    I have an offer of a 3 month free trail of creative cloud, but I want to sign up to the $9.95 Photoshop and Lightroom offer before March 31. If I sign up for the $9.95 offer can I then add a 3 month trial to extend it?