cancel
Showing results for 
Search instead for 
Did you mean: 

Java API : Syndication

Former Member
0 Kudos

Hi SDNers,

Suggestion required from those experienced in JAVA API's:

The requirement is to trigger syndication once in a month. Now this cannot be done using SAP MDM, as "Monthly" is not an option.

Therefore, would need your suggestion if I can do it using Java API's. If yes, in details.

Thanks,

Priti

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Priti,

You can also follow the workaround as suggested in below thread if it fits in your requirement.

Also refer below thread to have some code which can be useful in creating MDM JAVAP API syndication application:

Regards,

Mandeep Saini

Former Member
0 Kudos

Hi Prithi,

Can you please update me abt the status.

Thanks,

Sudhanshu

former_member208981
Contributor
0 Kudos

Hi Sudhansu / Mandeep,

Thanks for the replies.

I am new to Java API's. Trying to execute it.

Can you suggest what the Port ID is? How to get it?

Thnaks,

Priti

former_member182007
Active Contributor
0 Kudos

Hi Priti,

you can refer the below link.

hope it helps.

Deep

Former Member
0 Kudos

Hi Priti,

I think PORT ID is just like we have field id.

I want to say that we maintain field code for each field but to get value we need field id.

So as you fect field id from field code in the same way you can fetch PORT ID from PORT CODE that you maintain for port.

Thanks,

Sudhanshu

Former Member
0 Kudos

Hi Priti,

In APIs whether its JAVA or ABAP we usually use Field Property CODE. So I would suggest PORT ID is nothing here but you need to pass parameter CODE for the PORT defined in MDM Console. In Ports table of MDM console, we have Property CODE, you just need to pass this value as parameter for PORT ID.

Regards,

Mandeep Saini

former_member208981
Contributor
0 Kudos

Hi Mandeep,

I had treid it. But it throws an error for Port ID.

Any more suggestions.

Thanks,

Priti

former_member182007
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Priti,

Just check this below link:

http://help.sap.com/javadocs/mdm/sp06/com/sap/mdm/extension/schema/RepositorySchemaEx.html#getPort%2...

There in you will find:

getPortId

public PortId getPortId(java.lang.String portCode,

java.lang.String remoteSystemCode,

int portType)

throws java.lang.IllegalArgumentException

Converts the port code to port ID

Parameters:

portCode - the port Code

remoteSystemCode - the remote system code

portType - the port type

Returns:

the port ID

Throws:

java.lang.IllegalArgumentException - if port doesn't exist in repository

So it seems like Port Id is a class and getID is a method where we need to pass parameters portCode, remotesystemCode and portType which then returns Port ID

I think someone with JAVA knowledge can be very helpful in this case. Please check with some JAVA Developer.

Hope it helps..

Regards,

Mandeep Saini

Former Member
0 Kudos

Hi Priti,

You can use SyndicatePortCommand to syndicate records and run a batch job that rum monthly once.

http://help.sap.com/javadocs/MDM71/index.html

datacommands->syndicatecommands.

Is it ok or this is not meeting yr requirement.

Thanks,

Sudhanshu