KAUF_ORDER_CHANGE_BAPIFIELDS: Lock on COBRA
[BP_MODIFY_ORDER] [BP_MODIFY_ORDER_LAST] [COBRA] [COBRB] [EKCOBR] [ENQUEUE_EKCOBR] [entry] [ESORDER] [K_SRULE_PRE_READ] [Lock] [lock cobra] [lock on] [lock on1.12] [ORIND] [SAPLKAUF] [SAPLKOBS]
Symptom
You repeatedly call the KAUF_ORDER_CHANGE_BAPIFIELDS function module to change the master data of the CO internal orders. Since for each additional object the system sets a new lock with the object number on the tables of the settlement rule, but does not reset the lock until the update, your program becomes increasingly slow.
For every new order, the system calls the availability control for the previously processed orders, which has an adverse effect on performance.
Other terms
Lock entry, SAPLKOBS, SAPLKAUF, COBRA, COBRB, EKCOBR, ENQUEUE_EKCOBR, ESORDER, K_SRULE_PRE_READ, ORIND, BP_MODIFY_ORDER, BP_MODIFY_ORDER_LAST
Reason and Prerequisites
This problem is caused by a program error.
Solution
Implement the program corrections in accordance with the correction instructions: The lock entries that were set are removed again at an appropriate time, the availability control is called for the current order only.