on 08-14-2008 11:17 PM
Hello,
I am new to MDM and i would need some walk through on how to develop an application in java that can retrieve records and workflow data from the MDM repository using the current Java api.
Thanks.
Edited by: SAP GeEk... on Aug 15, 2008 12:25 AM
Hi SAP Geek,
For Retrieving Records,
Check: http://help.sap.com/javadocs/MDM/SP06P2/com/sap/mdm/data/commands/RetrieveLimitedRecordsCommand.html
For Workflows,
Check:
Also there are some examples given in JavaDocs which you can check here:
http://help.sap.com/javadocs/MDM/SP06P2/com/sap/mdm/examples/package-summary.html
Please let me know if you have any specific doubts
Regards,
Mausam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Experts,
Thank you for the links which are really very helpful. Using them i could develop on manipulating the records but i would also like to know how to search and delete the workflow task jobs.
Because if a record is stored in the workflow task we cannot delete it due this dependency. So i also need the coding style for workflow tasks.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aparna,
Please refer the link below on
Creating Custom-Built Applications with SAP NetWeaver Master Data Management (MDM) Java API - Webinar Presentation -
I am not quite sure that we can delete the tasks present in the Workflow but this doc will tell you the commands that you can use for deleting, modifying, retrieving, creating etc.
You can atleast it out.
Hope it helps.
Hi,
You can use the class RemoveRecordsFromWorkflowJobCommand -- to remove the records that is assigned to a workflow. -- input is workflowJobId.
RetrieveWorkflowTaskActionsCommand --- to search for workflow task.
You can refer to com.sap.mdm.workflow.commands and com.sap.mdm.workflow classes.. for different options of create, search and delete of workflow records.
http://help.sap.com/javadocs/MDM/SP06/
Thanks,
Priya.
Hi Aparna,
Please refer the Below link
http://help.sap.com/javadocs/MDM/SP06P2/index.html
Navigate to package com.sap.mdm.workflow.commands
DeleteWorkflowtaskCommand is used to delete the workflow which needs the setJobId as a required parameter. Once you have set this paramater use Execute command to delete the workflow task.
RetrieveWorkflowByIdCommand can be used to search the workflow task.
Regards,
Jitesh Talreja
Hello Jitesh,
I have gone through the link for API you have posted and i can code to access the workflow jobs and also to delete the specofic workflow job.
Now when i am trying to delete the record it shows an exception "The record is currently used in workflow".
How do i delete the workflow. I have also searched but i could not find "DeleteWorkflowtaskCommand" in the api.
Could you help me in this regard.
Thanks.
Hi Aparna,
Sorry it was my mistake for deleting the workflow, API available is DeleteWorkflowJobCommand and you cannot delete the record present in the workflow, so in order to remove the records from the workflow you have to use the RemoveRecordsFromWorkflowJobCommand API that needs WorkflowJobId as the required parameter.
Regards,
Jitesh Talreja
Hi Jitesh,
Thanks a lot i can now retriev and also delete the tasks along with the records assigned to that tasks.
Now i would like to seek your help in second scenario where we have a UWL iview in which the table shows the columns like task name, job id, created by..........and so on. Now i want to fetch jobid column value from this webdynpro iview and pass it to my java application.
Could you tell me the concept to pass parameters.
Thanks.
Hello,
I have a different problem occuring now. When i deploy my application on the sandbox server it working perfect. But when i am deploying it back on dev server it throws this exception:
com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ServerException: The specified MDM repository was not found on the server
at com.sap.mdm.commands.GetRepositoryRegionListCommand.execute(GetRepositoryRegionListCommand.java:96)
at com.amat.mdm.MDMDelete.main(MDMDelete.java:135)
Caused by: com.sap.mdm.internal.protocol.manual.ServerException: The specified MDM repository was not found on the server
at com.sap.mdm.internal.protocol.manual.AbstractProtocolCommand.execute(AbstractProtocolCommand.java:112)
at com.sap.mdm.commands.GetRepositoryRegionListCommand.execute(GetRepositoryRegionListCommand.java:84)
Can anyone give me solution how to resolve this error.
Thanks.
Hi Aparna,
This error specifies that for creating connection through API 2 . you are mentioning incorrect parameters for the Development Server. Might be you would have hardcoded the values for the Sandbox MDM Server and running the same on Development Server.
Just check you MDM server parameters once.
Thanks
Namrata
Hi aparna,
Here are some additonal links for information:
Working with SAP MDM Java API's :
How to Identify Identical Master Data Records Using SAP MDM 5.5 Java APIs :
Hope these links help.
Thanks and Regards
Nitin Jain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please refer to the below White papaer on Java API's.
Thanks,
Priya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.