Main table vs Look up Table in MDM 7.1

Hi All,
        I was looking at major differences between Main table and flat table.My question is what stops me from using my lookuptable as the main table as I can do Syndication,key mapping etc even with my flat tables.(Unless I am wrong in my assumption).
Regards,
Premjit

Hi ,
Maintable will hold data for a particular maste. It contains primary information about a business object such as a product or supplier. Lookup table will be a field which describes the master. you cannot use lookup as a main table because:
1. The data model flexibility to accomodate different data types: such as hiererchies, taxonomies, QT wont be possible using flat lookup tables.
2. Storing such a huge amount of data(lacs of records) in lookup will have lots of performance related issues and will slow down your MDM instance.
3. During integration with Portal it'll be very difficult and will require huge effort to use MDM JAVA API's to fetch/enter data to MDM.
These are few reasons which makes the case of using lookups as MT very weak. There will be more reasons im sure.
Manish

Similar Messages

  • Trying to update one table from a second table when data is different

    Hello;
    I have a the same table in two databases. The database are connected with a DB Link. I am trying to update one of the tables based on the data in the second table when the EMP_ID matches but the LAST_NAME does not match.
    The table(s) look like:
    Table Name:EMP
    EMP_ID
    LAST_NAME
    FIRST_NAME
    MIDDLE_INITIAL
    My SQL is:
    update EMP TARGET
        set (TARGET.LAST_NAME, TARGET.FIRST_NAME,TARGET.MIDDLE_INITIAL) = (
            select SOURCE.LAST_NAME, SOURCE.FIRST_NAME, SOURCE.MIDDLE_INITIAL
            from EMP@OTHER_DB SOURCE where
            TARGET.PHYSICIAN_ID = SOURCE.PHYSICIAN_ID
            and TARGET.LAST_NAME <> SOURCE.LAST_NAME); This returns an update count of all the rows not the few that I want.
    Any help would be great!

    Hi,
    Sky13 wrote:
    Hello;
    I have a the same table in two databases. The database are connected with a DB Link. I am trying to update one of the tables based on the data in the second table when the EMP_ID matches Do you <b>physician</b>_id?
    but the LAST_NAME does not match.
    The table(s) look like:
    Table Name:EMP
    EMP_ID
    LAST_NAME
    FIRST_NAME
    MIDDLE_INITIAL
    My SQL is:
    update EMP TARGET
    set (TARGET.LAST_NAME, TARGET.FIRST_NAME,TARGET.MIDDLE_INITIAL) = (
    select SOURCE.LAST_NAME, SOURCE.FIRST_NAME, SOURCE.MIDDLE_INITIAL
    from EMP@OTHER_DB SOURCE where
    TARGET.PHYSICIAN_ID = SOURCE.PHYSICIAN_ID
    and TARGET.LAST_NAME <> SOURCE.LAST_NAME); This returns an update count of all the rows not the few that I want.
    Any help would be great!There's no WHERE clause in that UPDATE statement, so every row of the target table will be modified.
    if you only want to modify the rows that have a match in the source table, then add a WHERE clause (perhaps "WHERE EXISTS (...) with a sub-query very miuch like the one you already have), or use MERGE instead of UPDATE.
    If you'd like help, post CREATE TABLE and INSERT statements to re-create the tables as they exist before the UPDATE, and also post the contents of the changed table after the UPDATE.
    Always say which version of Oracle you're using.
    Perhaps you want something like this:
    {code}
    MERGE INTO     emp     target
    USING     (
         SELECT     o.emp_id
              ,     o.last_name
              ,      o.last_name
              ,      o.middle_initial
              FROM     emp@other_db     o
              JOIN     emp          t ON     o.emp_id     = t.emp_id
                             AND     o.last_name     != t.last_name
         )          source
    ON     (target.emp_id     = source.emp_id
    WHEN MATCHED THEN UPDATE
    SET     target.last_name     = source.last_name
    ,     target.first_name     = source.first_name
    ,     target.middle_initial     = source.middle_initial
    {code}
    assuming emp is unique, at least in other_db.
    This will work in Oracle 10 (and up). In Oracle 9, MERGE always requires a WHEN MATCHED clause, so add one if you must. it doesn't matter what it does; the USING subquery will only return matches.
    Edited by: Frank Kulash on Oct 10, 2011 4:45 PM

  • MDM Data model design for Main table visa vis lookup table

    Hi ,
    I would like to know whether the legal entities or Address table which are common for all MDM main tables like Customer ,Vendor,Material,Business Partner etc can also become a main table when their attributes are around 30-40 range.
    Is it a sound design approach to make Company table with about 50 attributes and say address table with 20 attributes as Main table and replicate a small company-id table with 2 or 3 attributes to link to the main table(company)? This will ensure replicating that small table(company-id) to all other Main tables(customer,vendor,......) instead of replicating that big company table as lookup for all main tables?
    Thanks in advance for any idea or feasibility comments.
    -reo

    Hi, Deepak
    >>> - How can I populate the data in the lookup table at the same time when I am populating the main table ? I have only the XML's that correspond to the main table . I don't have seperate data for the lookup tables .
    I don't think you can populate both main table and all fields of lookup tables at the same time, i.e. using same map. You can consider 2 options to upload all information you have:
    1) If your XML file contains data you would like to upload to lookup tables, you can upload it to MDM lookup tables with several maps using same XML and choosing different sections of that XML corresponding to different MDM lookup tables.
    2) Also you can upload main table simultaneously with lookup table entries (using same map), but in this case new lookup table entries will only contain display field values that you mapped. To do this you should use 'Add' value mapping functionality for fields that you mapped to lookup tables.
    >>>- Can I use the standard maps available for import in the business content of material repository in MDM ?
    1) In case you have material master repository delivered by SAP and you use XML files which structure corresponds to SAP predelivered XSD schemas then you can use these maps undoubtedly.
    2) If your repository is based on SAP predelivered, but you changed it ,you should adjust these maps due to differences in repository structure and  XML files structure.
    3) If you created your repository from scratch you should consider option of making your own import maps.
    Regards,
    Vadim Kalabin

  • Look up tables

    what are look-up tables.....jena

    some more links
    Lookup method from GUI mapping can be called using any of the following ways.
    • RFC lookup using JCO (without communication channel)
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    • RFC lookup with communication channel.
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    • Lookup using JDBC adapter.
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
    • CSV file lookup.
    /people/sundararamaprasad.subbaraman/blog/2005/12/09/making-csv-file-lookup-possible-in-sap-xi
    3.2 Call lookup method from GUI mapping:
    The steps are as follows:
    • Develop and test ABAP function module.
    • Develop and test Java method within Integration Repository/message mapping tool.
    refer the below ays of lookup:
    Lookup - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    DB lookup - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    SOAP Lookup - /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0
    Lookup’s in XI made simpler - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the Lookup API -
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    /people/prasad.illapani/blog/2006/10/25/how-to-check-jdbc-sql-query-syntax-and-verify-the-query-results-inside-a-user-defined-function-of-the-lookup-api
    Lookups - /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
    Lookups - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
    Lookups with XSLT - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
    /people/sravya.talanki2/blog
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14
    Thanks
    Swarup

  • Look up table

    I want to prepare a look up table for voltage vs acceleration level in my program. This look up table will be used to search for the level of voltage to be fed to DAQ card  for the desired  acceleration in my application. Also how to read  the look up table...

    Hi Puneet,
    Take a look at the "write to spreadsheet file.vi" and the "read from spreadsheet file.vi". This is one way to accomplish what I think you're looking to do.
    cheers,
    --Russ

  • Table to look for change documents for users

    Hi friends,
    Is there any standard table to look for change documents for a user?change document through SUIM does not give the correct log.
    Thanks for you support.

    Julius
    Looking at another of Tracy's other post (http://scn.sap.com/thread/3598947) she's trying to use ACL. Hence needing to know the tables to write joins/queries to hit tables within ACL
    I've seen ACL used and have had the fun experience of Auditors using Google to find tables to perform checks on without context of what has actually been implemented in their particular system.
    Regards
    Colleen

  • Maintaining Remote key in look up tables for Production data

    Hi,
    me
    SEE in DEV and QA to maintain the Remote key for Look up tables.First i have exported those look up table values and again imported with mapping Remote keys (clone the field and map it to Remote key.). By this i have maintained the Remote keys to all look up tables. Now for Production what should i do. Is it the same process extract all records from production into our desktop and then again import it using IM, clone the field and map it to Remote key.
    1. Is this the right process?
    2. What happens if there are huge data present in production how to proceed furthr then?
    Required your suggestion please.
    Thanks,
    Pradeep

    HI Pradeep,
    I dont see any problem with this method if I am getting it right
    You are updating remote keys by reimporting lookup data, and this way you have multiple remote keys for data in lookup table,right?
    This will help you to automap entries in Import process for different Remote systems.
    I did not get your 2nd point?
    Thanks,
    Ravi

  • Code is not working check for solution . The code is not working after look up table.

    In this code i am multiplying two binary images , one is a rectangle and another is an image. i am getting the rectangle, but not the image. The image part is not working after the look up table. Waiting for the solution
    Attachments:
    binary morphology.vi ‏33 KB

    Hey.  I'm thinking the problem is in theis block:
    LOOP AT C_T_DATA INTO WA_MC17I30HDR.
       READ TABLE LT_AFIH
         WITH KEY AUFNR = WA_MC17I30HDR-AUFNR
         INTO WA_AFIH BINARY SEARCH.
       IF SY-SUBRC = 0.
         WA_MC17I30HDR-ZZNPLDA = WA_MHIS-NPLDA.
         MODIFY C_T_DATA FROM WA_MC17I30HDR.
    ENDIF.
    ENDLOOP.
    You are reading LT_AFIH into WA_AFIH.  But then you are assigning NPLDS from WA_MHIS. From what I can see, WA_MHIS hasn't been filled with anything.  Try changing:
         WA_MC17I30HDR-ZZNPLDA = WA_MHIS-NPLDA.
    To:
         WA_MC17I30HDR-ZZNPLDA = WA_AFIH-NPLDA.
    Hope that does the trick.
    Thanks
    Edited by: Siboda_Eric on May 26, 2010 3:49 PM

  • How to use database look up table function in xsl mapping

    Can anybody tell me how to use database look up table function while mapping xsl between 2 nodes.
    I have an XML file coming in and depending on one of XML elements we need to decide which further path to take. But, using this XML element, we need to query database table, get metadata and accordingly take appropriate path. I have written lookup function which returns metadata value.
    Now, the issue is how do I pass the XML element valu as input to look up function? When I tried to drag it to the input node of lookup function, it throws an error like "Maximum number of parameters exceeded"
    Thanks,

    If the lookup table is always going to remain the same (e.g. a character generator or something similar) you can place the values in a 2D array constant on your diagram, with the input value as one column, the equivalent as the other. When you need to perform the lookup you use an index array to return all the values in the "input column", search it using "search 1D array" and use the resulting index number to index the other column's data. If the values may change, then it would probably be best to load an array control with your equivalent values from a file.
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • ABAP Code Problem in Start Routine to Fill the value from Look-up Table ???

    Hi all,
         I am trying to fill the values of DOC_NUMBER & PLANT from look-up table /BIC/AZSD_O0700 (Billing Item ODS) for each BILL_NUM in Start Routine for Update Rules of Billing Header ODS and modify the data_package.
    What is wrong with the below ABAP code, PLEASE ???
    data: it_data type standard table of data_package_structure
            with header line
            with non-unique default key initial size 0.
    types: begin of billing_item_type,
                 BILL_NUM          like /BIC/AZSD_O0700-BILL_NUM,
                 DOC_NUMBER   like /BIC/AZSD_O0700-DOC_NUMBER,
                 PLANT               like /BIC/AZSD_O0700-PLANT,
             end of billing_item_type.
    refresh it_data.
    clear it_data.
    it_data[] = DATA_PACKAGE[].
    refresh DATA_PACKAGE.
    clear DATA_PACKAGE.
    loop at it_data.
        select DOC_NUMBER PLANT into (it_data-DOC_NUMBER, it_data-PLANT)
               from /BIC/AZSD_O0700
               where  BILL_NUM  = it_data-BILL_NUM
               and    FISCVARNT = it_data-fiscvarnt.
        endselect.
        if sy-subrc = 0.
           move-corresponding it_data to DATA_PACKAGE.
        endif.
      endloop.
      modify DATA_PACKAGE.
    Thanks,
    Venkat.

    Hi Venkat,
      Two things -One is the performance and the other ... there is no Append  within the loop.
      Try moving the select statement ousdie the loop to improve performance and move the modify statement into the loop ... change modify to append. Code below.
       Let me know if you need more help.
    Best regards,
    Kazmi
    data: it_data type standard table of data_package_structure
    with header line
    with non-unique default key initial size 0.
    types: begin of billing_item_type,
    BILL_NUM like /BIC/AZSD_O0700-BILL_NUM,
    DOC_NUMBER like /BIC/AZSD_O0700-DOC_NUMBER,
    PLANT like /BIC/AZSD_O0700-PLANT,
    end of billing_item_type.
    refresh it_data.
    clear it_data.
    it_data] = DATA_PACKAGE[.
    refresh DATA_PACKAGE.
    clear DATA_PACKAGE.
    loop at it_data.
    select DOC_NUMBER PLANT into (it_data-DOC_NUMBER, it_data-PLANT)
    from /BIC/AZSD_O0700
    where BILL_NUM = it_data-BILL_NUM
    and FISCVARNT = it_data-fiscvarnt.
    endselect.
    if sy-subrc = 0.
    move-corresponding it_data to DATA_PACKAGE.
    Append DATA_PACKAGE.
    endif.
    endloop.

  • Looking for table that links a PM Reservation to a MM Purchase Requisition

    Looking for table that links a PM Reservation to a MM Purchase Requisition

    Hi,
        Typically the way most SAP systems are configured, there are two scenarios here:
    1. The component reserved in the PM order is item category 'N'. This is a non inventory item and must be directly procured for consumption against the PM order at the point of goods receipt. In this case no reservation is created and instead a requisition is directly created (in table EBAN) and the requisition is account assigned directly to the PM order (in table EBKN - field AUFNR).
    2. The component reserved in the PM order is item category 'L'. In this case no requisition is directly created, instead a reservation is created against the item in stock (in table RESB). If there is sufficient stock of the item already then the item is consumed when it is goods issued to the PM order from stock using MIGO and there is no requisition created. In the event that there is not sufficient stock of the item for the reservations that exist, when MRP is run, a requisition will be created to replenish the stock, but this requisition will not be assigned to a specific PM order as it could be replenishing stock of the item for several reservations which are all for different orders. So in this scenario there is no direct link from the reservation generated by the PM order to the requisition.

  • How to make a magnifying glass link to a look up table ?

    Dear Friends,
    Hello. I am developing the accounting application of journal entry. In journal line, I use the image "magnifying glass" next to each chart field. When we click on the magnifying glass, it's supposed to come up a look up table( a chart and name mapping table), and we select the proper chart to input into the chart field.
    I understand to create another record and page for the look up table. But I don't understand how to make a magnifying glass link to a look up table. Can anybody tell me how to do that ? Thanks.
    Lucy

    This is how it works,
    Table A (which stores chart fields). You have used fields from table A on a page so that users can input data.
    You don't need to put a magnifying glass image or create a new page to achieve look up page.
    all you need to do is create another table say Table B which should have the chart field and corresponding description you want to show on lookup page. Then open record-field property of the chart field on Table A and mention Table B as prompt table.

  • 2 different  tables   in the main window with same internal table data

    Hi All,
    can we have 2 diffterent  tables with same internal table data into its work area in the main window.Is it possible or we will get any run time error.?
    is it like having 2 nested loop with same internal table ?
    ex : loop at itab1 into wa_itab.
           loop at itab1 into wa_itab.
    endloop.
    endloop.
    can we use like this?

    Hi,
    there will not be any error ...but what is the use of it...
    do you need to have a controlled way of display ...of the data...
    If so then you create another workarea in the global definitions of the same type and then use it...
    Regards,
    Ram

  • How would I format my table to look like this?

    Hi, I need to learn how to use tables to format the table to look like this.
    http://img695.imageshack.us/i/screenshot20100206at945.png/
    I've tried messing around and watching some tutorials. but I don't really see examples of this particular type of style. Most examples I saw only has the first row and first column high lighted.
    Please explain to me how to get the "objective, weighing factor, parameter" separated without bars and making the stuff underneath that tile have a certain color.
    Thank you

    figured it out haha thanks

  • How to read data from spreadsheet as a look up table

    Hello Can anybody please help me out in this..??
    I want to read data from a spreadsheet file as it is a look up table.
    I want to create a program which lets the user enter an element which is be found in the data in the spreadsheet file and gives back the number which is to the adjoining column of the element in the spreadsheet file.
    Example i have the following data in spreadsheet file:
    Range  Count
    2              10
    4              49
    6              60
    Etc.
    If i enter 2 to search the data in the spreadsheet file, i do expect the program replies back with the answer 10 and so on...
    Can anyone please help out...
    Thanks in advance...

    apok wrote:
    Why autoindex the output?  You should only have 1 output.  Besides, the Search 1D Array is simpler (no loop needed).
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Lookup Table.png ‏11 KB

Maybe you are looking for

  • R/3 report & BI report values getting different

    hi gurus, I am not getting proper values in both r/3 & Bi reports. both are not getting same. Bi i am using multiprovider with 1cube and ods. when i am searching r/3 report talling ods values and bi report tally with multiprovider values. what might

  • Can I reset the smc when my Macbook Pro (late 2013) won't power up?

    The AC plug appears to show that the computer is fully charged....green light display on plug.  Power button won't turn the computer on.

  • MacBook Air is not booting

    I have a MacBook Air with Mac OS X Leopard (10.5). I am trying to boot the system and I can not. The problem is that when the system boots and i am inserting my passcode it accepts the code and it starts the booting to the desktop screen, but instead

  • Error in F.5D

    Hi Experts, When I am executing the Program F.5D I am getting the error i.e; Errors in following documents Co,Code  Year  Document 5000        2008  50002345 5000        2008  50002391 (Reversed doc for 50002345) 5000        2008  50002418 Help me to

  • Simple Socket Programming, But,.......

    This code is Server, Client Socket program code. Client send data to server and then, Server get data and save it to file in server. I think client works well. But, Server.java file have some problem. It generate ClassNotFoundException! So the result