Application Development 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: 

Performance when call BAPI_SALESORDER_CHANGE ?

Former Member
0 Kudos
154

Hi, All:

When I call the following function module to update partner associated to contract.

If there are about 30,000 partner associated this one contract. Updating performance is too bad.

Is there any good idea to improve performance for this case.

CALL FUNCTION 'BAPI_SALESORDER_CHANGE'

EXPORTING

salesdocument = v_vbeln ( contract number)

order_header_inx = li_bapi_ord_indx

TABLES

return = li_bapi_return

partnerchanges = li_partnerchanges. ( partners )

Any help is appreciated!

1 ACCEPTED SOLUTION

Former Member
0 Kudos
69

how much time are you gettign now? there are 30K partners with one contract, so it is going to take time.

6 REPLIES 6

Former Member
0 Kudos
70

how much time are you gettign now? there are 30K partners with one contract, so it is going to take time.

0 Kudos
69

It took long time about 2hrs. thanks.

0 Kudos
69

Hi

30k partners is a very big number, but u should try to understand where are the bottle necks, we can't help you without to know where the problem is.

Perhaps a your custom control in some user-exits could be the problem.

Max

0 Kudos
69

use SE30 in there to find the bottlebnecks as Max mentioned. if its one of your own code, then see what you can do there. if its SAP, then I guess you have to live with that

0 Kudos
69

Actually, changing 30,000 sales orders in 2 hours sounds pretty good to me. You might try splitting it into multiple processes, but then you might end up with locking issues.

Rob

Former Member
0 Kudos
69

closed