Using MDM API
Hi all
how the data has to be retrieved and strored between webdynpro and MDM using MDM java APi?
can u explain it with any sample example?
Regards
Sunil
Hi Suresh,
Thie following links provides information on interfaces for accessing MDM Data directly from other applications using Web Services, ABAP technology, and Java API technology.
[http://help.sap.com/saphelp_mdm550/helpdata/en/45/50b345af8e3be6e10000000a1553f7/frameset.htm]
[http://help.sap.com/saphelp_mdm550/helpdata/en/45/50b378af8e3be6e10000000a1553f7/content.htm]
I hope this will be helpful to you.
Rgds,
Krutarth
Similar Messages
-
Error when creating record from portal into MDM using MDM API's
Hi All,
When trying to create a new record from Portal we are getting the below error. It is working fine till yesterday.
We are using MDM API's from webdynpro java for creating.
What could be the reason for this. Not sure whether this error is ocuring for all the users or for single user.
"Exception: CommandException com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ServerException: Database command execution error. A SQL statement failed to execute. The actual error may have been written to a log file."
Please help to resovle this.
Thanks
SatishHello Satish
Suppose your Portal was upgrated
if it right - search and deploy new mdm packages
Regards
Kanstantsin -
Getting the name of the column using MDM API
Hi I want to know the Column name from fieldId, can any one help me on this. I am using the following code to get the data but i nedd column name to which the data is refering
ArrayList mdmData=new ArrayList();
RecordResultSet rs=(RecordResultSet)obj;
FieldId field[];
for(int i=0;i<rs.getRecords().length;i++)
field=rs.getRecords()<i>.getFields();
for(int j=0;j<field.length;j++)
mdmData.add(rs.getRecords()<i>.getFieldValue(field[j]));
Regards,
SandeepHi Sandeep,
When you fetched the FieldID from FieldProperties object. There is one more method to this class named FieldProp.getName(). This returns you the Name of the Field. You can store that too if you need it later.
Thanks
Namrata -
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 thisHello 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 -
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 PMHello 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 -
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 advanceA 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.
-
Hi,
I am trying to build a business case as to why a business should go for MDM implementation. Can anyone provide any insight into what are the key business benefits of implementing MDM ?
ThanksHi GS,
In addition to above posts
MDM Implementation basically deals to manage and maintain master data of the any firm/organization.
The Dis separate and bad data is lying through out your IT landscape. to get a "singel version of truth" or "360 degree view of your data" you need to implement MDM.
though many MDM technologies are in market in order to implement. but as far as SAP MDM is concern, it is the most versatile and beautiful platform over all others
as it gives you
Master Data Integration :
Use MDM remote system extractor to extract customizing data in the initial setup of your MDM system
Use MDM remote system extractor to automatically extract master data
Use MDM import mechanisms to load master data from various sources
Use MDM business content to integrate data
Use MDM Syndicator to distribute master data to various targets
Use MDM APIs and Web services to integrate data
Some of the Operations :
Data Modeling
Role-Based Data Access
Search
Workflow-enabled Data Creation/Maintenance
Data Publishing
Master Data Quality
Use validations and assignments to check the accuracy and consistency of your master data
Create more complete and meaningful master data using the MDM Enrichment Architecture
Create non-redundant and consistent master data using matching and merging capabilities
I think things are clear for you as far as MDM Implementation is concern.
Hope it helps.
Deep -
How to retrieve the data from MDM hierarchy table using MDM Java API
Hi,
I had a hierarchy table in MDM. This table had some column say x. I want to retrieve the values of this x column and need to show them in a drop down using MDM Java API.
Can anyone help me to solve this?
Regards
VallabhaneniHi,
Here is your code...
TableId Hier_TId = repository_schema.getTableId(<hierarchy table id>);
java.util.List list = new ArrayList();
ResultDefinition Supporting_result_dfn = null;
FieldProperties[] Hier_Field_props =rep_schema.getTableSchema(Hier_TId).getFields();
LookupFieldProperties lookup_field = null;
TableSchema lookupTableSchema = null;
FieldId[] lookupFieldIDs = null;
for (int i = 0, j = Hier_Field_props.length; i < j; i++) {
if (Hier_Field_props<i>.isLookup()) {
lookup_field = (LookupFieldProperties) Hier_Field_props<i>;
lookupTableSchema =repository_schema.getTableSchema(lookup_field.getLookupTableId());
lookupFieldIDs = lookupTableSchema.getFieldIds();
Supporting_result_dfn = new ResultDefinition(lookup_field.getLookupTableId());
Supporting_result_dfn.setSelectFields(lookupFieldIDs);
list.add(Supporting_result_dfn);
com.sap.mdm.search.Search hier_search =new com.sap.mdm.search.Search(Hier_TId);
ResultDefinition Hier_Resultdfn = new ResultDefinition(Hier_TId);
Hier_Resultdfn.setSelectFields(rep_schema.getTableSchema(Hier_TId).getDisplayFieldIds());
ResultDefinition[] supportingResultDefinitions =
(ResultDefinition[])list.toArray(new ResultDefinition [ list.size() ]);
RetrieveLimitedHierTreeCommand retrieve_Hier_tree_cmd =
new RetrieveLimitedHierTreeCommand(conn_acc);
retrieve_Hier_tree_cmd.setResultDefinition(Hier_Resultdfn);
retrieve_Hier_tree_cmd.setSession(Auth_User_session_cmd.getSession());
retrieve_Hier_tree_cmd.setSearch(hier_search);
retrieve_Hier_tree_cmd.setSupportingResultDefinitions(supportingResultDefinitions);
try {
retrieve_Hier_tree_cmd.execute();
} catch (CommandException e5) {
// TODO Auto-generated catch block
e5.printStackTrace();
HierNode Hier_Node = retrieve_Hier_tree_cmd.getTree();
print(Hier_Node,1);
//method print()
static private void print(HierNode node, int level) {
if (!node.isRoot()) {
for (int i = 0, j = level; i < j; i++) {
System.out.print("\t");
System.out.println(node.getDisplayValue());
HierNode[] children = node.getChildren();
if (children != null) {
level++;
for (int i = 0, j = children.length; i < j; i++) {
print(children<i>, level);
//end method print()
Best regards,
Arun prabhu S
Edited by: Arun Prabhu Sivakumar on Jul 7, 2008 12:19 PM -
Retrieving hierarchy fields from MDM to SAP R/3 using MDM ABAP API's
Hi all,
I have developed a code to retrieve fields from MDM to SAP R/3 using MDM ABAP API's, i could retrieve all of the fields excluding the Lookup[Hierarchy] fields like- FACILITY CODE etc...
please update me if anyone has any experience on this.
Thanks and regards,
Aastha MehrotraHi ,
Any one worked in the MDM API to retrieve Hierarchy fields ???
Regards,
Arun. -
Attachments using MDM java API
Hi
How to store attachments in MDM repository using MDM java API.
Could you please suggest us.
Thanks
SowmyaHi Sowmya,
You can store attachments using MDM Java API. You can use the following piece of code.
BinaryBlobRecord record2 = RecordFactory.createEmptyBinaryObjectRecord(tableID);
//Attachment to be saved
String filePath = wdContext.currentContextElement().getVa_Resource().getUrl(0);
IWDResource resource = wdContext.currentContextElement().getVa_Resource();
FileInputStream stream = (FileInputStream)resource.read(true);
int length = 0;
while(stream.read() != -1)
length++;
byte[] b = new byte[(int) length];
stream.read(b);
stream.close();
record.setName(new StringValue("filename"));
record.setOriginalName(new StringValue("filename"));
record.setHasOriginal(new BooleanValue(true);
RetrieveGroupTreeCommand groupTreeCommand = new RetrieveGroupTreeCommand(wdContext.currentContextElement().getVa_ConnectionStr());
groupTreeCommand.setSession(wdContext.currentContextElement().getVa_SessionID());
groupTreeCommand.setGroupType(GroupTypes.DATA_GROUP_TYPE);
groupTreeCommand.execute();
//Set data location and data group ID
record.setDataLocationId(new GroupNodeId("GN2"));
record.setDataGroupId(new GroupNodeId("GN2"));
record.setBinary(new BinaryValue(b));
CreateRecordCommand createRecComm =
new CreateRecordCommand(wdContext.currentContextElement().getVa_ConnectionStr());
createRecComm.setSession(wdContext.currentContextElement().getVa_SessionID());
createRecComm.setRecord(record);
createRecComm.execute();
//Link this record to the main table record
Record QRec = RecordFactory.createEmptyRecord(mainTable);
//Setting the above created record in main table record object
QRec.setFieldValue(attachmentField, new LookupValue(record.getId()));
CreateRecordCommand createRecComm =
new CreateRecordCommand(wdContext.currentContextElement().getVa_ConnectionStr());
createRecComm.setSession(wdContext.currentContextElement().getVa_SessionID());
createRecComm.setRecord(QRec);
createRecComm.execute();
Now the main table record is created with an attachment.
Hope this helps you.
Regards,
Sruti -
How to create relationship between two records using MDM Java APIs
Hi,
I am trying to create relationship between two records using Java Apis. Please guide me in doing this.
Regards,
NirajHi Niraj,
There is ModifyRelationshipsCommand:
http://help.sap.com/javadocs/MDM/SP06/com/sap/mdm/data/commands/ModifyRelationshipsCommand.html
Retrieve Relationship command:
http://help.sap.com/javadocs/MDM/current/com/sap/mdm/schema/commands/GetRelationshipListCommand.html
Also, please refer similar thread, MDM Java API and relationships.
Hope it helps..
Regards,
Mandeep Saini -
How to use MDM ABAP API?
Hi Guys,
I want to use ABAP API for manipulating MDM records(EX Adding two field values and assign into another field value).
Can anybody guide me step by step process?
Best Regards
Devaraj PKHi Devraj,
Please go through this pdf:
1. How To identify identical master data records using SAP MDM 5.5 ABAP APIs
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e060251e-b58d-2910-02a2-c9a1d60d9116
2. MDM ABAP API
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/00c49ffb-e5e5-2910-73ba-c85af1da5b0a
http://help.sap.com/saphelp_mdm550/helpdata/en/44/93aa6831381053e10000000a422035/content.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/connectivity-ABAP+API&
Pls rewrds if found helpful.
BR,
Alok Sharma -
How to upload Image to MDM 5.5 SP3 using Java APIs
Hi,
I am trying to upload Image to Images table in MDM 5.5 using JAVA API for MDM. But. I'm not able to find particular field in Images table where I need to set the Blob object ( Image data ).
I'm not aware of the method to set the Blob, there is one for getting the Image data.
I have gone through I am not able to add images into Catalog thru java API forums posts and tried the code. But with no luck....
I think this code is for some other MDM version as the fields mentioned are not present in the Images table e.g. DataObject - this field is used in the above posts to set the Blob data but this field does not exist in Images table in MDM 5.5
Can anyone suggest the solution?
Thanks and Regards,
MausamHi Mausam,
Please try the following:
// adding to a image table
// get the bytes for the image
byte[] imageBuf = readFile("C:\pic.bmp");
// setup A2iFields
fields = new A2iFields();
fields.Add(new A2iField("DataObject", new
Value(imageBuf))); // the image binary (required)
fields.Add(new A2iField("Name", new Value("pic.bmp")));
// a name for the image
fields.Add(new A2iField("OrigName", new
Value("pic.bmp"))); // the original image file name
(required)
fields.Add(new A2iField("DataGroupId", new Value(888)));
// the data group to add to (required)
fields.Add(new A2iField("OrigLocationId", new
Value(999))); // the data location of the image
(required)
fields.Add(new A2iField("Description", new Value("a
short description"))); // a short description here
// add the image
String imageTable = "Images";
catalog.AddRecord(imageTable, fields, -1, -1);
It's taken out of the API guide for SP3 (the example for method AddRecord.
Best regards,
Amit -
Uploading images whit thumbnail to MDM repository using Java API
Hello,
can someone tell me how to upload images whit thumbnail to MDM repository using Java API?
i get following message using setHasThumbnail(true):
com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ServerException: Ungültiger Wert für Parameter
thanksYou can upload images to MDM via the API, but the only way to create thumbnails is via the MDM Data Manager application which uses some embedded libraries to do the work.
Walter -
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
Maybe you are looking for
-
Hello, I purchased a new Iphone 5S about a couple of months back. The phone use to hang up occassionally with a white screen and the black apple logo on it. Two days back the screen went unresponsive. I cannot enter the lock code. Everything seems to
-
Debugging ZdriverProg when attached toa Standard Transaction code
Hi all, iam doing with SAP Standard smartform initially the ZProgram and Zform are attached to standard Program : RV56TD00 for the transaction VT02N (ApplicationV7 - Shipment : Bill of Lading) + Zform Now iam working on Modifying the ZProgram
-
What is the setting to force Microsoft Internet Explorer 11 to stop showing a blank white background which makes radio buttons invisible, the images inside frames invisible, blank video frames, and has not changed no matter how many times I reset to
-
Rethinking Exchange 2013 Server Setup
Hello, I'm currently rethinking my Exchange 2013 install, I have a network of 20 users and 2 servers, one is my domain controller/file server and the other is my Exchange 2013 server. I have setup the Exchange server as a member server and configure
-
AS Java autzorization: activity description
Hi all, does anyone know a document describing the different security roles (also known as activities) used for authorization on AS Java side. For example the Application/Service "com.sap.xi.repository" with the value "configure"? Thanks, Manfred