‎2009 Nov 09 10:26 AM
Hi,
i need to lock users. One method is to directly access USR02, but i'm not so pleased with that.
Looking for function modules i found BAPI_USER_LOCK. This is not sufficient, i need to set the validity date (GLTGB) in addition. BAPI_USER_CHANGE does not offer to change the validity date.
Is there any other FM to lock the user and set the field GLTGB to a specified date?
‎2009 Nov 09 10:33 AM
HI,
Check this Fm "YPCI_LOCK_USER" and the program YPCI_USER_ADMIN_TOOL_KIT.
Regards,
Nagaraj
‎2009 Nov 09 10:37 AM
‎2009 Nov 09 3:41 PM
Hi Rainer,
please have a look at report IAM_API_TESTFRAME.
Inline documentation says
*& Report serves as frame for calling the
*& Identity & Access Management API in ABAP.
*& For documentation purposes, but covers main functionality
I did not use or analyze further but I think it could be helpful especially as it may maintain remote systems
Regards,
Clemens
‎2009 Nov 09 10:37 AM
But in BAPI_USER_CHANGE you can use parameter logondata-GLTGB.
‎2009 Nov 09 10:40 AM
Hello Rainer,
I checked in SE37 & found this FM: SUSR_USER_MAINT_WITH_DIALOG.
Which contains the FM: SUSR_USER_CHANGE. Have a look @ the param USER_LOGONDATA
This should help in your quest.
BR,
Suhas