MDM API for key Mapping.

Hi All,
Can anyone tell me how to use MDM API for updating key mapping ?
I want to create a webservice which will take customer,client system and key for updating key mapping in mdm.
Can anyone give me clue on this

Hello Rama:
Under Java you can do these things:
Delete key mapping:
CatalogData.DeleteKeyMapping(ClientSystem : String, Table :
String, RecordID : int, Keys : String[])
Argument Description
ClientSystem -> Client system name
Table -> Table name
RecordID -> Record ID
Keys -> Remote keys to remove
Set a new keymapping:
CatalogData.SetKeyMapping(ClientSystem : String, Table :
String, RecordID : int, Keys : String[], DefaultKeyIndex
: int)
Argument Description
ClientSystem ->    ClientSystem name
Table ->           Table name
RecordID ->        Record ID.
Keys ->            Remote Keys you want to add
DefaultKeyIndex -> Index entry into the key parameter
indicating the key value as the default.
I hope that helps
Alejandro

Similar Messages

  • ABAP API and Key Mapping

    Hello there,
    I am trying to use the MDM 7.1 ABAP API to access MDM data from within a BI system.
    Now I am wondering how to access key mapping for records in the Main Table.
    In the Java API there is the RetrieveRecordsKeyMappingsCommand which returns all key mapping information for a list of record IDs. But I cannot find something similar in the ABAP API.
    Who knows where to start?
    Thanks for hints
    Ingo

    Hi ,
    In ABAP API also you can retrieve key mapping of main table records using function 'MDM_API_RETR_CLIENT_SYS_KEYS'.
    You will get details of this function in sap library or ABAP API documentation provided by SAP.
    For any further queries kindly reply.
    Regards,
    Neethu Joy

  • Portege R200: Need keycodes for key mapping

    Hi there
    There is a lot of great software for mapping keycodes under GNU/Linux (like hotkeys or fnfxd) but one need keycodes to use it.
    I'd like to know what are the keycodes which are bind to
    1)TOSHIBA Assist Button
    2)TOSHIBA Presentation Button
    for FN+Key codes see the /etc/fnfxd/keymap file (in GNU/Linux with fnfxd installed ofcourse ;) )
    Thank you in advacnce

    I don't own a Laptop that would have these "special" key's to provide you the scan-codes but if I were you, I would try some "keyboard test utilities" that can tell you the code of each key pressed.
    A nice useful program (shareware) can be found on the link below:
    http://www.passmark.com/products/keytest.htm
    You will have to install an appropriate driver for Linux, that can handle these extended keys as I don't believe they use standard Bios codes.
    Never mind, give it a try and you will know ;) Always on a search ....
    Regards
    electrochain

  • MDM API for workflow

    Hello,
    we have workflow for a mdm table.we want to send workflow task completed records to xi.
    I have written webservice for getting records from mdm.
    but,I am not able to get task completed records filter for the same.
    sample code is something like this........
              SearchParameters searchParam = search.GetParameters();
                   FreeFormTableParameter fft =
                        searchParam.NewFreeFormTableParameter(aTable);
                   String keyName = null;
                   FreeFormParameterField fld = null;
                   int filtersSize = filters.GetSize();
                   for (int key = 0; key < filtersSize; key++) {
                        keyName = filters.GetAt(key).GetName();
                        fld = fft.GetFields().New(keyName);
                        fld.GetFreeForm().NewString(
                             filters.GetByName(keyName).GetValue().TranslateToString(),
                             FreeFormParameter.EqualToSearchType);
                        fft.Add(fld);
                   //end filter
                   A2iResultSet rs = null;               
                   rs = catalog.GetResultSet(search, rsd, sortByColumn, true, 0);
    I found <u>catalog.GetWorkflowTasks(Task.COMPLETED);</u> for task completed filter.
    but,how it filters in resultset?

    Hello,
    I used the command using the following code :
    GetActiveWorkflowTasksCommand gawf = null;
                   try
                    gawf = new GetActiveWorkflowTasksCommand(usc);
                   catch(ConnectionException cc)
                        cc.printStackTrace();
                   gawf.setSession(sessionId);
                   gawf.setTableId(tables[0].getId());
                   try
                        gawf.execute();
                        wdComponentAPI.getMessageManager().reportSuccess("Active Jobs Success");
                   catch(CommandException ec)
                        ec.printStackTrace();
                        wdComponentAPI.getMessageManager().reportException(ec.getMessage(), true);
                   WorkflowTask[] acwf = gawf.getActiveWorkflowTasks();
    but the Array acwf does not have any Workflow Tasks in it.
    Pls help

  • MDM API for exclusive checkout

    Hi All,
    How can we use CheckoutRecordAsNew() API in MDM ??
    I want to add a record by checking out exclusively.
    I am using the following
    int recordID=catalog.checkoutRecordAsNew("TableName",true);
    Now I want to update the fields in the record.
    catalog.updateRecord("TableName",recordID,timestamp,fields)l
    My Q is is this the correct way of adding record ? how can we create timestamp here ?
    THanks, Anil

    Hi,
    I solved the above issue.
    I have a new question.
    I checked out a record using catalog.checkoutRecordAsNew("TableName",true);
    I have updated the field successfully using catalog.updateRecord("TableName",recordID,timestamp,fields)
    Now I did a search on RecordID using
    catalog.getRecordsByID(rsd,ID)
    I am getting the nullpointerException while reading the field.
    Value v=rs.getValueAt(0,"MDM_CITY");
    I can see the value in the data manager but in my API i don't see that value.
    What could be the issue here ??
    Thanks, Anil

  • MDM Exception: Key mapping value must be unique. You cannot overwrite key

    "ServerException: Key mapping value must be unique. You cannot overwrite key mapping values."
    I received such exception when code tried to manipulate Key Mappings of the record.
    error was not happen on mdm 5.5 but on 7.1 it sometimes appears.
    What is probable reason of this?
    How to resolve this ?
    Code is approximate so:
                                         String[] keys = keyMapping.getKeys();
                        if (recordKeyMapping.containsKeyMapping(remoteSystem)) {
                    recordKeyMapping.replace(remoteSystem, keys);
              else {
                   recordKeyMapping.addKeyMapping(keyMapping);
              //Persist
              targetRecord.update();
    //where methods are:
         public void replace(RemoteSystem remoteSystem, String[] keys) {
              KeyMapping keyMapping = getKeyMapping(remoteSystem);
              if (keyMapping == null) throw new IllegalArgumentException("Can't update keys: key mapping for the system '" + remoteSystem + "' is not found");
              else {
                   keyMapping.setKeys(keys);
         public void addKeyMapping(KeyMapping keyMapping) {
              RemoteSystem remoteSystem = keyMapping.getRemoteSystem();
              for(int i = 0; i < keyMapping.size(); i++) {
                   addKey(remoteSystem, (String) keyMapping.get(i));
    Edited by: Vladimir Grigoryev on Oct 5, 2010 11:26 AM

    Hello -
    I am not sure on that coding part. but is it like are you trying to retrive Key Mapping from Memory accelerator. Here this information always needs to be read from Database.
    I am sure you also maintained  the required attribute for key mapping as in Property in Console should be set as "Yes" and other relevant things properly .
    Here also go through the below link for more insight from tools perspective.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30843106-5539-2b10-75a9-da483911b0d9
    http://help.sap.com/javadocs/mdm/sp06/com/sap/mdm/data/KeyMapping.html
    It may help
    Rgds
    Deep

  • Key Mapping in Syndication Port

    Hi,
    Scenario -- Syndication through mdm outbound port (automatic mode) :
    What will happen after XI successfully created data in R3 ? How MDM will get key mapping?
    Do you need to execute import manager externaly to update key mappings or it will automatically take care?
    Regards,
    Ram

    There are several options here :
    1) If the Client system allows external numbering, the key can be generated on MDM, and would be transferred in the XML-File and once a new record is created in the Client system, it would takeover this key. When you look in the Console in the Remote system section, there's a field "Key-Generation", which cen be used for this.
    2) Internal numbering on the CLient system. When the client system creates a key, this needs to be transferred back to MDM. This can be done e.g via calling a web-service "MDMAddRemoteKey".
    Regards Klaus

  • Intercompany and Key Mapping Price List

    Hi expert,
    I have the Intercompany Add-ON version 2.0.8.30 installed on a SAP Business One 9.0 PL15 for 4 localization:
    Head Office (H000): IT
    Branch 001 (B001): FR
    Branch 002 (B002): DE
    Branch 003 (B003): CH
    This is the scenario:
    I started two weeks ago without Key Mapping the Price List because the first choice was that to use different price lists for each country.
    Now, I need to replicate the H000 price lists in new created rice List in each brench.
    We created new Price lists named "ZZ IT 01", "ZZ IT 02" and so on and we Key Mapped them.
    Here the screenshot for Key Mapping:
    Problem is that:
    NO REPLICATION APPENS!
    The Mapping was created 1 week ago but NO syncronization appened...
    So, the question is: How I can syncronize the Price Lists?
    thanks in advance,
    Jonny Cortonicchi

    Hi ,
    In ABAP API also you can retrieve key mapping of main table records using function 'MDM_API_RETR_CLIENT_SYS_KEYS'.
    You will get details of this function in sap library or ABAP API documentation provided by SAP.
    For any further queries kindly reply.
    Regards,
    Neethu Joy

  • Key mapping on UNIX forms

    We are using character based forms on SGI IRIX (Unix) machine
    as client, I need to map the keys for the client which I have
    never done. Can anybody help me or advice me what are the respective
    steps to do it. I couldn't find a good document on this.
    Thanx in advance.

    You have to use the Oracle Terminal Editor to create key mappings. D2k uses a file called FMR*.RES for key mapping. Look in the Forms directory and you will find this file. Open the RES file with Oraterm and edit.

  • Does MDM APIs work in CE 7.2 landscape?

    Hello Experts,
    We have a requirement to fetch data from MDM tables and display in WD Java applications. We have to use MDM APIs for that. Our landscape is as follows:
    Portal server is on CE 7.2
    MDM Server version is 7.1 SP05
    Now, the major problem is, in order to establish a connection to repository by MDM API, we need to provide "MDM System Alias" in the code. This alias is for the system of type MDM created in portal system administration --> System Config.
    As far as I know, we need this alias created if we want to establish a connection. But following documentation on help.sap.com says that MDM Business Package isn't supported for CE 7.2 version. And until we deploy MDM BP, system template of type MDM isn't avaialble on portal.
    http://help.sap.com/saphelp_mdm71/helpdata/en/5e/48a04270600d31e10000000a1550b0/frameset.htm (See the Prerequisites section)
    What should we do in this case? Is it so that MDM APIs are not supported for CE 7.2 version at all? Or is there any other way to achive it?
    Please help me with your valuable inputs.
    Thank You,
    Ameya
    Edited by: Ameya Pimpalgaonkar on Jun 21, 2011 12:12 PM
    Edited by: Ameya Pimpalgaonkar on Jun 21, 2011 12:14 PM

    Hello Kanstantsin Chernichenka,
    Thank you very much for the reply. There is no way I can do this in SP 05? or do I have to upgrade to SP7 only? I am not sure if we can upgrade to SP7 that's why I am a bit concerned.
    And it is supported in SP07 means that I can deploy a business package for MDM on CE 7.2, only if MDM SP is 07?
    Ameya
    Edited by: Ameya Pimpalgaonkar on Jun 21, 2011 12:54 PM

  • Hierarchical Table Commands in MDM API

    Hi,
    I found only RetrieveLimitedHierTreeCommand,RetrieveLimitedHierChildrenCommand in MDM API for hierarchical tables.
    So how can we add a child or a sibling, delete a child or sibling to the nodes of the tree.
    Can anyone please give me links or some documentation on how to proceed with this.
    The other problem we are facing when retrieving the children using RetrieveLimitedHierTreeCommand
    When we add a search on the command it does not retrieve the children. it says the children for the level one node are null but if i donto set search it retrieves the children for all the nodes.
    Is there any specific setting that has to be done for using the search.
    Please let me know
    Thanks,
    Padmaja

    Hi Greg,
    I am adding the code snippet below. Can you please look into this and check if there are any problems
    RetrieveLimitedHierTreeCommand hr=new RetrieveLimitedHierTreeCommand(conAccessor);
    Search ser=new Search(repoSchemacmd.getRepositorySchema().getTable("New_Code").getId());
    FieldId fldId =repoSchemacmd.getRepositorySchema().getTableSchema("New_Code").getField("New_Code").getId();
    StringValue fldVal = new StringValue("G0440");
    ser.addSearchItem(new FieldSearchDimension(fldId),new TextSearchConstraint(fldVal.getString(),TextSearchConstraint.EQUALS));
    hr.setSearch(ser);
    ResultDefinition rd=new ResultDefinition(repoSchemacmd.getRepositorySchema().getTable("New_Code").getId());
    rd.setSelectFields(repoSchemacmd.getRepositorySchema().getTableSchema("New_Code").getFieldIds());
    hr.setResultDefinition(rd);
    hr.setSession(userSessionID);
    try {
         hr.execute();
    } catch (CommandException e) {
        e.printStackTrace();
    When i execute this part of code and get the children. i get the children as null.
    Thanks,
    Padmaja

  • Consolidated Infobjects Key mapping

    Hi
    In an SRM BW analysis  scenario for vendor evaluation  i need to consolidate infobjects from different source systems: SRM , R/3 and extermal WEB system  trought ABAP interface. The infobjects are 0GNVENDOR (SRM web Survey for vendor Evaluation) , 0VENDOR (R/3 MM) and 0BPARTNER .
    How can i solve this consolidation problem in an efficient way ?
    Thanks in advance

    Hi
    For the implementation of Consolidated infobjects is necessary the activation of 0GN infoarea and the implementation of standard ODS 0GN_BP with his complete dataflow for key mapping. After this  the ODS exports consolidated data (e.g 0GN_VENDOR>0VENDOR>0BPARTNER) to the infobjects  directly with the flexible master data staging (Instruction in inforea "Inserting Infobject as data target")

  • Andriod MDM API

    Does anyone know about an MDM API for lenovo devices?

    May I ask why you would like access to those APIs?  Those APIs are required to be called from registered Android Device Administrators.  The intent was to provide these APIs to MDM providers who are interested in adding support for Lenovo devices into their products, and therefore, Lenovo does not publish the APIs publicly.

  • MDM API to read the Record Key Mapping table

    Hi,
    Does anybody know what class/method I can use to read the Record Key Mapping table?
    For the Business Partner table the Key Mapping table has this columns:
    <u>Default / MDM Partner ID / Remote System / Key</u>
    I have everything but the Key. How can I read it?
    Thanks in advance,
    Diego.

    GetKey Mapping is one of the available Web Services as of SP4.
    Else you could use the Java API to get the Key Mapping.
    <b>CatalogData class</b> has the following method
    <b>GetKeyMapping</b>
    public java.lang.String[][] GetKeyMapping(java.lang.String agency,
                                              java.lang.String table,
                                              int[] recordIDs,
                                              boolean isDefaultKeyOnly)
                                       throws StringExceptionRetrieves the key mapping for each record.
    Parameters:
    agency - the agency name.
    table - the table name.
    recordIDs - the list of records.
    isDefaultKeyOnly - True to retrieve only the default value, False to all key values.
    Returns: the key values for each record.

  • IWeb page generates IE9 error for Google Maps API key

    My iWeb site generates an error in IE9 "This web site needs a different Google Maps API key". Is there any fix in iWeb for this?
    I've found this link that offers a solution for IE9 users. It seems to be a bug with IE9 mixed content security settings, but people will blame my website and not their browser
    http://answers.microsoft.com/en-us/ie/forum/ie9-windows_7/ie-9-is-telling-me-my- website-needs-a-different/59bfa1ed-f757-e011-8dfc-68b599b31bf5
    Excerpt from that site "Okay, I resolved the issue. I went into my Security settings. Under Miscellaneous I changed Display mixed content to "Enable". I believe there is a bug in the Display mixed content feature. I should be able to keep the setting at "Prompt", then see the content when I click the appropriate option when prompted. I believe the Google Maps API message was shown in error."

    You have to get your own API key: https://code.google.com/apis/console/
    My map uses a custom solution (Web Apps & Google Maps API V3) and is still working fine.

Maybe you are looking for