cancel
Showing results for 
Search instead for 
Did you mean: 

SAP ME SDK - UserConfigurationServiceInterface

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Mike!

Please submit a support ticket against MFG-ME-API component.

Regards,

Sergiy

Former Member
0 Kudos

Hi Sergiy,

Just created a ticket. I will wait and see what the problem may be.

Thanks,

Mike

0 Kudos

The fix was provided in ME 5.2.6.21.

Br, Alex.