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

Performance problem with BAPI_USER_CREATE1

Former Member
0 Likes
605

Hello

i've been given the task to create a large (50000+) user in a sap R/3 system, using info from another system.

The program is working fine, up to a point : on a small number of user, the program works flawlessly. However, on a large number, it begin to slow after 200 user, and after 800 user create, it takes nearly 1 minute to create a new user.

internal table are freed whenever its possible. No append are done on such table : they are allocated at the start of the program. i can't seem to find what's the problem on this one.

we are using BAPI_USER_CREATE1 to create these user.

doe anyone have a suggestion on this subject ?

regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
519

Hi!

Are you using the BAPI_TRANSACTION_COMMIT function module after each BAPI_USER_CREATE1 call?

You might try out to use the BAPI_TRANSACTION_COMMIT with the wait = 'X' parameter also...

The creation time should be a bit lower, but constant for each user...

Regards

Tamá

3 REPLIES 3
Read only

Former Member
0 Likes
520

Hi!

Are you using the BAPI_TRANSACTION_COMMIT function module after each BAPI_USER_CREATE1 call?

You might try out to use the BAPI_TRANSACTION_COMMIT with the wait = 'X' parameter also...

The creation time should be a bit lower, but constant for each user...

Regards

Tamá

Read only

0 Likes
519

thanks a lot. we where not aware of this bapi... it works perfectly.

Eventually, by calling it only every 25 creation or so, we will limit the small hit we took for each user, but this will be done only if there a optimisation need.

thanks again for the solution

Best Regards

Read only

Former Member
0 Likes
519

Hi Johann

I am very new to SAP. As a matter of fact, I have only completed the SAP - Programming last month. At the moment, I am still learning the new SAP stuff.

My SAP admin has given me a task (to create a large no of users) from an excel spread sheet - The task is mimilar to yours. I am wondering if you don't mind - Could I have a copy of your program So I can learn the way you do it - I will be very much appreciated if you could send me a copy. my email address is "liem_van_duong@leaseplan.com.au" - Thanks