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

Update CUA Master

former_member182337
Participant
0 Likes
648

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

4 REPLIES 4
Read only

FredericGirod
Active Contributor
0 Likes
599

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

Read only

0 Likes
599

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

Read only

former_member182337
Participant
0 Likes
599

Any updates,friends?

Read only

RaymondGiuseppi
Active Contributor
0 Likes
599

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

Regards,

Raymond