Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

user lock attribute

Former Member
0 Kudos
441

Question: Using BAPI's (SAP_ABA version: 46C), how can I read the user lock attribute

Details: I develop a software that creates, modifies, deletes SAP users and read their attributes. I want my software to be able to know if a user is locked or not (it is already able to lock or unlock users with the BAPI's: BAPI_USER_LOCK and BAPI_USER_UNLOCK). My software is written in C, uses SAP R/3 release 4.6C, the 4.6C BAPI's (SAP_ABA 46C) and RCF 6.10. As my BAPI version is SAP_ABA 46C, I cannot use the BAPISLOCKD table (which a call to

BAPI_USER_GET_DETAIL would have returned) nor can I use the USR02-UFLAG table.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
180

Hi,

USR02-UFLAG is the right field to check whether the user is locked or not.

You can use that field.

Regards,

Anji

3 REPLIES 3

Former Member
0 Kudos
181

Hi,

USR02-UFLAG is the right field to check whether the user is locked or not.

You can use that field.

Regards,

Anji

0 Kudos
180

Hello Anji,

Thank you for your answer, but when I try to display the USR02-UFLAG table using the SE11 transaction in SAP GUI, the GUI returns the following error: "USR02-UFLAG does not exist. Check name". I suppose that USR02-UFLAG only exists in more recent versions than my SAP_ABA 46C.

Regards

0 Kudos
180

Hello Anji,

Sorry, but the denomination USR02-UFLAG for (table: USR02, field: UFLAG) was completely unknown from me (maybe because of my PC and Unix background)

Regards