on 10-12-2020 6:07 PM
Hi Team,
I have come across following BAPIs to add or remove a role.
BAPI_USER_LOCACTGROUPS_ASSIGN - This is removing all existing roles and adding the new role. Is there any alternative BAPI to add a specific role, without removing current roles ?
Does the timestamp for the existing roles will change each time we add a new role ?
BAPI_USER_LOCACTGROUPS_DELETE - This is removing all the roles, is there any alternative BAPI to remove any specific role ?
Thanks in advance!!!
BR,
Kumar
Hello,
BAPI_USER_LOCACTGROUPS_ASSIGN is the one for CUA's. Don't have experience with it, but I guess it is nearly the same as for non CUA's (BAPI_USER_ACTGROUPS_ASSIGN).
If so, then use function module BAPI_USER_LOCACTGROUPS_READ to read the already assigned roles. Use the received ACTIVITYGROUPS table to fill the one in the ...ASSIGN function module.
For adding a role just add an entry in table ACTIVITYGROUPS.
For removing a role just delete the entry for the role.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar
Did you try this one and then use BAPI_TRANSACTION_COMMIT after that
BAPI_USER_ACTGROUPS_ASSIGN
BAPI_USER_ACTGROUPS_DELETE
Refer this documentation which is quite helpful
https://archive.sap.com/kmuuid2/668e6629-0701-0010-7ca0-994cb7dec5a3/SAP%20Identity%20Management%20A...
Regards
Vinita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.