cancel
Showing results for 
Search instead for 
Did you mean: 

How to unlock a user with BAPI from JAVA using JCO in a CUA target system

MSteiner
Explorer
0 Kudos

Hi all,

I'm writing a code in JAVA using JCo to connect to the CUA system and to a user unlock using the bapi BAPI_USER_UNLOCK.
Until now I'm able to unlock the user account in CUA itself, so how can I specify to unlock the user in a specific CUA system member.?

Is it not possible to specify the execution somehow using a RFC?

Thanks a lot for your help.

 

View Entire Topic
raymond_giuseppi
Active Contributor
0 Kudos

Did you set user locking/unlocking in SCUM as Everywhere to be allowed to lock/unlock users in the local systems?

MSteiner
Explorer
0 Kudos
The "local unlock" is set to everywhere and actually it is working well. I can unlock the user with my code in all systems, but I want to address the unlock for a desired system and not all.
raymond_giuseppi
Active Contributor

Try SUSR_BAPI_USER_[UN]LOCK with LOCK_LOCAL = 'X' and LOCK_GLOBAL=' ' 

(Or analyze the BAPI behavior and SCUM Customizing to get this behavior)

MSteiner
Explorer
0 Kudos
Solved: I just unlock the user in desired system (connecting to the desired system) or connecting to CUA and doing it for all (if required)