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 when call BAPI_SALESORDER_CHANGE ?

Former Member
0 Likes
971

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
Read only

Former Member
0 Likes
886

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

6 REPLIES 6
Read only

Former Member
0 Likes
887

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

Read only

0 Likes
886

It took long time about 2hrs. thanks.

Read only

0 Likes
886

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

Read only

0 Likes
886

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

Read only

0 Likes
886

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

Read only

Former Member
0 Likes
886

closed