Merging 2 ODS into 1 Cube

Hello,
i have 2 ODS-Objects (ODS_A & ODS_B) and have to merge the content into a Cube by an update-routine. The problem is, that it is not a 1:1 merge.
Here is a short description of the merge-logic.
In the update-routine i declared 2 internal tables and "move" the content of the ods-object to the tables (see source-code). after that i want to join the 2 internal tables, but it looks like it is not possible. i know that oracle is able to do it in the following way.
select * from ods_content_a as a, (select col1, col2 from ods_content_b group by col1) as b where a-col1 = b-col1.
knows anyone a solution to join 2 internal tables or to reproduce the oracle sql-statement???
data: ods_content_a like ods_a
data: ods_content_b like ods_b
select * into ods_content_a from ods_a
select col1 sum( col2 ) into ods_content_b from ods_content_b group by col1
select col1, col2 from ods_content_a as aods_content_b as b where a-col1 = b-col2.
---> ABAP DUMP
Message was edited by: Markus Linortner

i know how i have to join 2 tables in abap... the question was how i can join 2 internal tables or reproduce the already mentioned oracle statement.
DATA: ods_a type standard table of /BIC/AODS_A.
DATA: ods_b type standard table of /BIC/AODS_B.
DATA: BEGIN OF wa,
        col1 TYPE i,
        col2 TYPE p decimals 2,
      END OF wa.
DATA: itab LIKE SORTED TABLE OF wa WITH NON-UNIQUE KEY col1.
select * into table ods_a from /BIC/AODS_A.
select col1 sum( col2 ) as col2
  into corresponding fields of table ods_b
  from /BIC/AODS_B group by col1.
select a~col1 a~col2 into table itab
  from ods_a as a inner join ods_b as b
  on a~col1 = b~col1.
At the last select statement i get following error-msg.
E:"ods_a" is not defined in the ABAP Dictionary as a table, projection view, or database view.

Similar Messages

  • Join two ODS into one cube!

    Hello Experts -
    I need to join fields of 2 ODS into one cube. I know the common field. We are in BI 7.0.
    Can someone guide me through the steps?
    I know there are two transformation rules. And I have created them. How do I link them so that I have one record when the common field matches?

    Syed!!!
    What your are trying is very complicated, if you want to do infoset that even worst, not only data wise, but only performance. If you are planning to get key figure only from one ods and only characteristics coming from different ods, infoset might work as long as you know the relationship (one-to-one relationship will work fine in infoset). Performance wise, MP is very good, but the question again, you will get multiple lines unlike infoset.
    So before, someone decided to use infoset, MP or even some other data model, they need to know well the reporting requirement and well divers in the relationship of the ods.
    I have faced the same situation in many of my projects, there are places I used infoset and MP, and also created a different infoobject as a master data and turned the attributes as NAV. Attribute.
    Thanks.
    Wond

  • Loading Transfer Rules details into Info Cube/ODS - VVVVV urgent

    Hi Guys.
    I  have a requirement to load all the active and inactive transfer rules into a cube so that i can prepare a report which are the active and inactive transfer rules existed in out BW system.
    Please hel me out in this regards.
    ThanX inadvance
    Peter B

    Hi Varaprasad,
    Ok, can we make use of that table for reporting?
    Or
    I can created a Cube as per that table and i don't know ho to load that table data into that Cube.
    Please let me know ASAP.
    Thanks in advance
    Peter B

  • Data not matching for a key figure in ODS and In CUBE.

    There is one key figure ( Net Units) where in the data is not matching in ODS and in CUBE for only one particular fiscal week (200714)but for the rest of the weeks its matching.
    The data  is  first loaded in to ODS and from there in to CUBE and the source is from flat file.
    The cubes are not compressed .so I checked the DB aggregation in the field selection for output screen but still it’s not matching .( based on the infocube addition property some times if a file is loaded multiple times it adds up in the infocube so when the cubes are not compressed we manually select this option) .
    What might be the possible cause for this ???
    thanks in advance
    jayakrishna

    HI,
    By any chance if you have loaded same the delta twice into the cube, then there might be the chance of the corrupt data. SO identify the lowest level of document where u can identify the difference.I mean if possible 0calday wise or document leve wise or sales org wise etc. and try to find out where is the difference. Then check in the change log of the oDS, whether the request has gone into cube twice. last option is selectively delete the data from the cube for the week and load a full repair from the ODS for that week.
    Sriram

  • Which is Better?: Add to multiprovider; Create new ODS; Create new Cube

    Which is a better choice:
    Add to multiprovider; create additional ODS; create additional Cube?
    I have this data flow: 5 ODSes which are aggregated into a single Cube1. A multiprovider then sits on the Cube1. I run Report1 against the multiprovider and from the output, I want to jump (through a jump query) to a much more detailed report.
    (information from the different 5 ODSes will be coming together to make a meaning record in the detailed report)
    Which of these will be the best modeling approach at this point:
    1. Bring in all the detail level information in the 5 ODSes into the multiprovider and create the detail report (against the multiprovider).
    2. Create a new ODS and bring in all the detail information from the 5 ODSes into this new ODS_6 and create the detail report against this newly combined ODS_6?
    3. Create new Cube2 and bring in all the detail information from the 5 ODSes into this single cube and create the detail report against this newly combined Cube? i.e. without bringing Cube 2 in the multiprovider.
    a) Which of these options is the typical thing to do?
    b) From performance point of view, which one is better? Any reasons?
    c) Do you have a better recommendation to get my report based on the original multiprovider; as well as get the detail (through the jump query)?
    Thanks

    Everything is based on how much data you are reading.
    Remember: the first and second options are slower because even if you are creating query against the Multiprovider in the first option, both options read directly from the ODS. Technically, ods is not optimized for reporting (reading). ODS is just like a normal relational database table, unless you use the key to read data from, it is very slow (everything  is not indexed).
    Option 3, is much better in respect of design and performance. Reason, cube support multidimensional analysis, where all char is related with SID which is being generated automatically which increases performance.
    My recommendation:
    Create another ods (combine all the other ODSes) just like you did in option two, and push summarized data in the cube and detail data in this ods. Write a report again the cube when needed jump to the ods.
    Hope that helps.
    thanks.
    Wond

  • Load from 3 ODS to 1 cube

    Hello All,
    Our requirement is to load the cube from 3 ODSs. Each time we are loading the data from the 3 ODS to Cube the load gets failed due to job getting terminated in the source system.
    POP UP for the ERROR:
    Express document generated  error in data selection Check load from Author.
    ERROR TERMINATED:
    Job in source system terminated --> Request is set to red.
    Message no. RSM078
    We think There is Some problem in the data selection from the ODS.
    Please suggest us some solution for this.OR a check list for loading the data from 3 ODS to a cube.
    Thanks & Regards,
    Pallavi.

    Check SAP Note: 869445.
    Check this:
    Job terminated in source system --> Request set to red
    Load data into InfoCube 0FIGL_C10
    Thanks

  • Unable to load data from an ODS to a Cube

    Hi all,
    I am traying to load data from an ODS to a cube, and I'm getting the following msg at the bottom of the screen monitor: <b>"No corresponding requests were found for request REQU_BZUH9ZPYNL5XLQNB7K8IQDKFS in the ODS/Cube" Message no. RSBM043.</b>
    I am unable to load the data. The QM status is yellow. When the process starts, on the left hand of the monitor it shows: "0 of 84408 records" which is ok. I load that with this package before and it works well.
    Can you help me what I have to do? I tried to wait but it was the same: no progress and no data in the cube.
    Thank you very much and kind regards,
    MM.
    May be this helps...
    When I look at the status, it says that I have a short dump at BW. It was CALL_FUNCTION_REMOTE_ERROR and the short text is "The function module "SUBST_TRANSFER_UPGEVAL" cannot be used for 'remote'". This short dump occurs very much before I shoot the upload.
    Thanks again.

    Hello MM,
    Can you do the following..
    make the Total status Red Delete the request from cube.
    goto ODS -> Remove the Data Mart Status -> Try loading it again.
    The error message that you get is common when we are trying to run a infopackage with the source object having no new request, (means all the requests available in the source are already moved to the targets). So please try the steps given above.
    Hope it will help!

  • 2 transformations into a cube

    Hi everyone,
    I need some help from experienced guys!
    I am doing 2 transformations from 2 different DSOs into a cube,
    one of them loads basic transactional data, which is fine,
    but the other one should be populating one of the fields in the cube (Vendor), depending on the key fields (batch number and reference) matching with the corresponding record.
    Instead of populating the existing records with additional data, it inserts new separate records with that data...
    What am i doing wrong and how should i do my second transformation so that it only inserts the Vendor name into the right record?
    Thanks a lot!

    Praveen,
    I am actually doing a lookup in the cube to which i am trying to upload the data from DSO,
    so I don't think any of your questions apply to it, unless I can't do it this way...
    Here's the code I have at the moment in my start routine of the transformation from the dso to the cube.
    TYPE-POOLS: rs, rsdrc.
        TYPES:
          BEGIN OF gt_s_data,
            /bic/zbatch   TYPE /BIC/OIZBATCH,
            /bic/z_ap_ref TYPE /BIC/OIZ_AP_REF,
            /bic/ztr_type TYPE /BIC/OIZTR_TYPE,
            /bic/zvend    TYPE /BIC/OIZVEND,
          END OF gt_s_data.
        DATA:
    *working area that holds the query
          g_s_data   TYPE gt_s_data,
    *internal table that holds the results
          g_t_data  TYPE STANDARD TABLE OF gt_s_data
                           WITH DEFAULT KEY INITIAL SIZE 10.
    DATA:
    *description of characteristics requested by query
          g_s_sfc   TYPE rsdri_s_sfc,
          g_th_sfc  TYPE rsdri_th_sfc,
    *description of key figures requested by query
          g_s_sfk TYPE rsdri_s_sfk,
          g_th_sfk  TYPE rsdri_th_sfk,
    *description of a restriction on a characteristic
          g_s_range TYPE rsdri_s_range,
          g_t_range TYPE rsdri_t_range.
        CLEAR g_th_sfc.
        CLEAR g_s_sfc.
        g_s_sfc-chanm     = 'ZBATCH'.
        g_s_sfc-chaalias  = 'ZBATCH'.
        g_s_sfc-orderby   = 0.
        INSERT g_s_sfc INTO TABLE g_th_sfc.
        CLEAR g_s_sfc.
        g_s_sfc-chanm     = 'Z_AP_REF'.
        g_s_sfc-chaalias  = 'Z_AP_REF'.
        g_s_sfc-orderby   = 0.
        INSERT g_s_sfc INTO TABLE g_th_sfc.
        CLEAR g_s_sfc.
        g_s_sfc-chanm     = 'ZTR_TYPE'.
        g_s_sfc-chaalias  = 'ZTR_TYPE'.
        g_s_sfc-orderby   = 0.
        INSERT g_s_sfc INTO TABLE g_th_sfc.
          CLEAR g_s_sfc.
        g_s_sfc-chanm     = 'ZVEND'.
        g_s_sfc-chaalias  = 'ZVEND'.
        g_s_sfc-orderby   = 0.
        INSERT g_s_sfc INTO TABLE g_th_sfc.
        DATA:
             g_end_of_data  TYPE rs_bool,
             g_first_call   TYPE rs_bool.
    /continued/

  • Open Orders are negitive in ODS and Info cube

    Hi,
    Our ODS is getting data from sales order Item data and from ODS data is going to Info cube.
    The problem is that: for few sales orders some open orders are deleting in R/3 but same records are reversing
    the old records due to this in the ODS and info cube sales orders Quantity is negative but the orders are not negitive.
    Could any one let me know how do we can ressolve it.
    Regards,
    Sharma. IVN

    Hi Sarma,
    You should consider checking the attached links below:
    ROCANCEL field in R3 extraction program can't catch the LOEKZ (deletion ind
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bct/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d383836373136%7d
    This may help in this case.
    Regards,
    Pietro

  • Load from ODS into InfoCube gives TIME-OUT runtime error after 10 minutes ?

    Hi all,
       We have a full load from ODS into InfoCube and it was working fine till the last week upto with 50,000 records. Now, we have around 70,000+ records and started failing with TIME_OUT runtime error.
       The following is from the Short Dump (ST22):
       The system profile "rdisp/max_wprun_time" contains the maximum runtime of a
    program. The current setting is 600 seconds. Once this time limit has been exceeded, the system tries to terminate any SQL statements that are currently being executed and tells the ABAP processor to terminate the current program.
      The following are from ROIDOCPRMS table:
       MAXSIZE (in KB) : 20,000
       Frequency       :  10
       Max Processes : 3
      When I check the Data Packages under 'Details' tab in Monitor, there are four Data Packages and the first three are with 24,450 records.  I will right click on each Data Package and select 'Manual Update' to load from PSA. When this Manual Update takes more than 10 minutes it is failing with TIME_OUT again.
      How could I fix this problem, PLEASE ??
    Thanks,
    Venkat.

    Hello A.H.P,
    The following is the Start Routine:
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: /BIC/AZCPR_O0400, /BIC/AZCPR_O0100, /BIC/AZCPR_O0200.
    DATA: material(18), plant(4).
    DATA: role_assignment like /BIC/AZCPR_O0100-CPR_ROLE, resource like
    /BIC/AZCPR_O0200-CPR_BPARTN.
    $$ end of global - insert your declaration only before this line   -
    The follow definition is new in the BW3.x
    TYPES:
      BEGIN OF DATA_PACKAGE_STRUCTURE.
         INCLUDE STRUCTURE /BIC/CS8ZCPR_O03.
    TYPES:
         RECNO   LIKE sy-tabix,
      END OF DATA_PACKAGE_STRUCTURE.
    DATA:
      DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    FORM startup
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
               MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
               DATA_PACKAGE STRUCTURE DATA_PACKAGE
      USING    RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
    to make monitor entries
       clear DATA_PACKAGE.
       loop at DATA_PACKAGE.
          select single /BIC/ZMATERIAL PLANT
             into (material, plant)
             from /BIC/AZCPR_O0400
             where CPR_EXT_ID = DATA_PACKAGE-CPR_EXT_ID
             and ( MATL_TYPE = 'ZKIT' OR MATL_TYPE = 'ZSVK' ).
           if sy-subrc = 0.
              DATA_PACKAGE-/BIC/ZMATERIAL = material.
              DATA_PACKAGE-plant = plant.
              modify DATA_PACKAGE.
              commit work.
           endif.
           select single CPR_ROLE into (role_assignment)
                         from /BIC/AZCPR_O0100
                         where CPR_GUID = DATA_PACKAGE-CPR_GUID.
            if sy-subrc = 0.
              select single CPR_BPARTN into (resource)
                         from /BIC/AZCPR_O0200
                         where CPR_ROLE = role_assignment
                         and CPR_EXT_ID = DATA_PACKAGE-CPR_EXT_ID.
                   if sy-subrc = 0.
                      DATA_PACKAGE-CPR_ROLE = role_assignment.
                      DATA_PACKAGE-/BIC/ZRESOURCE = resource.
                      modify DATA_PACKAGE.
                      commit work.
                   endif.
              endif.
           clear DATA_PACKAGE.
           endloop.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    Thanks,
    Venkat.

  • How to merge one library into another library?

    In iPhoto  9.6, is it possible to merge one library into another library? Or otherwise, import individual pictures, from one library into the other library? All of this happening on the same computer.I understand that this feature was covered by Aperture but that this is no longer supported under Yasemite?

    No
    The current version of Aperture can merge libraries (I have no idea where you got the incorrect information that it can not)
    The paid version of iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -  can
    Those are you only two choices
    LN

  • Base unit of measure values  not loading into the cube.

    HI Xperts,
    i have created a generic data source and in that i took unit as base_uom and one quantity keyfigure and in my cube i have taken 0base_uom and a quantity key figure infoobject.
    in transformation i mapped the  base_uom(source) to 0base_uom (target)and soures quantity KF infoobject to targer keyfigure infoobject.
    after loading the data into my cube..i am getting the values for quantity keyfiure infoobject but for  unit (CS,IT) i am not getting any value in my cube.
    so in my report also the for a specific quantity unit value is showing ERR.which is wrong.it should show me as CS or IT(10CS or 15 IT etc).
    Can any one help me on this?
    Regards,
    satihs

    > in transformation i mapped the base_uom(source) to 0base_uom (target)and soures quantity KF infoobject to targer keyfigure infoobject.
    This is not how you map Key Figure and Currency in cube..
    First check in RSD5 whether you have Unit Infoobjet assigned to the key figure.
    in Type/Unit tab ..you have to assign 0BASE_UOM to your Key Figure.
    Then in transformation from DataSource to Cube  : connect both the Unit and Key ( in source) figure to target KF.
    In Rule Detail you have to select .
    Target Unit = 0BASE_UOM
    Unit  = From Source
    Source Unit = Your source field name for unit
    Let me know after doing all these whether are getting unit field in cube
    Regards
    Anindya

  • How to do reconcilization of ODS data and CUBE data

    Hi All,
    How to do reconciliation of ODS data and CUBE data,I know how to do reconciliation of R/3  data and BW data.
    Regards.
    hari

    Hi,
    create a multicube based on your ODS and cube, identify commen characteristics and perform the key figure selections; create then a query showing both information from the cube and ODS with perhaps some formula showing differences between key figures.
    hope this helps...
    Olivier.

  • How to enhance the new field(mblnr) into the cube.

    Dear Experts,
                               My client wants GR document number and GR posting date in the drill down option in reporting, i have taken the field names of that. MBLNR and BUDAT, I only found BUDAT in the datasourse field level,please help me how to enchance MBLNR into the cube 0PUR_C01.
    Thank You
    Regards
    Srikanth

    SELF

  • Error Message (Arrow and Exclaimation Mark in Yellow Triangle) Showing on Bottom Right of Some Photos after Merging iPhoto Library into Aperture

    The strange thing is that some of these said photos with an error message have a normal thumbnail and can be opened fine, but the others (most of them) just have an empty space in the thumbnail as if the image can't be found.
    I tried to Locate Referenced Files as Leonie suggested in https://discussions.apple.com/thread/3686982?tstart=0 but got this message 'The Selection Doesn't Have Any Referenced Files', so i presume that's not the issue.
    In the thread mentioned above, Leonie mentioned something about not emptying trash. I did empty my trash recently, and started to think these images may have been poor quality ones i previously deleted in the iPhoto library … but that still doesn't explain why the error currently appears on some images which seem to work fine (these images are ok quality ones and there is no way i would have deleted them in the past).
    Also - the 'Processing' message at the bottom of the browser seems to be spinning endlessly. I just left it for over 10 hours overnight and it's still going. Could this be linked to these error images which it's having a hard time finding/loading?
    Quite baffled at the moment, and would really appreciate any feedback. TIA.
    EDIT:
    I just looked more closely. It appears that most of my folders have duplicates of the same image with exactly the same file name. And all the images with the error message have them on both duplicates (i.e. one on an image that has an empty thumbnail, and one on an image that's fine).
    When i initially tried to import the library, it proceeded half way then failed. After opening the iPhoto library in Aperture first, and then doing the import again, everything worked fine. So, i'm wondering if the images with errors that are empty/blank may be the result of the failed 1st import.
    What's puzzling is why they weren't overwritten (especially since all the file names are exactly the same). When importing the library, i chose 'merge' instead of 'add' when prompted, thinking that would solve it. Obviously not.
    EDIT 2:
    After reflecting on this, i thought one solution may be to:
    a) Find all the error'd images that are empty/blank and delete them, and then
    b) Find and remove all duplicates
    So i followed Leonie's suggestion to create a Smart Album and use the 'File Status is Missing' rule.
    But now, i see that there are images that i imported into Aperture months ago that have the same problem. And the new thing is that there are duplicates with errors where *both* images are visible (whereas for the iPhoto library i just imported, there were dupes where one version was blank and the other was visible and seemingly ok).
    I'm really hoping there is a simple solution to this, and am awaiting some feedback before i try anything else.
    NB. This is a super large (over 100GB) Aperture library that i am trying to consolidate everything into. It is Work In Progress and i was only going to back it up once the import of various iPhoto libraries was done. However, I'm wondering if it's better to just back up first - but if i do it now, the backup will include all these errors and duplicates. What would you guys do?

    UPDATE 2:
    The users in these 2 threads seem to have a similar File Status Not Found issue:
    https://discussions.apple.com/thread/4086569?tstart=0
    https://discussions.apple.com/message/17757686#17757686
    Followed Leonie's advice to look for the (missing) masters inside the Masters folder, and indeed, they were missing. So, that confirms the reason for the error message.
    If this does not work, because you have managed originals, inside the Aperture Library, look for your originals in the Aperture Library Package. Select the Library in the Finder and ctrl-click, then select "Show Package Contents" from the pop-up. In the Finder window that opens, navigate to the folder "Masters". Your missing images should be inside; the folder is structured by date of import.
    Of course, the question is - why the masters for these few images are missing, when the other images in the same project that were imported/merged at the same time are fine.
    Trying to do the library import/merge from iPhoto into Aperture again. Fingers crossed. Will report back on the result.

Maybe you are looking for

  • E-E gain doesn't match playback gain

    Hi, Since this message concerns the little USB sound device, the "Soundblaster MP3+", it probably wouldn't usually be discussed in this forum, but my question is quite technical in nature and I need to be talking to people who know what a dB is, so h

  • BI and EP 7.0 display just folder tree authorized

    Hi Gurus, I need advise about the best way to deploy BI report in Portal in regard of our requirement: I explain: We have 3 roles in BI : - Sales - Production - Purchase. In roles we have reports and query. We want display Bi application in portal li

  • Set default gateway on headless server (via ssh)

    I'm trying to configure one of the two ethernet interfaces on a headless Xserve. I managed to give it an address and subnet mask with ifconfig, but I can't figure out how to give it a default gateway or dns server. I tried using this: sudo route add

  • 24-bit audio processing?

    Can G4 Quicksilvers process 24-bit audio? I currently run a MBox to run audio into Pro Tools LE on my machine and I am wondering if it can work properly with a 24-bit session. Thanks!

  • WLS 10.3.4 datasource to an Oracle 8.1.7 database

    is it possible to create a generic datasource to an Oracle 8.1.7 database within WLS 10.3.4? Documentation may not list a databases prior to 9i as supported, but can it be done? I downloaded the driver from OTN but getting an error when creating in t