‎2013 Jul 03 6:32 PM
Hello,
I need to update the Role information and profiles of users along with the validity details in the user master. There are about 20,000 user id's which needs to be updated. There is a bapi by name ' BAPI_USER_CHANGE' which i am able to use for my requirement. The only problem with that is the importing parameter ( User ID ) can accept only one id at a time. Hence i need to call the Bapi inside a loop and call it 20,000 times. I couldn't find any bapi which can intake all the user's into internal table and update the system. Do anyone know of a BAPI which can accept user id's as internal table and update the CUA Master in one shot?
Thanks,
Prem
‎2013 Jul 03 8:16 PM
Hi,
CUA works with IDoc to exchange data to the connnected system, maybe you can use also IDOC to create in mass the role & profile affectation.
regards
Fred
‎2013 Jul 04 9:44 AM
Thanks for your reply Fred. The program will be executed only in the CUA master and not in any of the child systems. The client will not be happy now if we change the development process and get in idoc instead of BAPI's. Aren't there any BAPI which can do mass update?
If you feel, idoc is the only best solution considering the performance aspects, can you please share some inputs with regards to that?However, it will be of great help if any bapi can help us from this trouble.
Tnx,
Prem
‎2013 Jul 04 11:57 AM
‎2013 Jul 04 1:23 PM
AFAIK there is no such a BAPI...
So I would call BAPI_USER_ACTGROUPS_ASSIGN (roles) and BAPI_USER_PROFILES_ASSIGN (profiles) in a LOOP, you could try to commit only every 100 or so users. Else follow Frédéric Girod suggestion to use IDoc.
Regards,
Raymond