cancel
Showing results for 
Search instead for 
Did you mean: 

JAVA API AND ABAP API SIMPLE SCENARIO

0 Kudos

Hello MDM gurus

I have never used any Java API or ABAP API to leverage and present MDM functionalities on front end systems like portal,etc...

Could you please give me all the required to play around with JAVA api and ABAP api's.

Points will be given to every valuable answer.

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Nazeer,

When ever you want to utilize MDM functionlaities from a differnt Front end other than MDM it self,you need to connect MDM using API to that system:

MDM supports 3 main types of API:

- JAVA API

- ABAP API

- COM API.

To know more on how and where we can use MDM JAVA API please refer the below links:

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90e82235-c0ca-2b10-1f91-b46260f4...

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10337d07-e54a-2b10-4fbd-9caeb2c1...

/people/andreas.seifried/blog/2007/01/18/referencing-the-mdm-java-api-during-development-and-runtime

/people/vijendra.singhbhanot/blog/2008/02/18/how-to-work-with-command-in-the-new-mdm-java-api

To know more on how and where we can use MDM ABAP API please refer the below links:

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/tip%2b%2bMDM%2bABAP-API%2b%2bThings%2bto%2bRemember%2b(for%2bStarters)(abap api)

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e03247a3-2f2a-2b10-4987-a2d8b2ce... (abap api connection)

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/601ddb01-e5c8-2910-d981-b190b51f... (abap api webinar)

Hope It Helped

Thanks & Regards

Simona Pinto

Former Member
0 Kudos

Hi Nazeer,

In order to use Portal you need Java APIs and to start with refer the MDM Java docs to get the basic idea of various classes and methods to be used in developing the simple java application and access it using portal.

http://help.sap.com/saphelp_mdm550/helpdata/en/47/9f23e5cf9e3c5ce10000000a421937/frameset.htm

Sample code for Duplicating Repository

public class TestDuplicateRepository

{

public static ConnectionPool simpleConnection;

public static RepositoryIdentifier repIdentifier,repIdentifier1;

public static String session;

public static String connection = "MDMServer_Test";

public static String repository1 = "Test_Repository";

public static String repository2 = "Test_Duplicate";

public static DBMSType dbmsType = DBMSType.MS_SQL;

public static void main(String[] args)throws CommandException, ConnectionException

{

//Creating Connection.

simpleConnection = ConnectionPoolFactory.getInstance(connection);

//Establishing connection with Repository.

repIdentifier = new RepositoryIdentifier(repository1, connection, dbmsType);

repIdentifier1 = new RepositoryIdentifier(repository2, connection, dbmsType);

//Creation Sever Session.

CreateServerSessionCommand createServerSessionCmd = new CreateServerSessionCommand(simpleConnection);

createServerSessionCmd.execute();

session = createServerSessionCmd.getSession();

//Authenticating Server Session.

AuthenticateServerSessionCommand auth= new AuthenticateServerSessionCommand(simpleConnection);

auth.setSession(session);

auth.setUserName("Admin");

auth.setUserPassword("Admin");

auth.execute();

session = auth.getSession();

//Duplicate Repository Command

DuplicateRepositoryCommand duplRepCmd = new DuplicateRepositoryCommand(simpleConnection);

duplRepCmd.setDBMSUserName("sa");

duplRepCmd.setDBMSUserPassword("abc");

duplRepCmd.setSession(session);

duplRepCmd.setSourceRepositoryIdentifier(repIdentifier);

duplRepCmd.setTargetRepositoryIdentifier(repIdentifier1);

duplRepCmd.execute();

}

}

Similarly you can try with Getting server version, Archive repository and then move on to adding,modifying records etc.

For ABAP APIs refer the below link

http://help.sap.com/saphelp_mdm550/helpdata/en/44/93aa6e31381053e10000000a422035/frameset.htm

Regards,

Jitesh Talreja