Table Lookup

How can we do the table lookup when our lookup table is in target technology.
I need to do a lookup in an interface where our source tech is SQL server and target tech is Oracle. I need to lookup in the oracle table and populate the target table in a single interface.
The other issue I have is I have added another column in the the target table and I am not able to refresh my model. I have develop a complex interface and did all mapping for the target table and now I need to add another column in the target table. I alter the table but when I try to refresh(reverse) the model its not updating the model with new column.I manually added the column in the model but its not recognizing the column in the interface while running the interface. Is it known issue with ODI. when I create the new model and reverse the altered table its taking all the column in the table but I cant use this model in my interface as I have already develop my interface with old model.

1. ODI allows you to use tables located in the target in the source diagram. No issues with that. You can even use the target table as a source for loading itself. This is what you do if you want for example to update a field.
2. If the reverse does not take into account the new column, it is a reverse issue. Are you sure the column is present in the table accessed through the reverse-engineering context (specified in the model window)? It is likely that the error is here.
Once reverse-engineering is OK (or if not, when column creation is made manually), you should make sure that you can do "right-click > data" to view the new column's data.
Regards,
-FX

Similar Messages

  • Message mapping: table lookup

    The requirement:
    Source message contains some keys and values, and target message has different keys. Values are simply mapped. no problem. but the mapping between source message keys and target message keys is a bit complicated so it is controlled in a seperate table. End users do maintainance jobs on the mapping table on a daily base.
    I checked some threads in this forum and I now understand that this kind of table lookup can be done using the combination of JCo, ABAP programs and ABAP tables, but what is the common way in dealing with such kind of requirement?

    You can use value mapping if you are not looking at picking up values from application system.It is just like SM30 transcation.You can get the info under SAP XI->Design and Configuration->Configuration->Value Mapping.
    If you are in SP13 you can use lookup API SAP XI->Design and Configuration->Design->Mapping look ups.

  • Where Clause in Table Lookups for Data Load

    Hello,
    In Shared Components I created in Data Load Table. In this Data Load Table I added a Table Lookup. On the page to edit the Table Lookup, there is a field called Where Clause. I tried to add a Where Clause to my Table Lookup in this field but it seems that it has no effect on the Data Load process.
    Does someone know how to use this Where Clause field?
    Thanks,
    Seb

    Hi,
    I'm having the same problem with the where clause being ignored in the table lookup, is this a bug and if so is there a work around?
    Thanks in advance

  • BCG Brightness Contrast Gamma - Looking for BCG function returning color table / lookup table coded in pure G and applicable to Intensity Graph or Picture Control

    Looking for BCG function returning color table / lookup table coded in
    pure G and applicable to 8-bit Intensity Graph or Picture Control. Do
    not want to use IMAQ Vision is this particular application.  Any
    help is appreciated.
    Sincerely,
    Don

    Take a look at this color model software I put together.  (Don't concern yourself much with the basic programming at this point.). The color component generator subVI is borrowed from a LabVIEW example.
    First look at test_color2.vi.  If you adjust the sliders of the various controls, you will see how it works.  You can see that for pure B&W images, brightness, contrast, and gamma (which I think I have coded correctly) are all fairly straightforward to modify.
    Now look at test_color3.vi.  Here we try to adjust BCG for color images using the color model shown here where current color component clusters are carried into the BCG event cases via shift registers.  You can see that once color is introduced into the image, it becomes difficult to mix the colorizing with the BCG model.  And this is pretty much where I am right now.
    Would be interested in comments / suggestions.
    Sincerely,
    Don
    Attachments:
    test_color2.llb ‏2251 KB

  • SQL Table Lookup during WhilePrintingRecords phase

    Post Author: BrHunt
    CA Forum: Data Connectivity and SQL
    Is it possible in Crystal XI to perform a "real-time" SQL table lookup while processing records for printing?  Possibly in a user defined function?
    Thanks.
    Bryan Hunt

    Hi Jonathan,
    Below is an extract from SAP Note 490095 - DB6: Additional information on upgrade
    XIV/ Converting the table DBTABLOG
    < d021078 >----
    The table 'DBTABLOG' (among others) is converted for all source releases. Since this table may contain a lot of entries, this conversion may take a very long time.
    When you use the upgrade strategy 'resource-minimized', the complete conversion takes place in downtime.
    When you use the upgrade strategy 'downtime-minimized', the system proposes the table DBTABLOG for the incremental conversion with ICNV when it reaches a certain size.
    The part of the data that is not yet converted (by ICNV) at the beginning of downtime is converted in the PARCONV_UPG phase in downtime.
    Note that the maximum size of the log files on the database must at least be as large as the portion of data for the table 'DBTABLOG', which is converted in the PARCONV_UPG phase.
    Before the upgrade, find out how large the table 'DBTABLOG' in your system is and check whether the existing entries are also still required after the upgrade. You can delete the entries no longer required in accordance with the instructions contained in Note 41300.
    Also there is some information mentioned in SAP note 41300 which can be useful.
    Regards,
    Deepak Kori

  • Table lookup instead of fixed value mapping

    Hi Folks,
    My current scenario is that I have used fixed value mapping to map a single target field.  These details are actually maintained in the TP_Code table in R3 (a sample table).
    TradingPartner:SAP:Short Text
    PA:PA:Package
    PL:PAL:Pallet
    The table contains 20 entries.
    I am thinking that fixed value mapping is not a good option since there might have future changes in the TP_Code table.
    Is rfc lookup a good option?  But I am not sure which rfc to use and if there is any udf availble to be used in parsing the xml payload.
    Please advise.
    Thanks a ton!

    Thanks so much for the links!
    I managed to use and run the RFC lookup to an R3 table using JCo.  However, I am not getting the right result.
    I am getting the result in this format -> 800,PA,PAC,Package
    The correct output is PAC which is the third node.  Could this only be achieved by using java tokenizer?
    The code that I have used is as follows:
    Import com.sap.mw.jco.*;
    //write your code here
    String DBTABLE = a;
    String WHERE_CLAUSE = b" = ""'"c"'" ;
    String sapClient = "xxx";
    String hostName = "nnnxxx";
    String systemNumber = "xx";
    String userName = "nnnnn";
    String password = "******";
    String language = "EN";
    JCO.Repository mRepository;
    JCO.Client mConnection = JCO.createClient(
                   sapClient,
                   userName,
                   password,
                   language,
                   hostName,
                   systemNumber );
    // connect to SAP
    mConnection.connect();
    // create repository
    mRepository = new JCO.Repository( "SAPLookup", mConnection );
    // Create function
    JCO.Function function = null;
    IFunctionTemplate ft = mRepository.getFunctionTemplate("RFC_READ_TABLE");
    function = ft.getFunction();
    // Obtain parameter list for function
    JCO.ParameterList input = function.getImportParameterList();
    // Pass function parameters
    input.setValue( DBTABLE, "QUERY_TABLE");
    input.setValue( "," , "DELIMITER");
    //Fill the where clause of the table
    JCO.ParameterList tabInput = function.getTableParameterList();
    JCO.Table inputTable = tabInput.getTable("OPTIONS");
    inputTable.appendRow();
    inputTable.setValue(WHERE_CLAUSE,"TEXT");
    mConnection.execute( function );
    JCO.Table valueSet = function.getTableParameterList().getTable("DATA");
    String resultSet = valueSet.getString("WA");
    mConnection.disconnect();
    return resultSet;

  • FAct TABLE LOOKUPs data

    Hi,
    Please help me out in loading the fact tables
    I had used lookup on DIM table to get my SUK and if I use union transformation to get the out put from each lookup and then loading the data with some condition the data in my fact is not loading in a proper format.
    The union transformation is splitting the out put in to different records
    Please do inform me about which transformation should be used to get the data from lookup tables.
    Or please do inform me the approach to load the fact table in SSIS.
    I’m basically INFORMATICA resource and I’m implementing in terms of INFORMATICA    

    Hi, glad to see your reply. I am encountering almost the same problem, loading fact table, 
    My Dataflow is  like:
    Source Component -->LKP1(get Dim1 SUK) -->LKP2(get Dim2 SUK) -->LKn(getDimn SUK) ...-->Destination Component(load to fact table database), while i have tough difficulties:
    [FactoryLookup [352]] Error: Row yielded no match during lookup. 
    [FactoryLookup [352]] Error: The "component "FactoryLookup" (352)" failed because error code 0xC020901E occurred, and the error row disposition on "output "Lookup Output" (354)" specifies failure on error. An error occurred on the specified object of the specified
    component. 
    [DTS.Pipeline] Error: The ProcessInput method on component "FactoryLookup" (352) failed with error code 0xC0209029. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will
    cause the Data Flow task to stop running. 
    [DTS.Pipeline] Error: Thread "WorkThread0" has exited with error code 0xC0209029. 
    Could you please help me? How to fix them?

  • Help of adf:table lookup

    Hi,
    I have a requirement as below.
    For an ADF-BC view object ,I need to show the table with a search ook up on the header of the table.
    By default,when the page is first displayed, the table should be displayed without any data.
    On click of search lookup icon in the table header , a search pop up window should be displayed with search criteria[similar to query panel fields].
    On providing the search criteria in the popup and click of 'Ok' button,the popup window should be closed and the data as per the search criteria should
    be displayed in the table.
    I have done a poc in the following way.
    1.Create a Viewcriteria for the viewobject.
    2.Drag the viewobject as a table in the u.i.
    3.Provde a command button with lookup icon and provide a popup for the command button.
    4.Drag the viewcriteria as query panel.
    But this is not working as per my requirement.
    By default,when the page is displayed, the table is displaying data.[should not be in my case].
    Also,the moment I click on search button,the tabe data gets refreshed.As per the requirement,on providing criteria and clicl of 'Ok' to close the popup,
    the data should be displayed.
    Please suggest on better ways of implementing the requirement or mistakes in my poc impelementation.
    Thanks,
    Praveen

    check this for display data after press after press button
    Help on displaying data in adf:table
    and this for after click the OK button of your popup, although it is not exactly as you meed, but the idea is same:
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/af_dialog.htm#CHDFCEAI

  • Table lookup in sap po 7.4

    Hi there,
       And recently we have got new PO 7.4 system , to be frank I dont have much idea on this new PO.
    and the first scenario is the source input CDF file to ECC (Idoc) via PO.
    we need to maintain some table (not sure where) i.e. during mapping runtime for a combination of source field (say 4 field values) from table we need to get combinaiton of target fields values and populate to the Idoc fields.
    since we use single stack here my query is
    1, where should we create the tables ? ECC or DB (DB2) or ?
    2, which will be the best practise wrt performance ?
    3, what will be best approach here?
    pls suggest.

    Hi,
    Have a look at Value Mapping issue in PI 7.4 or write a UDF.
    Kind regards,
    Dimitri

  • One sequence for multiple lookup tables?

    I am sorry if this is off-topic, however can anybody advise what is better - use one sequence for all tables (lookup tables) or to create unique sequence for each table?
    Thanks
    DanielD

    Daniel,
    After you read this (http://asktom.oracle.com/pls/ask/f?p=4950:8:::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:2985886242221,), you may be sorry you asked.
    Scott

  • How to map lookup main table field in another main table using MDM 7.1?

    We created a new SAP MDM 7.1 repository with multiple main tables.  The first main table is called ProductMaster table which contains Products information.  The ProductCode is the primary key and the only display field for the table during data loading process. The second main table is ProductByRegion table which has a main table lookup field ProductCode and a RegionId field.  These two fields (ProductCode and RegionId) combine as the PK for this main table.  Both main tables have key mapping enabled. 
    I was able to load ProductMaster table using Import Manager.  But Iu2019m having trouble to load data into ProductByRegion table using MDM Import Manager.  Although I have met all the 5 requirements below (excerpted from MDM Import Manager Reference Guide P.222), the ProductCode wonu2019t show up on the destination value pane.  If I mapped all productCode to NULL field, ProductCode wonu2019t load.  If I u2018Addu2019 all ProductCode to Destination Value pane, the Import Manager added duplicated rows to Product Master table while only loading 1 record to ProductByRegion table.  I canu2019t get ProductCode show up in Matching Destination Field list.  When I checked ProductMaster records in MDM Data Manager, I right-clicked on one of records, chose Edit Key Mappings, it didnu2019t show anything.  However, if I right-clicked on one of those duplicated rows, Edit Key Mapping shows remote system and key correctly.
    Where did I do wrong?  How can I fix the problem?
    Thank you for help in advance.
    From: SAP MDM Import Manager Reference Guide:
    Mapping to Main Table Lookup Destination Fields
    Import Manager handles main table lookup fields (Lookup [Main])
    differently than other MDM lookup fields. Specifically, Import Manager
    does not display the complete set of display field values of the records
    of the underlying lookup table. Instead, the values it displays for a main
    table lookup field are limited by both the key mappings for the lookup
    table and the values in the source file.
    Also, Import Manager does not automatically display the values of a
    Lookup [Main] destination field in the Destination Values grid when you
    select the field in the Destination Fields grid. Instead, for a main table
    lookup field value to appear in the Destination Values grid, all of the
    following conditions must be met:
    u2022 The lookup table must have key mapping enabled
    u2022 The lookup field must be mapped to a source field
    u2022 The source field must contain key values for the lookup table
    u2022 The destination value must have a key on the current remote system
    u2022 The destination valueu2019s key must match a source field value
    NOTE ►► The current remote system is the remote system that was
    selected in Import Manageru2019s Connect to Source dialog (see
    u201CConnecting to a Remote Systemu201D on page 416 for more information).
    Vicky

    Hi Michael,
    Thank you very much for your response.  I'm new to SAP MDM, I need some clarification and help regarding your solution. 
    I did use two maps to load ProductMaster and ProductByRegion separately.  Here were my steps:
    1. create main table ProductMaster with key mapping enabled at the table level and set ProductCode as unique and writable once (primary key).
    2. create a map to load ProductMaster record from a staging table located an oracle database.  But Key mapping didn't show anything when I looked at them using Data Manager.
    3. create main table ProductByRegion with a lookup field looking at ProductMaster table.  This field and RegionId combines as a unique field for ProductByRegion table. 
    4. create a map to load ProductByRegion table.  But ProductCode records only shows on the source pane not destination pane and can't be mapped properly.
    My questions:
    1. How can I "Ensure that you add key mapping info for all ProductMaster records" besides enabling Key Mapping on the table level?
    2. How can I define a concatenation of ProductCode and RegionId as a REMOTE KEY"?
    Thanks a lot for your help!
    Vicky

  • Distinct count using lookup table

    How can I get a distinct count of column values using a different table?
    Let's say I want to get a distinct count of all "company_name" records in table "emp" that corespond (match) with "lookup" table, "state" category.
    What I want is to find counts for all companies that have a value of "california" in the "state" column of the "lookup" Table. I want the output to look like:
    Sears 17
    Pennys 22
    Marshalls 6
    Macys 9
    I want the result to show me the company names dynamically as I don't know what they are, just that they are part of the "state" group in the lookup Table. Does this make sense?
    M

    Mark,
    In the future you might consider creating test cases for us to work with. Something similar to the following where sample data is created for each table as the union all of multiple select statementsselect 'INIT_ASSESS' lookup_type
         , 1 lookup_value
         , 'Initial Assessment' lookup_value_desc
      from dual union all
    select 'JOB_REF', 2, 'Job Reference' from dual union all
    select 'SPEC_STA', 3, 'SPEC STA' from dual;
    select 'INIT_ASSESS' rfs_category
         , 1 val
      from dual union all
    select 'JOB_REF', 1 from dual union all
    select 'JOB_REF', 1 from dual union all
    select 'SPEC_STA', null from dual;Then we can either take your select statements and make them the source of a CTAS (create table as) statementcreate table lookup as
    select 'INIT_ASSESS' lookup_type
         , 1 lookup_value
         , 'Initial Assessment' lookup_value_desc
      from dual union all
    select 'JOB_REF', 2, 'Job Reference' from dual union all
    select 'SPEC_STA', 3, 'SPEC STA' from dual;, or include them as subfactored queries by using the with statement:with lookup as (
    select 'INIT_ASSESS' lookup_type
         , 1 lookup_value
         , 'Initial Assessment' lookup_value_desc
      from dual union all
    select 'JOB_REF', 2, 'Job Reference' from dual union all
    select 'SPEC_STA', 3, 'SPEC STA' from dual
    ), RFS as (
    select 'INIT_ASSESS' rfs_category
         , 1 val
      from dual union all
    select 'JOB_REF', 1 from dual union all
    select 'JOB_REF', 1 from dual union all
    select 'SPEC_STA', null from dual
    select lookup_value_desc, count_all, count_val, dist_val
      from lookup
      join (select rfs_category
                 , count(*) count_all
                 , count(val) count_val
                 , count(distinct val) dist_val
              from RFS group by rfs_category)
        on rfs_category = lookup_type;Edited by: Sentinel on Nov 17, 2008 3:38 PM

  • Syndicatng from both the main tables on change in lookup main table

    Hi SDNers,
    I have 2 main tables, say Main table, Lookup Main Table.
    The requirement is, on change/addition of values in Lookup Main table, I want the record to be syndicated consisting of the fields from the lookup main table and the corrseponding fields from the Main table.
    If any one has tried this/ any work arounds, please guide.
    Thanks,
    Priti

    Hey
    This can not be done through regular syndicator, you need to use Java API/ webservice for this.
    Thanks
    Aamir

  • Record Count Limit for Lookup Flat tables

    Hello Experts,
    I wanted to know if there is any limit on the number of lookup values(records) that can be created in a Lookup Flat table. If yes, what is the limit and where can we find such details. Is there any SAP provided documentation for the same.
    Thanks in Advance.
    Best Regards,
    Uday

    Hi Udaya,
    There should be limited number of records in lookup table when we consider MDM Performance considerations.
    There is also desirable share of Main table records Vs lookup table provided by SAP.
    Please refer below documentation for more details: 8.1 Performance considerations Page 61/97 onwards.
    Kindly refer 8.3 Lookup tables and 8.5 Qualified tables
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70b0caa1-92e5-2c10-c687-a8d05e778e59?quicklink=index&overridelayout=true
    It clearly tells that in Section 8.3 Lookup tables,
    *Lookup tables and qualified lookup tables should have a very limited number of fields and number of records.
    *Lookup table that are not referred should be eliminated.
    *Lookup tables records between 10,000 and 100,000 records should be avoided.
    *Lookup tables records above 100,000 should be absolutely avoided.
    Regards,
    Mandeep Saini

  • 4 lookups against single large table

    I need to do a 4 column lookup against a large table (1 Million rows) that contains 4 different record types.  The first lookup will match on colums A, B, C, and D.  If no match is found, I try again with colums A, B, C, and '99' in column D.  If no match, try again with column A, B, D, and '99' in Column C.  Finally, if no match in any of the above, use column A, '99' in B, '99' in C, '99' in D.  I will retreive 2 columns from the lookup table.
    My thought is that breaking this sequence out into 4 different tables/ lookups would be most efficient. The other option would be to write a script that handled this logic in a single transform with an in-memory table.  My concern is that the size of the table would be too large to load into memory.
    Any ideas/suggestions would be appreciated.  

    Hi all, ..Jamie glad your looking at this post. I've a spreadsheet contains about 26K rows and a warehouse fact table containing 10 million rows (after being filtered). I want to pull back only the fact table rows that match the id field in the spreadsheet,
    and thus extend the 26K rows in the spreadsheet with the fields from the fact table. Pretty basic join ID = ID. To make it interesting/challenging I'm using Excel 2010 32 Bit no issue with 26K rows but no way I can even browse 10 mil records without timeout.
    Seems like PQ can use SQL functions so was wondering if that might be an option to do the work on the server I.e. fn_ReturnRow(@ID). Haven't seen an example of this being used anywhere so perhaps you, Chris Webb or one of the other PQ Gurus could lend a hand?
    This may also help the original poster with some more functions to return back rows that would normally make PQ choke. Hopefully with minimal M. And BTW is there a way to use SQL Stored Procs in PQ? Cheers
    Geoff Fane

Maybe you are looking for

  • New computer + old hard drive... will I lose my data???

    My old macbook is going to be replaced with the new core 2 duo macbook. I took out my hard drive so that when the new computer shows up at my door, I can pop in my old hard drive. The problem is, I didnt backup my data. When the new computer comes, w

  • OUTPUT as FAZ

    Hi All, Can anyone tell what is the configuration to be done to send output as fax. Is it possible to send output as fax to corresponding warehouse number. If yes kindly tell me where we maintain FAX # for warehouse Points will be rewarded for suitab

  • Color management:  RGB values

    Working mass production with Aerial Photography. 8 bit color, scanline tifs Client request RGB values of light gray areas be within 5 of each other. For example: Red 130, Green 132, Blue 135. Need batch routine to run on 15,000 images. If it is even

  • Problem in developing jasper report in BEA workspace studio version 1.1 with weblogic server 10.0

    Hi! all, Myself developing a jasperReport in BEA workspace studio 1.1 and always getting the below mentioned exception, though i have run the same code in NetBeans successfully with the same jar file. Even i have added weblogic.jar, wllog4j.jar, clas

  • 2010 imac 3.6ghz 8gb vs 2011 2.5ghz 4gb

    Looking to get a 21.5 iMac and I have found a used 2010 high end for about the same price as a current low end. I will be using the machine primarily for Adobe CS5 with heavy use in Photoshop and illustrator. I'm familiar w/ Mac but I have not been a