‎2008 Jan 18 6:49 PM
Hi,
I want to delete all the roles associated for a USER in SU01, is there any bapi or FM available for the same purpose ??
Thanks in advance.. please reply ASAP.
Kashi
‎2008 Jan 18 6:54 PM
Use
BAPI_USER_PROFILES_DELETE
BAPI_USER_LOCACTGROUPS_DELETE
Hope this helps.
Vinodh Balakrishnan
‎2008 Jan 18 6:54 PM
Use
BAPI_USER_PROFILES_DELETE
BAPI_USER_LOCACTGROUPS_DELETE
Hope this helps.
Vinodh Balakrishnan
‎2008 Jan 21 8:49 PM
Hi,
Thanks for the response.. but deleting the profiles means deleting the roles? As when i see the roles and profiles for a user, lot of roles are there but no profiles found in the profile tab. can you please clarify me regarding this?
Thanks
Kashi
‎2008 Jan 21 8:57 PM
Hi Kashinath,
Use this FM BAPI_USER_ACTGROUPS_DELETE. It will delete the roles only.
Shylesh
‎2008 Jan 21 8:58 PM
Hi Vinodh,
The BAPI 'BAPI_USER_LOCACTGROUPS_DELETE' is not for local system, it is for child systems in Central User Administration.
Shylesh
‎2008 Jan 21 9:43 PM
Hi Sailesh,
BAPI_USER_ACTGROUPS_DELETE this bapi to be used in CUAs or in the local systems?
Kashi
‎2008 Jan 21 9:49 PM
Hi Kashinath,
It should be used in local systems only.
Is there any central user administration configured in your system?
Shylesh
‎2008 Jan 21 11:01 PM
Hi Sailesh,
Yes there is CUA configured in our system, for Locking all the users and to change Valid Through date we are using BDC in local systems.
And to inactive the user group and change the license type we are runing the BDC in CUA as it was not possible in local system.
Now i have to delete the roles for a pericular user in all the systems so i shud be using CUA for this right ?
Regards,
Kashi
‎2008 Jan 21 11:08 PM
Hi Kashinath,
This is a tricky one in CUA systems. If you want to create or delete any roles, use the FM which changes the roles. If you pass a blank value, it will override all the roles. (means, delete all existing roles in your situation).
Hope, this will solve your problem.
Else, give me a mail to saileshch@yahoo.com
I can explain you in more detail abt CUA
Shylesh.
‎2008 Jan 21 11:12 PM
Hi Kashi,
In this case, you can use either of FMs BAPI_USER_LOCACTGROUPS_ASSIGN or BAPI_USER_LOCACTGROUPS_DELETE.
I used the first one, in order to remove or change the existing roles.
shylesh
‎2008 Jan 29 10:35 PM
Thanks!! points awarded
Edited by: Kashinath Pai on Jan 29, 2008 11:35 PM
‎2008 Jan 18 7:19 PM
Check BAPI.
BAPI_USER_PROFILES_DELETE (Delete Local Profile Assignments of a User )
Functionality
This method deletes all of the profile assignments of the user USERNAME
Regards,
Maha