Re : looking up in other main table

Hi
Could someone let me know, my scenerio below:
I have 2 main tables Suppliers and Materials table, Can i set up a field in Suppliers table which looks into material main table and shows only the materials that this supplier produces.
Thanks in Advance

Hello Shifali,
You can create a Lookup main field in suppliers table.
Steps
1. Login to console and Unload the repository.
2. In the Main table Suppliers create a field called "Material ", select the Type as "Lookup main", and select the Main table as "Materials"
3. Load the repository with Update Indices.
4. Login to Data Manager and select the Main table as Suppliers.
5. You can see the field "Material" in the record detail tab , hear you can select a Material from the Main table "Materials" by providing a search criterian in the field.
6. In the Lookup main Field "Material" you can only see the fields of the Main table "Materials" for which the Display field Property is set to "Yes".
Eg: If you have only one display field called "Material Number" (Material Number Display field Property is set to "Yes") in the Main table Materials, you will only see this field in the Lookup main field in the Suppliers table.
You cannot write Assignments on Lookup main field though the Lookup main field is shown in the Assignment field Drop down. The assignment will Fail.
Beacuse for any lookup field you have to assign an existing lookup records (Eg. if you want to assign a value to lookup field Account groups of the Supplier table you have to select the existing value "Account.Group 0001" from the drop down) but in our case the lookup tab dropdown does not show the Lookup main records from the Main table Material, which means you cannot select an existing value
Rgds,
Prasad

Similar Messages

  • 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

  • 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

  • PDF file Not opening in Main Table

    Hi,
    I have added PDF lookup field in my main Table in console.
    I m able to import PDF file in PDF table ( after making Allow Invalid PDFs as YES)
    I have also imported PDF file in Main table field.
    But here PDF file is not opening.
    I m able to open PDF file only in PDF table & not in main table.
    Also i am not able to Generate Thumbnail.
    I m getting error:
    Regenerating thumbnail for 'Mahi.pdf'...failed.
    Regeneration of thumbnails complete.
    Can anybody tell me what could be the problem?
    Thanks,
    Mahi

    Hi Maheshwari,
    I have added PDF lookup field in my main Table in console.
    I m able to import PDF file in PDF table ( after making Allow Invalid PDFs as YES)
    I have also imported PDF file in Main table field.
    But here PDF file is not opening.
    You can link the pdf to the Main tabel record by two ways:
    1. Using Import Manager
    2. Using Data Manager itself.
    I have just tried it by the second way and I am able to open the Pdf in the Main Table itself.
    PLease follow these step below:
    1. Import the Pdf in the Pdf table and store the Pdf in the repository itself by choosing the Option - +Store in Repository+
    2.Go to Main Table and double click on the Look up field on the right side. GO to the Data Group Tab and add the Data Group you have created.
    3. Then choose the pdf you want to choose for that particular main table record. You will find the PDf getting attached in the Main Table Record.
    4. Now try and open the Pdf, HopefullyYou will find it opening in the Main Table itself .
    Hope it helps.
    Thanks and Regards
    Nitin jain

  • 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

  • Display many fields of a lookup table in the main table

    Hello Experts,
    In MDM, I have a "Suppliers" table which is a lookup table. This table has 4 fields :
    - Supplier Name (Display Field)
    - Supplier Code
    - Email
    - Phone number
    In the main table, a field "Supplier" uses the "Suppliers" lookup table. This fields displays the "Supplier Name" of the "Suppliers" lookup table.
    Now I also want to display the "Email" and the "Phone Number" of the supplier. If I set these fields as Display Fields in the "Suppliers" lookup table, they appear concatenated in the main table, which I don't want.
    The only way I found to display those fields is to set 2 new fields in the main table as calculated fields, eg: IF(TRUE, Supplier.Email).
    Is there any way to display those fields w/o using calculated fields?
    Thanks for your help

    Hi Christian,
    Thanks for your help. Actually I am working on the SRM part of MDM, so I do not use portal to display data but the SRM-MDM UI on which I can not manage iViews.
    The need is to have, for each Material displayed, the name and the contact data of the Supplier. If I concatenate those data  the display is not very clear for the user. Eg:
    Supplier data: TOTO, contact_at_toto.com, 1234567890
    I would rather have :
    Supplier: TOTO
    EMail: contact_at_toto.com
    Phone Number: 1234567890
    As you said, the non automatic update of calculated fields is an issue in my case. So I am currently looking at assignments, which seems to be schedulable via a workflow but I don't know if it's a good mean?
    Best regards,
    Patrick

  • Table somehow "removed" itself from main table.

    I am a novice and have learned the basics of html in order to update my company's website and add new pages as they become necessary.  In order to add the new pages, I have basically copied and pasted the code into DW, deleted the parts I don't need and added in the new stuff.  I needed to add a link to a line of links at the bottom of the page, went through each page and put in identical code.  The site has about 10 pages, and all but one look the way they should.  Everything else looks great.
    The one that went rogue has a footer which is in a larger font, is way over to the left (even though everything else is centered), and the line that runs across the top of this area (a .jpg) is too short.  I have checked and checked the code and compared to other correct pages, and can not find a difference.  The only difference I can see is when I view the split screen, and in the design view the main table (normally) will extend to the bottom of the page and the table which contains the footer is inside of this.  On the one rogue page, the footer is below the main table and I can not seem to be able to get it to go back into the main table.
    So I have two questions:
    1)  The "drag and drop" only deletes the code as far as I can tell, so how do I get this footer back into the main table (which is justified correctly)?
    2)  I am anticipating a lot of "add the code inside the table" responses, but I can not figure out which tags deal with which tables (this is part of the problem I think).  Is there a way to search the code in DW and find only the related tags?  (ie. if I find a </table> tag can I search for the <table> tag that corresponds to this without having to print out and search through the code by hand?)
    Any help would be greatly appreciated!  If you need additional information, I will do my best to provide it.
    Thank you,
    dingophil

    1)  The "drag and drop" only deletes the code as far as I can tell, so how do I get this footer back into the main table (which is justified correctly)?
    By placing the code back into the table! 8)  This is where a knowledge of HTML (and ultimately CSS is absolutely essential).  However a bit of knowledge about DW can help alot.  For example if you click in one of the table cells in design view, then click on the right-most <table> tag on the Tag Selector (at the bottom of the document pane), you will see all the code for THAT TABLE highlight.  This gives you a way to easily find which <table> tag belongs where.  But I'm not sure what you mean by 'only deletes the code' in your comment above - if you mean that dragging and dropping somehow deletes code then you are mistaken.
    The best way to solve your problem here would be to post a link to the recalcitrant page so we can see it and its code.  You'll have your answer in a jiffy.

  • Can't find the topics from the main table of contents

    I need urgent help. I am still running RH 8 for Word (2007). I published the entire project. When testing the main table of contents, the books and topics appear as expected, but when I try to go to any of the topics I get the message:
    The topic does not exist. Contact your application vendor....
    From the individual projects I can see the topics. When I publish them and view the contents all seem to work fine, but it does not when viewing the entire project from the main table of contents.
    The main project looks as follows:

    Tried that and still have the problem. The RH help lists the following workaround for the error
    message :
    To workaround this WinHelp viewer limitation, you can either manually insert the Help filename statement on every page of the external CNT file or allow RoboHelp to automatically do it for you:
    1 Open the Help file containing the included external CNT file.
    2 From RoboHelp Explorer’s File menu, select Project Settings.
    3 Select the Contents tab.
    4 Select the Include Help filename with pages option. When you save the TOC file, this option automatically places the "@helpfilename.hlp" inside the CNT file on every page.
    5 Click OK.
    6 Save the external CNT file.
    7 Recompile the Help project
    I went to the main index project which contains the external cnt file and tried to select the contents tab (no such tab in the project settings). Then I went to the actual project, and again, selected Project Settings there is no Contents Tab. Is there any other way to get that contents tab?
    This is how my screen looks like:
    eangel

  • Need to merge a csv file using external tables into a main table

    Hi,
    I have a csv file which contains the date(with time stamp), column1(number),column2(number), column3 (number). I am using external tables concept to load the data froom csv to this external table and then merging into the main table. Problem here is : the csv file is a system generated file and nothing can be edited under it. our aim is to automate this process of loading data from csv to the table. In this csv the date time stamp is not in the proper format.I mean the date is not visible and only minutes and seconds are visible.By changing the format in csv manually this can be overcome.but we donot need any manual intervention.
    how can i overcome this problem ?? please help mee...
    Excels data looks like:
    (PDH-TSV 4.0) (India Standard Time)(-330)     \\DISAPPSER01\Processor(_Total)\% Privileged Time     \\DISAPPSER01\Processor(_Total)\% Processor Time     \\DISAPPSER01\Web Service(_Total)\Current Connections
    56:59.0               47
    57:09.0     0.72379582     4.204561281     46
    57:19.0     0.916548537     4.006179927     44
    57:29.0     0.663034771     3.674662541     43
    57:39.0     0.750789844     4.093933999     42
    57:49.0     0.721538487     2.650858026     40
    57:59.0     0.594781604     3.333393703     40

    please format your sample data giving header to the column so that we can make sense out of the values, also since the minutes and seconds are only given, what is the date to be considered for records to be moved to the master table, sysdate or will the date be passed as a parameter?

  • More than one main table

    All -
    Is there any pros and cons to have more main table for master data in sigle repository. say 4-5 main table ?
    Here most of the look up can be common in many cases.
    I am confusing to move ahead.
    as in what impact on Database, Roles , users, Load etc ..
    Suggesst.
    Rgds
    Deep

    Hi Deepak,
    as in what impact on Database, Roles , users, Load etc ..
    I don't think there should be impact on database, and for Role & user credential you can
    manage as different main table there are some Point need to take care i.e. as follows
    1. Number of Tuple and Qualified table assign to single main Table
    2. Number of records on single main table
    3. Number of User login to repository
    Why you need 4-5 main table ???
    i would suggest consolidate your main table to 2 or build new repository rather to create 4-5 main table in to single repository to avoid complexity and easy to use and maintain
    Note: Above mention point may change upon your business requirement
    Thanks,
    Jignesh Patel

  • Main Tables reference querry

    Hi,
    I am working on a respositry having two main tables. My question is:
    If a repository has 2 main tables, with the 2nd being referred to by the 1st with a u201CLookup Mainu201D, if data changes in the 2nd main table,  does that flag the record(s) in the 1st main table as having been u201Cchangedu201D?
    So u2026if a syndication was set up off of the 1st main table, will a record from there get syndicated automatically (if the import server and port has been configured to import on any change in the record) if the Lookup Main reference changed?
    Regards,
    Indraveer

    Hey,
    Any changes in Lookup table will not trigger syndication in Main table since the main table only refers to the lookup table via a pointer. A record is syndicated if this pointer is changed , in case of Main table looking into Look-up table, pointer is not changed, only the record in lookup table is changed (pointer of the lookup table is changed ofcourse, so it will trigger syndication of lookup table).
    So in your case, the answer would be No.
    Alternative approach would be to use Java API for this, you can read the event of lookup table syndication and trigger main table record for it.
    We had a similar requirement and had to follow this path.
    Thanks
    Aamir

  • Syndicate Qualifers along wiht main table as a flat file

    Hi All,
    Is it possible to syndicate qualifiers along with main table as a flat file??
    I can see the data in the data manager... I mapped the source Qualifers to the destination field.. But I am unable to see the data/value in the preview tad or in the file... Am I missing some thing?
    Please advise.
    Thanks
    RAJEEV

    Hi Rajeev,
    Is it possible to syndicate qualifiers along with main table as a flat file??
    Yes this is quite possible.
    I checked, this is working fine at my end. I mapped qualifier fields e.g quiliferfield1 [Qual] under(when navigate) flower node(symbol) of field say XX in main table which is look up to Qualified table. I am able to see Qualifier values in Destination Preview tab.
    But I am unable to see the data/value in the preview tad or in the file... Am I missing some thing?
    Just check through Data Manager, whether for those Qualified table with main table record has associated Qualifier values or not. May be in your case main table records has not associated qualifier values,  I mean has empty or null Qualifiers.
    Regards,
    Mandeep Saini

  • Unable to read field value from main table - unexpected socket read error

    Hi Friends,
    While executing the below code, I am able to get the value of the field 'id' but i am unable to get the value for the 'materialnumber' field. i am getting the below exception
    +com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ProtocolException: java.io.IOException: Unexpected socket read.  Result is -1.
         at com.sap.mdm.data.commands.AbstractRetrieveLimitedRecordsCommand.execute(AbstractRetrieveLimitedRecordsCommand.java:158)
         at com.sap.mdm.data.commands.RetrieveLimitedRecordsCommand.execute(RetrieveLimitedRecordsCommand.java:157)
         at updaterecords.main(updaterecords.java:126)
    Caused by: com.sap.mdm.internal.protocol.manual.ProtocolException: java.io.IOException: Unexpected socket read.  Result is -1.
         at com.sap.mdm.internal.protocol.manual.AbstractProtocolCommand.execute(AbstractProtocolCommand.java:100)
         at com.sap.mdm.data.commands.AbstractRetrieveLimitedRecordsCommand.execute(AbstractRetrieveLimitedRecordsCommand.java:146)
         ... 2 more
    Caused by: java.io.IOException: Unexpected socket read.  Result is -1.
         at com.sap.mdm.internal.net.DataSocket.receiveData(DataSocket.java:59)
         at com.sap.mdm.internal.net.ConnectionImpl.readInt(ConnectionImpl.java:417)
         at com.sap.mdm.internal.net.ConnectionImpl.nextMessage(ConnectionImpl.java:501)
         at com.sap.mdm.internal.net.ConnectionImpl.receiveMessage(ConnectionImpl.java:472)
         at com.sap.mdm.internal.net.ConnectionImpl.send(ConnectionImpl.java:209)
         at com.sap.mdm.internal.net.ReservedConnection.send(ReservedConnection.java:105)
         at com.sap.mdm.internal.protocol.manual.AbstractProtocolCommand.execute(AbstractProtocolCommand.java:97)
         ... 3 more+
    import com.sap.mdm.commands.AuthenticateUserSessionCommand;
    import com.sap.mdm.commands.CommandException;
    import com.sap.mdm.commands.CreateUserSessionCommand;
    import com.sap.mdm.commands.DestroySessionCommand;
    import com.sap.mdm.commands.GetRepositoryRegionListCommand;
    import com.sap.mdm.data.Record;
    import com.sap.mdm.data.RegionProperties;
    import com.sap.mdm.data.ResultDefinition;
    import com.sap.mdm.data.commands.RetrieveLimitedRecordsCommand;
    import com.sap.mdm.ids.TableId;
    import com.sap.mdm.net.ConnectionException;
    import com.sap.mdm.net.ConnectionPool;
    import com.sap.mdm.net.ConnectionPoolFactory;
    import com.sap.mdm.schema.FieldProperties;
    import com.sap.mdm.schema.RepositorySchema;
    import com.sap.mdm.schema.commands.GetFieldListCommand;
    import com.sap.mdm.schema.commands.GetRepositorySchemaCommand;
    import com.sap.mdm.search.Search;
    import com.sap.mdm.server.DBMSType;
    import com.sap.mdm.server.RepositoryIdentifier;
    public class updaterecords {
         public static void main(String[] args) {
              try {               
                    String serverName = "159.112.6.26";
                    ConnectionPool connections = null;
                    try {
                         connections = ConnectionPoolFactory.getInstance(serverName);
                    } catch (ConnectionException e) {
                         e.printStackTrace();
                         return;
                   // specify the repository to use
                   // alternatively, a repository identifier can be obtain from the GetMountedRepositoryListCommand
                   String repositoryName = "DEMO";
                   String dbmsName = "MDMD";
                   RepositoryIdentifier reposId = new RepositoryIdentifier(repositoryName, dbmsName, DBMSType.ORACLE);
                   // get list of available regions for the repository
                   GetRepositoryRegionListCommand regionListCommand = new GetRepositoryRegionListCommand(connections);
                   regionListCommand.setRepositoryIdentifier(reposId);
                   try {
                        regionListCommand.execute();
                   } catch (CommandException e) {
                        e.printStackTrace();
                        return;
                   RegionProperties[] regions = regionListCommand.getRegions();
                   // create a user session
                   CreateUserSessionCommand sessionCommand = new CreateUserSessionCommand(connections);
                   sessionCommand.setRepositoryIdentifier(reposId);
                   sessionCommand.setDataRegion(regions[0]); // use the first region
                   try {
                        sessionCommand.execute();
                   } catch (CommandException e) {
                        e.printStackTrace();
                        return;
                   String sessionId = sessionCommand.getUserSession();
                   // authenticate the user session
                   String userName = "meter1";
                   String userPassword = "meter1";
                   AuthenticateUserSessionCommand authCommand = new AuthenticateUserSessionCommand(connections);
                   authCommand.setSession(sessionId);
                   authCommand.setUserName(userName);
                   authCommand.setUserPassword(userPassword);
                   try {
                        authCommand.execute();
                   } catch (CommandException e) {
                        e.printStackTrace();
                        return;
                   GetRepositorySchemaCommand cmd=new GetRepositorySchemaCommand(connections);
                   cmd.setSession(sessionId);
                   try{
                        cmd.execute();               
                   }catch(CommandException e){
                        System.out.println(e.getLocalizedMessage());
                   RepositorySchema repsch=cmd.getRepositorySchema();
                   // the main table, hard-coded
                   TableId mainTableId = new TableId(1);     
                   // specify the result definition (what to retrieve); in this example, nothing
                   ResultDefinition rd = new ResultDefinition(mainTableId);
                   // select all records
                   Search search = new com.sap.mdm.search.Search(mainTableId);
                   //get fields
                   GetFieldListCommand getFieldListCommand = new GetFieldListCommand(connections);
                   getFieldListCommand.setSession(sessionCommand.getUserSession());
                   getFieldListCommand.setTableId(mainTableId);
                   try {
                        getFieldListCommand.execute();
                   } catch (CommandException e) {
                        System.out.println(e);
                   FieldProperties[] lookupFields = getFieldListCommand.getFields();
                   // add fields to records to retrieve
                   rd.addSelectField(repsch.getFieldId("Products","Id"));
                   rd.addSelectField(repsch.getFieldId("Products","MaterialNumber"));                              
                   // retrieve the records
                   RetrieveLimitedRecordsCommand limitingCommand = new RetrieveLimitedRecordsCommand(connections);
                   limitingCommand.setSession(sessionId);
                   limitingCommand.setResultDefinition(rd);
                   limitingCommand.setSearch(search);
                   //limitingCommand.setPageSize(2000);
                   try {
                        limitingCommand.execute();
                   } catch (CommandException e) {
                        e.printStackTrace();
                        return;
                   System.out.println("Record count is " + limitingCommand.getRecords().getCount()+"\n");
                   Record[] records=limitingCommand.getRecords().getRecords();
    System.out.println(records[0].getFieldValue(repsch.getFieldId("Products","Id"))+ " \n");
    System.out.println(records[0].getFieldValue(repsch.getFieldId("Products","MaterialNumber"))+ " \n");
                   // finally destroy the session
                   DestroySessionCommand destroySessionCommand = new DestroySessionCommand(connections);
                   destroySessionCommand.setSession(sessionId);
                   try {
                        destroySessionCommand.execute();
                   } catch (CommandException e) {
                        e.printStackTrace();
                        return;
              } catch (Exception e) {
                   System.out.println(e.getLocalizedMessage());
                   e.printStackTrace();
    Kindly let me know where i am going wrong. MaterialNumber field is a TEXT not a lookup table field.  Above fields are from the main table.
    Thanks,
    Raags

    Hi Friends,
    I got the solution. It was the error because of not having a the below statement.
    limitingCommand.setPageSize(1);
    As i havent used that statement, it was trying to get 1000 records, and i dont know exactly what makes this to get that error. Anyhow., As i want to use for updation, i cn live with one record.
    Thanks,
    Raags

  • Retrieving lookup field values from a main table using MDM JAVA APIs

    Hi all,
    am trying to retrieve the main table data...., i could able to retrieve all the data except lookup field values..., iam facing some runtime exceptions and i dont know why exactly it is throwing this exception..., i pasted piece of code where exactly the error is and the exception also.
    in the below sode i set some result set definitions and passing them to retrieveLimitedRecordsCommand. it is showing some exception at retrieveLimitedRecordsCommand.execute(); command.
    //*** Code  ***//
      supportingMainResultDefinitions = new ResultDefinition[] { rdQual ,rdFlat, rdqFlat  };
                                            retrieveLimitedRecordsCommand.setResultDefinition(rd);
                                            retrieveLimitedRecordsCommand.setSearch(new Search(tableId));
                                            retrieveLimitedRecordsCommand.setSession(sessionId);
                                            retrieveLimitedRecordsCommand.setSupportingResultDefinitions(supportingMainResultDefinitions);
                                            try {
                                            retrieveLimitedRecordsCommand.execute();
                                                    PrintRecords.toConsole(retrieveLimitedRecordsCommand.getRecords());
                                                    } catch (CommandException e) {
                                                    e.printStackTrace();
    //***  Below is the Exception raised ***//
    java.lang.UnsupportedOperationException: Unexpected field type -1
            at com.sap.mdm.internal.schema.PropertiesHelper.createField(PropertiesHelper.java:274)
            at com.sap.mdm.internal.schema.PropertiesHelper.convertFrom(PropertiesHelper.java:281)
            at com.sap.mdm.internal.data.RecordMetadata.<init>(Unknown Source)
            at com.sap.mdm.internal.data.RecordsLoader.<init>(Unknown Source)
            at com.sap.mdm.internal.data.RecordsLoader.<init>(Unknown Source)
            at com.sap.mdm.internal.data.RecordResultSetHelper.convertFrom(Unknown Source)
            at com.sap.mdm.data.commands.RetrieveLimitedRecordsCommand.execute(Unknown Source)
            at com.sap.mdm.apitutorial.lesson2.RecordsDisplay.getDisplayRecords(RecordsDisplay.java:303)
            at org.apache.jsp.Sample_jsp._jspService(Sample_jsp.java:190)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
            at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
            at java.lang.Thread.run(Thread.java:534)
    If anyonw worked on this concept..., please provide me the solution
    Regards
    Praveen k

    Which version are you using?  Can you please try and narrow down to the offending field?  You can do this by limiting the fields you provide to ResultDefinition.

  • How to replace NULL values from main table

    Dear all,
    I like to remove the NULL values from a main table field. Or the question is how to replace any part of the string field in MDM repository main table field.
    e.g.   I have a middle name field partly the value is NULL in some hundreds of records, I like to replace NULL values with Space
    any recommendation.
    Regards,
    Naeem

    Hi Naeem,
    You can try using Workflows for automatically replacing NULLs with any specific value.
    What you can do is: Create a workflow and set trigger action as Record Import, Record Create and Record Update. So, that whenever any change will occur in the repository; that workflow will trigger.
    Now create an assignment expression for replacing NULLs with any specific value and use that assignment expression in your workflow by using Assign Step in workflow.
    For exiting records, you will have to replace NULLs manually using the process given by Preethi else you can export those records in an Excel spreadsheet which have NULLs and then replace all NULLs with any string value and then reimport those records in your MDM repository.
    Hope this will solve your problem.
    Regards,
    Varun
    Edited by: Varun Agarwal on Dec 2, 2008 3:12 PM

Maybe you are looking for

  • Calculating  if overdue

    Hello, I have a scenario that I need to pull from one table information pertaining to a proficiency test by the date it was last preformed and if it is over due -only print out if over due and those due within 3 months. Resulting in name, date of las

  • SOAP Receiver   java.io.IOException: unable to create a socket

    Hi All, I have scenario where i invoke a external webservice  (over internet)  using SOAP adapter. I can reach the external target as they see my traffic on firewall but i always get: com.sap.aii.af.ra.ms.api.DeliveryException: java.io.IOException: u

  • Transfer Z10 contacts to Q10, link does not copy everything.

    I sued the Blackberry link to trasnfer the Z10 data to the Q10 but quite a few peoples numbers just show up with out their name.  Does anyone know what the problem is?  I have tried everything and I am tired.  I just want my Q10 to work like the Z10.

  • 30EA4 : Code Completion issues

    1. Code Completion got better in 30EA4, still I need to do 3 retries with 5 second gap in between. (both explicit and implicit) See log below. And where is preference for code completion log and deadline thresholds, Vadim promised 30EA2 : Code Comple

  • SQL extraction from network trace?

    Anyone know of a way to easily extract SQL statements from a ".cap" file created from a protocol analyzer like "snoop" or MS Network Monitor? It seems too useful for someone not to have created such a utility. I can use something like Ethereal to bro