on 02-11-2009 4:46 PM
Hi,
I am new to Java MDM API programming. I am developing Webdynpro application that has the following requirements.
1. Search the MDM database Main Table for records with field values that match the ones passed through View input fields
2. Get all values from Look up table to show it as Dropdown menu in View
3. Insert New Record to the Main table
4. Update a record that was retrived from above search
I went through various documentations but still couldnot accomplish much. Can any one of you give me some code sample for each of the 4 above mentioned requirement with some explanation, asap?
So far, I have this much of code working:
{
RegionProperties dataRegion = new RegionProperties();
dataRegion.setRegionCode("engUSA");
dataRegion.setLocale(new Locale("en", "US"));
dataRegion.setName("US");
ConnectionAccessor simpleConnection = SimpleConnectionFactory.getInstance("10.79.128.55");
CreateUserSessionCommand cmdGetUserSession = new CreateUserSessionCommand(simpleConnection);
RepositoryIdentifier repositoryID = new RepositoryIdentifier("VENDOR","MD1",DBMSType.ORACLE);
cmdGetUserSession.setRepositoryIdentifier(repositoryID);
cmdGetUserSession.setDataRegion(dataRegion);
cmdGetUserSession.execute();
String sessionId = cmdGetUserSession.getUserSession();
AuthenticateUserSessionCommand cmdAuthUserSession = new AuthenticateUserSessionCommand(simpleConnection);
cmdAuthUserSession.setSession(sessionId);
cmdAuthUserSession.setUserName("Admin");
cmdAuthUserSession.setUserPassword("");
cmdAuthUserSession.execute();
msgMgr.reportWarning("Authentication Complete") ;
}
Any help would be greatly appreciated. Rewards guarateed.
Thanks,
Sudheer
Check out how to Insert New Record to the Main table and for others
http://www.apentia-online.com/UP/Apentia/files/Article/sappress_netweaver_data_mgmt.pdf
http://www.apentia-online.com/UP/Apentia/files/Article/sappress_netweaver_data_mgmt.pdf
http://help.sap.com/javadocs/MDM/SP06/com/sap/mdm/net/package-summary.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.