2008 Dec 02 1:58 PM
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!
2008 Dec 02 2:06 PM
how much time are you gettign now? there are 30K partners with one contract, so it is going to take time.
2008 Dec 02 2:06 PM
how much time are you gettign now? there are 30K partners with one contract, so it is going to take time.
2008 Dec 02 2:07 PM
2008 Dec 02 2:14 PM
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
2008 Dec 02 2:28 PM
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
2008 Dec 02 2:34 PM
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
2009 Jan 12 9:58 PM