Join between fact table and master data table

Is it posible to join a Cube with a Characteristic? This is exactly what i need:
- In my cube i have date (0CALDAY) and (among others) a characteristic (ZCHAR) and a key figure (ZKEYF).
- I added a key figure (ZKFAT) as an attribute to ZCHAR. So the tables look something like this:
Fact table:
<b>0CALDAY | ZCHAR | ZKEYF</b>
12.10.2006 | CHAR1 | 10
12.10.2006 | CHAR2 | 20
12.10.2006 | CHAR3 | 30
Master data table for ZCHAR:
<b>ZCHAR | ZKFAT</b>
CHAR1 | 1000
CHAR2 | 2000
CHAR3 | 1500
I need to make a query with a table that looks like this:
<b>0CALDAY | ZCHAR | ZKEYF | ZKFAT</b>
12.10.2006 | CHAR1 | 10 | 1000
12.10.2006 | CHAR2 | 20 | 2000
12.10.2006 | CHAR3 | 30 | 1500
Finally, the query should result in something like this:
<b>0CALDAY | ZKEYF | ZKFAT</b>
12.10.2006 | 10 | 1000
12.10.2006 | 20 | 2000
12.10.2006 | 30 | 1500
Adding KFAT to the fact table is not an option, i need to read this information directly from ZCHAR.
I've tried using MultiProviders but didn't get the result i need.
Is there any way to achieve this? Please advice.
Thank you,

Thank you Ram C. i've tried your solution and it may be it, but i'm having one problem:
Since i'm reporting in web, i used the second solution you offered and almost got the desiered result. The problem is that some entries are correct but others ar duplicated! Using same example, my result table looks something like this:
<b>0CALDAY | ZKEYF | Calculated KF (from ZKFAT)</b>
12.10.2006 | 10 | 1000
12.10.2006 | 20 | 4000
12.10.2006 | 30 | 1500
Second row should be 2000, but instead it shows 4000. I added ZCHAR's attribute ZKFAT as a display attribute in order to compare the results. I found that the display attribute is correct (2000) but the Calculated KF still showed duplicated data (4000).
By the way, when i execute the query, i get this warning message:
"Calculated key figure ZRT_C02_2_CKF004 is not defined correctly"
Any ideas why this could be happening?
Thank you for your help.
Message was edited by: Gerardo Gaona

Similar Messages

  • Master data tables and Transaction data Tables

    Hello Gurus,
    Please let me know how to know which table belongs to master data  and which table belongs to transaction data.
    for FICO module.
    Does any one  have specific material relating to master data table and transaction data tables.
    Thanks
    Edited by: Manu Rathore on Jan 18, 2012 4:38 AM

    Hi Manu,
    Find attached table relation diagram by Christopher Solomon. It is one of the very comprehensive chart on this topic.
    deleted
    Warm regards,
    Murukan Arunachalam

  • Problem in Master  Data and Master Data Lines

    Hi All
    I'm facing a big problem...I have a UDO with object type as Master.....As master table and master data line table has code field in common the value for this column should be same....but the problem arises here...it happenes that when i enter the data Code field of master data table has different value from code field of master data lines...
    Any one can please help........
    Thanks

    Hi Pati,
    After posting the message did you get a delivery confirmation reply? If not, you need to open a new message saying you have yet to get a answer for your previous message (and state the previous message number).
    Then sill you get no answer, you need to get in contact with your SAP Business Partner (if you're a customer) or your Channel Partner (if your a SAP Business Partner).
    Regards,
    Vítor Vieira

  • Best Practice - Outer Join between Fact and Dim table

    Hi Gurus,
    Need some advice on the below scenario
    I have an OOTB subject area and we have around 50-60 reports based on it. The related subject area Fact and Dim1 table are having inner join.
    Now I have a scenario for one report where outer join has to be implemented between Fact and Dim1. Here I am against changing the OOTB subject area join as the outer join will impact the performance of other 50-60 reports.
    Can anyone provide any inputs on what is the best way to handle this scenario?
    Thanks

    Ok. I tried this:
    Driving table : Fact, Left outer join -- didnt work.
    Driving table: Dimension D left outer join -- didnt work either
    In either the case, I see physical query as D left outer Join on Fact F. and omitting the rows.
    And then I tried this -
    Driving table: Fact, RIght outer join.
    Now, this is giving me error:
    Sybase][ODBC Driver]Internal Error. [nQSError: 16001] ODBC error state: 00000 code: 30128 message: [Sybase][ODBC Driver]Data overflow. Increase specified column size or buffer size. [nQSError: 16011] ODBC error occurred while executing SQLExtendedFetch to retrieve the results of a SQL statement. (HY000)
    I checked all columns, everything matched with database table type and size.
    I am pulling Fact.account number, Dimension.account name, Fact.Measures. I am seeing this error each time I pull Fact.Account number.

  • Multiple 'logical joins' between a fact table and one dimension table

    It appears that one cannot create multiple ‘logical joins’ between a fact table and one dimension table in OBIEE using the Oracle BI Administration Tool. For example, considering a Business Model with a dimension table TIMES and a fact table FACT containing START_TIME and END_TIME, we would like to create separate logical joins from FACT to TIMES for the START_TIMEs and END_TIMEs? Obviously, the underlying foreign keys can be created, but as far as I can tell the Oracle BI Administration Tool doesn’t support this. The workaround would be to replicate the TIMES table, but that’s ugly.
    I seek an alternative approach.

    Try this. Create an two aliases for the TIMES dimension (Start & End) in the Physical Layer and then remove foreign key to the "Parent" Times dimension. Create the Foreign Key in the Physical Layer to the new aliases and then create the complex joins in the BMM Layer to the new aliases as well. This will allow you to present both dates within the same table in the Presentation Layer. Not the most elegant solution but it works.

  • Mismatch between Master data table /BIC/P and SID table /BIC/S

    Hello All,
    in our master data table we have logsys in key
    after a system copy we had a problem with logsys name, when we have copied our bw prod system in test system we find prod logsys like value, the BDLS doesn't change all values for all structures and some master data table still have prod logsys instead of test logsys but some records have test logsys values
    for example:
    our production logsys is: BIP300 and our test logsys is BIT300
    in our master data test table we find had some records logsys value like BIP300 and others with BIT300
    all our ODS and CUBE have the right logsys value in test "BIT300"
    we have developed an ABAP report to execute on selected tables to change logsys from BIP300 to BIT300
    we execute the report on only P master data table like /BIC/PZCOOR and it's work fine and has changed all the records values
    from BIP300 to BIT300 and this program has eliminated all duplicate records
    the problem is when on our master data try to view data we find that bw return data from SID table /BIC/SZCOOR
    in fact if we go to control data on /BIC/SZCOOR table we find that there still are records with logsys BIP300 and BIT300
    and the same if we execute our query on ZCOOR we have values with BIP300 and BIT300
    how should we fix this problem?
    if we execute our ABAP report on /BIC/SZCOOR to change logsysname we can fix that or we could have problem?
    please can give me some useful help
    thanks a lot
    Bilal

    Hi ,
    Follow the sequence of deletion .
    1.Delete data from cube YMM_*
    2.Delete data from 0pur_c*
    3.Delete data from 0material .
    4.Delete data from info_rec .
    Best option would be do selective deletion for these four materials and run a repair request then after to update into data target.
    Hope that helps.
    Regards
    Mr Kapadia

  • Join Master Data table with fact table

    Hello gurus.
    I have a requirement on a characteristic. I have to obtain the description of those values that are not filled with data in the cube, the example looks like this:
    Data in the cube:
    Characteristic 1 |  charactersitic 2 |  value
    AU                           HPDV              200
    TB                           OPPG              500
    TC                           HPDV              900
    TR                           OPMR             400
                                   HPDV              300
                                   OPMR             200
                                   OPPG             100
    Master Data Table:
                                Description
    HPDV    AU       Auditoria  
    OPPG    TB       Servicios Logisticos
    HPDV     TC       Occidente
    OPMR    TR       Oriente
    HPDV     AI        Punta Norte
    OPGS    CV       Escandón
    HPDV    QR       Barquisimeto
    HPDV    MM      Valencia
    HPDV    DT        Barcelona
    I need to display in the query only the description of the characterstic whose data is not in the cube, according to the example the values that are missing in the cube are:
    HPDV     AI        Punta Norte
    OPGS    CV       Escandón
    HPDV    QR       Barquisimeto
    HPDV    MM      Valencia
    HPDV    DT        Barcelona
    How can i achive this ?? 
    Thank you in advance.

    Hi Guillermo,
    I think you are trying to achieve this: To display characteristic values for which no transaction data or only low values exist for the selected period.
    See here for the solution details:
    http://help.sap.com/saphelp_nw04/helpdata/en/3a/d1603d13b5c72ee10000000a114084/content.htm
    Hope this helps...

  • How to provide joins between oracle tables and sql server tables

    Hi,
    I have a requirement that i need to generate a report form two different data base. i.e Oracle and Sql Server.
    how to provide joins between oracle tables and sql server tables ? Any help on this
    Regards,
    Malli

    user10675696 wrote:
    I have a requirement that i need to generate a report form two different data base. i.e Oracle and Sql Server. Bad idea most times. Heterogeneous joins do not exactly scale and performance can be severely degraded by network speed and b/w availability. And there is nothing you can do in the application and database layers to address performance issue at the network level in this case - your code's performance is simply at the mercy of network performance. With a single glaring fact - network performance is continually degrading. All the time. Always. Until it is upgraded. When the performance degradation starts all over again.
    If the tables are not small (few 1000 rows each) and row volumes static, I would not consider doing a heterogeneous join. Instead I would rather go for a materialised view on the Oracle side, use a proper table and index structure, and do a local database join.

  • SID table in the general tab and master data/text tab

    Hello Bi Experts,
      For example 0material Info-object:
    There is a SID table in the general tab i.e /BI0/SCOMP_CODE
    There is another  SID table Attribute  in the master data/text tab i.e /BI0/XCOMP_CODE,here there are Nav attributes with name S__0COMPANY.
    When i got 0company info-object it got its own SID table i.e /BI0/SCOMPANY
    Can some body explain me what is significance of SID table Attribute  in the master data/text tab and what is difference with SID Table of attribute?
    Cheers,
    Stalin

    Hi,
    SID is surrogate ID generated by the system. The SID tables are created when we create a master data IO. In SAP BW star schema, the distinction is made between two self contained areas: Infocube & master data tables/SID tables.
    The master data doesn't reside in the satr schema but resides in separate tables which are shared across all the star schemas in SAP BW. A numer ID is generated which connects the dimension tables of the infocube to that of the master data tables.
    The dimension tables contain the dim ID and SID of a particular IO. Using this SID the attributes and texts of an master data Io is accessed.
    The SID table is connected to the associated master data tables via teh char key 
    Sid Tables are like pointers in C
    Tables Starting with  Description:
    M - View of master data table 
    Q  - Time Dependent master data table 
    H - Hierarchy table 
    K - Hierarchy SID table 
    I  - SID Hierarchy structure 
    J  - Hierarchy interval table 
    S  - SID table 
    Y  - Time Dependent SID table 
    T  - Text Table 
        F  - Fact Table - Direct data for cube ( B-Tree Index ) 
    E  - Fact Table - Compress cube ( Bitmap Index ) 
    For more info go through the belwo link
    http://www.sap-img.com/bw010.htm
    Regards,
    Marasa.

  • How Bex Flag effects SID, MAster Data and ODS data tables?

    Hi every one,
    I do understand how the Bex flag setting works in relation to reporting like y we set the flag or y we dont set the flag when we do reporting or not on ODS.. My question here is, i dont understand, how the SID tables or the master data tables or ODS tables get effected with this flag. Can some one explain me what kind of changes in the tables takes place with this flag setting and how it is used in the reporting.. How this thing is different with respect to Cube reporting process.. I do understand that ODS doesnt have Dimensions.. so i am just looking for conceptual clarification and any forum links related to clarifying this process at table level which i am looking for... ANy help will be highly appreciated in SDN way..
    regards,
    kishore

    A typical dimension table looks like this
    DIMID
    SID_0COUNTRY
    SID_0EMPLGROUP
    SID_0EMPLOYEE
    SID_0EMPLSGROUP
    SID_0JOB
    SID_0PAYRL_AREA
    SID_0HRPOSITION
    SID_ZWKCONT
    SID_0COUNTRY_ID
    The Fact tables contain a Dim ID (excpet for line item dims), which is used to join to the Dim table.  The Dim table contains SIDs for the chars values in that Dim.  The Dim table is then joined to the SID table, which is then joined to the attribute table.
    For ODS - the /BI0/S***** SID tables have indexes on both the SID and the chars actual value.  ODS queries will join to the SID table using the actual char value.
    Here's the SQL for a typical <b>ODS</b> query that you can see how the ODS table joins to the SID tables:
    <b>SELECT</b>
       T_01 . "SID" "S____206" , T_02 . "SID" "S____066" ,                          
       SUM( T_00 . "FM_AMOUNT2" ) "0FM_AMOUNT2" , COUNT(*) "1ROWCOUNT"              
    <b>FROM</b>
       "/BIC/AZPU_O5200" T_00 , "/BI0/SCURRENCY" T_01 , "/BI0/SVENDOR" T_02 ,       
       "/BI0/SBUS_AREA" T_03 , "/BI0/SCMMT_ITEM" T_04 , "/BI0/SCOSTCENTER" T_05 ,   
       "/BI0/SFISCPER3" T_06 , "/BI0/SFISCYEAR" T_07 , "/BI0/XFUND" T_08 ,          
       "/BI0/SGL_ACCOUNT" T_09 , "/BIC/SZCI_AVCON" T_10                             
    <b>WHERE</b>
    ( T_00 . "CURKEY_TC" = T_01 . "CURRENCY" ) AND
    ( T_00 . "CREDITOR" = T_02 . "VENDOR" ) AND
    ( T_00 . "BUS_AREA" = T_03 . "BUS_AREA" ) AND
    ( T_00 . "CMMT_ITEM" = T_04 . "CMMT_ITEM" AND
      T_00 . "FM_AREA" = T_04 . "FM_AREA" ) AND
    ( T_00 . "COSTCENTER" = T_05 . "COSTCENTER" AND
      T_00 . "CO_AREA" = T_05 . "CO_AREA" ) AND
    ( T_00 . "FISCPER3" = T_06 . "FISCPER3" ) AND
    ( T_00 . "FISCYEAR" = T_07 . "FISCYEAR" AND
      T_00 . "FISCVARNT" = T_07 . "FISCVARNT" ) AND
    ( T_00 . "FUND" = T_08 . "FUND" AND
      T_00 . "FM_AREA" = T_08 . "FM_AREA" ) AND
    ( T_00 . "GL_ACCOUNT" = T_09 . "GL_ACCOUNT" AND
      T_00 . "CHRT_ACCTS" = T_09 . "CHRT_ACCTS" ) AND
    ( T_00 . "/BIC/ZCI_AVCON" = T_10 . "/BIC/ZCI_AVCON" ) AND
      T_08 . "OBJVERS" = 'A' AND
      T_03 . "SID" = 12 AND
      T_00 . "CHRT_ACCTS" = 'COPA' AND
      T_04 . "SID" = 1260 AND
      T_00 . "COMP_CODE" = 'COPA' AND
      T_05 . "SID" = 25093 AND
      T_00 . "CO_AREA" = 'COPA' AND
      T_00 . "FISCPER" <= '2005013' AND
      T_06 . "SID" <= 13 AND
      T_00 . "FISCVARNT" = 'V6' AND
      T_07 . "SID" = 100002005 AND
    ( T_00 . "FM_ACTDETL" = '010' OR T_00 . "FM_ACTDETL" = '110' OR
      T_00 . "FM_ACTDETL" = '160' OR T_00 . "FM_ACTDETL" = '170' ) AND
      T_00 . "FM_AREA" = 'COPA' AND
      T_00 . "FM_STATS" = ' ' AND
      T_00 . "FM_VTYPE" = '70' AND
      T_00 . "FUND" = '1026105000' AND
      T_08 . "S__0FUNDTYPE" = 1 AND
      T_09 . "SID" = 13695 AND
      T_10 . "SID" = 8
    <b>GROUP BY</b>
    T_01 . "SID" ,
    T_02. "SID"#

  • How are attribute and text master data tables linked in SAP R/3?

    Hello,
    how are attribute and text master data tables linked in SAP R/3?
    Most tables with attribute master data like T001 for company codes,
    have a text master data table T001T (add "T" to table name).
    When looking at the content of table T001 via transaction se11,
    the text are automatically joined.
    But for some tables there is no "T"-table (e.g. table TVBUR for sales offices
    has no text table TVBURT), but in se11 you get texts. There is an address
    link in TVBUR, but the Name1, etc. are empty.
    a) Where are the text stored?
    b) How does the system know of the link?
    Hope someone can help!
    Best regards
    Thomas

    Hi Thomas
    The master and text table are not linked by name, of course, if you see the text table, it has the same key fields of master table, only it has the field key spras and the field for description.
    The link beetween the tables is done by foreign key: if you check the text table TVKBT u need to see how the foreign key for field VKBUR is done:
    -> Foreing key with table TVBUR
    -> Foreing key field type -> KEY FIELD FOR A TEXT TABLE
    ->Cardinality-> 1-:CN
    It's very important the attribute sets for Foreing key field type, if it's KEY FIELD FOR A TEXT TABLE, it'll mean the table is a text table: i.e. that mean the master table is a check table for the text table, where the foreign key type is for text table.
    U can find out the text table of master table by SE11: GoTo->Text Table
    U can fined some information in table DD08L.
    Max

  • Incident management and Critical Master data table change management.

    Dears,
    I need to configure Incident management and Critical Master data table change management on our solman 7.0 server.
    I want to know how many days should be required for this activity and please share documents.
    Shivam

    Hi,
    I faced a similar situation,
    I tried all the possible ways like activating InfoObject manually, Through an activation program of aggregates,
    Also ran RSRV check which was showing no negative results.
    I raised an OSS note for the same but after that when SAP returned back the process chian ran again as it is a daily load which activated the record in 'M'.
    I ask you to wait till the next process chian run, and try all possible ways to activate.
    If it is not corrected then raise an oss to SAP.
    Thanks & Regards,
    Vishnu

  • Hi,master  data tables and SID's

    Hi,
    Where and how we will find the master data tables and SID tables?I am going to se16 and checking there but i am not able to see there in which table these are located or stored?
    Thank you,
    Sekhar..

    >
    chandra sekhar wrote:
    > Hi,
    > Where and how we will find the master data tables and SID tables?I am going to se16 and checking there but i am not able to see there in which table these are located or stored?
    > Thank you,
    > Sekhar..
    Assuming the infoObject name is ZINFOOBJECT.
    The tables are :-
    /BIC/MZINFOOBJECT       View of Master Data  Tables: Characteristic
    /BIC/PZINFOOBJECT       Master Data (Time-Ind.): Characteristic
    /BIC/RZINFOOBJECT        View SIDs and Char.  Values: Characteristic
    /BIC/SZINFOOBJECT       Master Data IDs: InfoObject
    /BI0/HZINFOOBJECT                 Hierarchy: InfoObject
    /BI0/IZINFOOBJECT                 SID Structure of Hierarchies: InfoObject
    /BI0/KZINFOOBJECT        Conversion of Hierarchy Nodes - SID: InfoObject
    /BI0/TZINFOOBJECT        Texts: Char.
    /BI0/XZINFOOBJECT       Attribute SID Table: InfoObject
    /BI0/ZZINFOOBJECT       View Hierarchy SIDs and Nodes: Char.

  • Deleted and adjusted the Master data table, sid table and text table

    Deleted and adjusted the master data table, sid table and text table of an zinfoobject after removing and adding attributes to that zinfoobject and was trying to activate it and system was giving me messages that cannot activate infoobject something like this.
    So, i deleted and adjusted the master data table, sid table and text table. Since then getting messages right after executing the query because in that query that infoobject is getting used.
    So the messages i am getting is:
    SID 9 for characteristic Zinfoobject could not be converted CL_RSDM_READ_MASTER_DATA->_SIDVAL_DIRECT_READ2
    System error in program SAPLRRK0 and form MEGA_SORT_M_02-02- (see long text)
    Please help me in fixing this whole thing.
    Thanks
    SAPBW

    SAP BW,
    After adjusting your Master Data IOBJ and deleting and reloading the data - run a change run to adjust the references to the SIDs and then see if your query runs - run program RSDDS_AGGREGATES_MAINTAIN from se38 and select your IOBJ in the next screen..
    Arun
    Assign points if useful
    P.S I did notice that in your earlier post for the same topic - you have had 12 answers / suggestions Please maintain only one thread as previously suggested..
    My 0.02
    Message was edited by:
            Arun Varadarajan

  • Copying Master Data Tables

    Hi
    Currently we have 0COSTELMT which is compunded to 0C0_AREA.
    Now I have to create ZCOSTELMT which is not compunded to 0CO_AREA.
    Also I have to create a new Cost Element Master table which is a copy of the existing Master table, except that Controlling Area is not included.  Duplicates in the source (two or more rows, from different Controlling Area, having the same Cost Element id) should result in one record.  The Cost Accounting cubes will then drop the existing Cost Element Master and include instead this new Master.  Any hierarchies built on Cost Element must also be attached to this new Cost Element Master.
    How do I create new master data tables which are a copy of old ones with some changes.
    Also how do I attach the hierarchies.

    How do I delete this attachment of datasources to 0COSTELMNT.
    Do I need to create new infopackages using the same datasources or should I create all three datasources too from scratch.
    I dont want 0CO_AREA in the new master data.
    Voodi,
    Can you elaborate " transformations between original DS and new IO"
    Thanks

Maybe you are looking for

  • I forgot the login password for my computer :S

    i have a brand new intel iMac, BRAND NEW... osx10.4.10, and i set up the password so my sister couldn't get into it, and kinda forgot it i dont have the original disks that came with the computer(moved) and cant find them, but would love to get into

  • I am working in Pages and am trying to have the same footer on every page ?I went into View/Layout and typed in footer text  in the space but it only appears on first page and not any subsequent pages? Thank you.

    I am working in Pages on a report and trying to have the same footer on each page. I went to View/Layout, followed instructions, but the footer text only appears on the first page and not any subsequent pages? What should I do differently please? Tha

  • FS-CD Dunning

    Hi FS-CD gurus, After running VPVA transaction the dunning levels are created in the FKKMAKO table. But the print dates are not updated. Due to this VYM10(Dunning history) transaction is not showing this dunning level in the output. Please advise on

  • Idocs miss match.

    Hi, I am changing a Customer Details using XD02 Tx. In BD50,The Message type'OILDEB' is Active. But when I run Program 'RBDMIDOC' to create an Idoc to send this change to other system,I am (At Times,not always)getting Idocs created in wrong order. Li

  • Backup in EM 11g

    Hello, I have a question about performing backup in Enterprise Manager, database 11.1.0.6 running on Linux. In 10.2, there were options 'Backup mode (online/offline), backing up archivelogs. I don't see them in 11.1 (i do Schedule Customized Backup).