on 05-24-2012 8:15 PM
Hello all,
I am attempting to use the SAP ME SDK 5.2 Supported API (instead of writing SQL going directly to the database), however I am running into a few problems when attempting to validate a User.
The documentation states: "If a user is not found for specified site, null is returned."
However, if I try a user that is not in the system I recieve the following exception instead of a null: com.sap.me.frame.dao.ObjectNotFoundException
Also, when printing out the getStatus() and getEmail() of the User I am always receiving a null even when the information is there.
The getFirstName() does seem to work which makes the whole thing even more frustrating.
Here is the code below, let me know what I may be doing wrong...
<code>
// create the Find User Object
FindUserBySiteAndUserIdRequest findReq =
new FindUserBySiteAndUserIdRequest(siteID, username.toUpperCase().trim());
// get the User Config Interface
UserConfigurationServiceInterface userConfigService =
Services.getService("com.sap.me.user", "UserConfigurationService");
// go and find the user
UserBasicConfiguration user =
userConfigService.findUserBySiteAndUserId(findReq);
System.out.println("STATUS: "+user.getStatus());
System.out.println("EMAIL: "+user.getEmail());
System.out.println("NAME: "+user.getFirstName());
</code>
Thank you,
Mike Jewson
Hi Mike!
Please submit a support ticket against MFG-ME-API component.
Regards,
Sergiy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.