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

Similar Messages

  • 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

  • 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

  • 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

  • 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.

  • ABAP API for MDM work flow

    Hi SDN,
    I need some information related to ABAP API for MDM workflow. I did search in SDN and I found one solution in a thered posted on Jul-2008.
    ABAP API - MDM Workflow execute
    My dought is: Do we have any ABAP API for call MDM work flow. Please provide me the solution ASAP. Apprciate for your immediate response.
    Regards,
    Kumar.

    Hi LAKSHMAN ,
    To answer your question specifically
    Using ABAP api you cannot call MDM workflows as of mdm 5.5 there are no functions specific to calling MDM workflows in ABAP.If you want to implement workflows on ABAP side you need to go for SAP ECC workflows which is a different topic than MDM>
    To call MDM workflows over the Java stack ie WAS (SAP portal),You have 2 ways
    - UWL
    - Guided Procedures.
    - UWL is a way of calling MDM workflows on EP.Wherein the workflow design will be done in MDM and it will only be called in portal using appropiate connections and configurations.
    You can refer the below links to know more on them:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/771f1a61-0e01-0010-daa9-93a52905da09 (uwl)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a3461636-0301-0010-3787-978f5ac8bd45 (UWL config)
    - GP is a way where by you need to design the entire workflow on SAP portal the logic can be pertaining to MDM but the design is completely on portal using webdynpros and api.
    You can refer the below links to know more on them:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92811997-0d01-0010-9584-f7d535177831  (Guided procedures)
    Enterprise Master Data Management   (EP Guided)
    To know more on ABAP api and its provider classes you can refer the below:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/601ddb01-e5c8-2910-d981-b190b51fca44  (abap api webinar)
    Re: Abap api error (Abap api provider classes Forum)
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • How to refer the class package "com.sapportals.connector" for MDM API?

    Hi,
    Iam trying to execute one example mdm api program in dynpro/ejb.
    I could not refer the class package com.sapportals.connector.
    What SCA or build path package needed for dev time and runtime and where do i get that.
    Please help me.
    Thanks
    Hari

    Hi Armin,
    Sorry that I still got problem on importing and make use of the class for knowledgemanagement. I can found the cooresponding .jar file in folder "jakarta-tomcat-3.3.2\webapps\irj\WEB-INF\plugins\portal\services\knowledgemanagement\lib". And added the services reference as "ServicesReference=htmlb, knowledgemanagement". However, I still can't use the class for KM.
    I have read those code sample from KM in SDN, but they are mentioning the programming part and not the setting. Can you suggest the detail steps and code on adding the KM class into my customize class?
    I am using Eclipse as my development tools.
    Thanks & Regards
    Sam
    Message was edited by: Sam Choy

  • ABAP APIs for MDM Workflow Modification

    Hello All
    I require a help from all of you. Currently I have a particular business case where I need to configure the MDM workflow & do changes & modifications in it via ABAP APIs. Currently we are having Java APIs in plcae.
    Can you please tell me whether we have some ABAP APIS for this MDM Workflows, if yes what are their EXact names & functionalitites.
    Also can we download them from Service Marketplace.
    Please reply ASAP.
    Regards
    Madhurim Basu

    Hi Madhurim Basu
    ABAP API(SAP MDM 5.5.-7.1) are'nt support workflow management
    SAP MDM(5.5-7.1) JAVA API  are support workflow
    More about JAVA API you can read from:
    http://help.sap.com/javadocs/MDM/current/
    Regards
    Kanstantsin

  • Workflow start step performs Exclusive checkout

    We need to upload data to records that are in workflow and checked out by the workflow start step.  Unfortunately the workflow start step performs an Exclusive checkout of the record which means that the background MDM Impor Server user cannot automatically join the checkout, the user first needs to be invited to the checkout, which needs a manual step of modifying the join permissions of the checkout, which is not what we want to do.
    I have also noticed that when an existing record is checked out Exclusively the user's roles are pulled through into the permitted roles section of the join permission screen of the checkout.  When a new record is checked out Exclusively the user's roles are not pulled through to the permitted roles section of the join permission screen of the checkout.  This looks like a bug to me.
    We are using MDM 7.1 SP08.
    Please advise any workarounds to this problem.  I can think of a few, but none are very elegant, e.g.:
    1. Use API to invite import user to checkout before import is started (requires coding)
    2. Get the user that owns the workflow to manually invite the import user (not guaranteed to remember)
    3. Complete workflow and stat new wokflow without chekout before import is started.
    Any advice will be appreciated.

    Hi Johann,
    I got you point.
    Its not a bug in MDM these are the constraints in MDM :(.
    To understand more read section CHECKOUT AND WORKFLOW FAILURE CONDITIONS of the import manager refernce guide.
    http://help.sap.com/saphelp_nwmdm71/helpdata/en/4b/72b8e7a42301bae10000000a42189b/MDMImportManager71.pdf
    In our lanscape we too have a scenario where we are creating/ records in MDM leaving Material Number Blank (Record Add workflow).
    But once this record with balnk Material Number is syndicated to source system we stop this workflow.
    Now from source system through change pointer we get a file immediately with material Number and MDMID.
    which we process through MDIS and trigger another workflow(Record Import)
    I guess this matches with the third option you described to start and stop workflow and trigger import.
    Regards,
    Neethu Joy

  • Remote Key Manupulation in Java MDM APIs

    Hi ,
    I need to do create/Modify/retrieve remote key using MDM Java APIs. I have found out two APIs for retrieve and modify of remote key (RetrieveRecordsKeyMappingsCommand and ModifyRecordsKeyMappingsCommand using RecordKeyMapping).
    I am not getting any API to create remote key using Java APIs. Can anyone help me in this regard.If anyone has sample code also that would a great help.
    Thanks and Regards,
    Subhasis

    Hi,
    Please have a look on below code ...
              /TableID/
              TableId tableId = schema.getTable("table Code").getId();
    RecordId recordId = new RecordId("R1"); // record id of record to which you are going to add key mapping
              /Remote System Properties/
              RemoteSystemProperties remoteSystem = schema.getRemoteSystem("RemoteSystemCode");
              /*Creating new instance of RecordKeyMapping */
              RecordKeyMapping recordKeyMapp = KeyMappingFactory.createRecordKeyMapping(tableId,recordId);
              /*Creating new instance of KeyMapping */
              KeyMapping keyMapping = KeyMappingFactory.createKeyMapping(remoteSystem.getId());
              /*Setting value to Key value */
              keyMapping.addKey("1234");
              /storing keymapping instance in RecordKeyMapping instance/
              recordKeyMapp.addKeyMapping(keyMapping);
              RecordKeyMapping [] recordKey = ;
              ModifyRecordsKeyMappingsCommand rkm = null;
              try {
               rkm = new ModifyRecordsKeyMappingsCommand(context);
              } catch (SessionException e) {
              } catch (ConnectionException e) {
              rkm.setKeyMappings(keyMappings);
              try {
                   rkm.execute();
              } catch (CommandException e) {
    Hope this helps you.
    Cheers,
    Veeru.

  • MDM API Password questions...

    Hi Guru's
    I have some questions for which i am struggling to get the answeres on how MDM handles passwords using MDM's API's
    1. Is there a COM API for management of MDM users? COM documentation that we have does not mention anything.
    2. To avoid using any server side code, is it possible to remotely call the IF_MDM_ADMIN bapi through the RFC interface?
    Regards
    Vikrant M Kelkar..

    Hi! What about using ABAP method "create_user":
    CALL METHOD lr_api->mo_admin->create_user
    EXPORTING
    is_user_information = ls_user
    IMPORTING
    ev_new_user_id = lv_new_user.
    ls_user holds user name and passw.
    Refer to ABAP MDM API

  • How could i get access to MDM API,Is it available to all Enterprise accounts?e

    Hi ,
    I am trying to develop an enterprise application which needs to list all the installed Enterprise apps in the device.Also there is an option to delete the installed enterprise apps from device.I found that this can be done only by setting up a customized MDM server.My company already has an enterprise account.I have some doubts related to this
    1 . Is it possible to setup a custom MDM server using MDM API's?
    2. How could i get access to MDM API's to setup a custom MDM server/
    3. Is MDM server provided only by third party vendors?
    4. Is MDM server /MDM API available to all enterprise accounts?
    Looking forward  for a quick response.
    Thanks in advance

    A backup of a device with a newer version of iOS cannot be retored to a device with an older version.  The solution is to connect to itunes and update the new device's iOS, then perform a restore.

  • How to create a listener using the new MDM API

    Does anyone have an example on how to create a addrecord listener using the new MDM API?

    Refresh!
    Hi all,
    Looking for some sample codes on the same
    Best regards,
    Arun prabhu S

  • ABAP API For SP06?

    Hi
    We are trying to integrate MDM (5.5 SP06 Patch 3) with an ECC 6.0 server. We downloaded the MDM TECHNOLOGY 5.5.5.7.00 CAR file from service market  place. It was installed successfully in the ECC 6.0 server. But we are unable to find the relevant ABAP component for our MDM version in the "ABAP implementation for MDM version support" of the mdmapic transaction. The components in that table are the ones for SP04 and SP05 but not SP06.
    Has anyone successfully used ABAP APIs in their SP06 environment? If yes, then what was the CAR file that was used?
    Thanks.
    Regards
    Swarna

    Hi Kanstantsin
    In the begininng we had downloaded from the same path you have mentioned.
    After raising OSS note SAP responded by saying that - the installations should be downloaded from the path:
    Download ->
    Support Packages and Patches ->
    Support Packages and Patches - Entry by Application Group ->
    SAP NetWeaver ->
    SAP MDM ->
    SAP MDM 5.5 ->
    Entry by Component ->
    ABAP API for NW 7.0
    After doing that we are able to see the SP06 components.
    But now when i try the sample code in the ABAP API How to guide,  for creating a repository through API, i'm getting an error -
    "Server return code 0X84020003: DCNI_MSG_ErrInitDB"
    I verified the ip (same for server host and dbms host), port (20005), dbms username/password. They all seem to be fine.
    Has anyone faced this issue before?
    Thanks
    Swarna

Maybe you are looking for