cancel
Showing results for 
Search instead for 
Did you mean: 

MDM Java API and relationships.

Former Member
0 Kudos

Hi all

Using the MDM Java API ,Is it possible to remove the relationship between the two records in MDM just like Data Manager u201CRemove from Relationshipu201D functionality.

If yes, please provide the commands.

I saw there are couples of commands for creating the relationships in below link but not removing.

http://help.sap.com/javadocs/MDM/current/overview-summary.html

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

As per my knowledge, there are no command to Create or Delete the pelationships, using Java API's.

You can only, modify or Update the existing relationships,using Java API's.

Thanks,

Priya.

Former Member
0 Kudos

Thank you Priya for Reply.

I am trying to create & update the record's relationship.

For example if record A and record B are present in the MDM.First I have to relate A & B as the siblings and then i have to unrelate A & B.

Former Member
0 Kudos

Hi,

I have not tried this functionality.

May be you can try with ModifyRelationshipsCommand. command.

Add the necessary methods to RelationshipGroup and pass they same to the above command.

You can use methods like removeMember, addMember -


in RelationshipGroup

Thanks,

Priya.

Former Member
0 Kudos

Thank you very much for quick and helpful response Priya.

Former Member
0 Kudos

if you have any sample example related to the MDM Java API,can you please snd to me at raghupathi.ramagiri at gmail .I appreciate your help in this matter.

Former Member
0 Kudos

Hi,

You can refer the below white paper for more details.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70a7afe4-9e3e-2b10-de8d-b105d0b8...

Thanks,

Priya.

Former Member
0 Kudos

Priya

I need some more help from you regarding Relationship, Please help me out.

Can you please explain me how to add relation between two or three records, just like in Data Manager using MDM JAVA API?

Here is scenario in detail.

1) User selects multiple records from table iView which he wants to relate

2) User also selects a Relationship (Which are defined in the Console)

Now we need to add selected relationship to the selected records.

Former Member
0 Kudos

Hi,

I am not sure whether we have classes to create a Relatioship.

As per my knowledge, there are no classes in Java API's to create Validation, Assignments and Relationship.

Please correct me if I am wrong.

Thanks,

Priya.

Former Member
0 Kudos

Yes Priya, you are right..

We donu2019t have API commands to create Relations, Validation etc... User will create these in Console (Relationships) or in data manger(Validation).

But my requirement is user already defined these Relationships in the console and we need to retrieve from MDM and assign to the couple of records.

Lets say user defined a relationship in console as u201CComputerAccessoriesu201D as sibling.

so all the computer accessories he can say siblings to each other.

Now user will go to the webdynpro application selects two records (ex.keyboard,mouse )and assign the relation u201CComputerAccessoriesu201D

For above scenario can you please give me the detail API commands.

Answers (1)

Answers (1)

Former Member
0 Kudos

.

Former Member
0 Kudos

Hi,

Use the command -- ModifyRelationshipsCommand

and pass the RelationshipGroup. In relationship group use the addMember and setPosition classes to add a new relationship in the record.

Thanks,

Priya.

Former Member
0 Kudos

Thank you Priya.