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

Do we have an SAP Function Module/Method with which i can create multiple users at a time ?

Former Member
0 Likes
1,821

we have a FM 'BAPI_USER_CREATE1' but this allows us to create only one user at a time.

8 REPLIES 8
Read only

former_member259807
Active Participant
1,644

How about writing a wrapper function module around the bapi_user_create1?

Read only

matt
Active Contributor
0 Likes
1,644

That's what I did.

Read only

Former Member
0 Likes
1,644

b.wallagh that is what i am doing now but this is causing performance because commit work will happen for each user, i want commit work to happen only once.

Read only

former_member259807
Active Participant
0 Likes
1,644

Well, how about this:

- loop over your users
--- call bapi_user_create1
- endloop

- commit

Read only

Former Member
0 Likes
1,644

b.wallagh initially i was also thinking to do like what you are suggesting, but problem is we don't have any parameter to skip the commit work happening inside bapi_user_create1.

Read only

Jelena_Perfiljeva
Active Contributor
1,644

Why is this causing such a huge performance issue? Commit after every user seems justified to me. Each account is a separate transaction. And keeping data without committing has its own drawbacks.

You might want to offer more information about the architecture here.

Read only

pokrakam
Active Contributor
1,644

I can't help but wonder why performance is important? It's not the type of thing you do every day.

Read only

former_member259807
Active Participant
0 Likes
1,644

Hmmm ... if i peak into the documentation of this module, this catches my eye:

'If you want to choose when the COMMIT WORK takes place, you must use the new identity API (class CL_IDENTITY_FACTORY) instead of the BAPIs for the user.'

Can you use these methods by any change?