cancel
Showing results for 
Search instead for 
Did you mean: 

getLockReason() in NW2004s

former_member182374
Active Contributor
0 Kudos

Hi all,

I need to migrate code from EP6 SP2 to EP7 SP11.

One of the methods in the old code is getLockReason().

The method is deprecated in EP7 and in the javadoc it says:

<i>use isPasswordLocked() and isUserAccountLocked()() instead</i>

I'm a bit confused because the new methods will not tell me the lock reason, it will just tell me if the user/password is locked <b>without</b> the lock reason.

Am I missing something?

javadoc:

http://help.sap.com/javadocs/NW04S/current/se/com/sap/security/api/IUserAccount.html#getLockReason()

Omri

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Omri ,

Thats true thats what deprication means that they have new methods of achieving that well for FYI regarding UME can use

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3641e490-0201-0010-c68f-e51...

Thanx

Pankaj

former_member182374
Active Contributor
0 Kudos

Hi Pankaj Prasoon,

I work according to this document (but it's for NW04 and the method is deprecated starting from NW04s).

Anyhow, if it still works I'll use it...

Thanks again,

Omri

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Omri ,

NO you can still use it as i have used it few months back , it works fine .Its returns the locked reason for an account if entered any .

Thanx

Pankaj

former_member182374
Active Contributor
0 Kudos

Thanks Pankaj Prasoon,

Maybe it will be just like the famous 'ep5user' which is deprecated for a few years now with no replacement and still works (-:

Omri