Application Development and Automation 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: 
Read only

Locking user

rainer_hbenthal
Active Contributor
0 Likes
657

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?

5 REPLIES 5
Read only

former_member404244
Active Contributor
0 Likes
603

HI,

Check this Fm "YPCI_LOCK_USER" and the program YPCI_USER_ADMIN_TOOL_KIT.

Regards,

Nagaraj

Read only

0 Likes
603

Both do not exist in my system.

Read only

0 Likes
603

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
603

But in BAPI_USER_CHANGE you can use parameter logondata-GLTGB.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
603

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