‎2009 Jul 29 10:25 AM
Hi,
We are using this functionaly:
We change purchase requistiion quantity with BAPI BAPI_REQUISITION_CHANGE.
If modification is correct we are doing a BAPI_TRANSACTION_COMMIT with WAIT and also we modify purchase order quantity with BAPI BAPI_PO_CHANGE.
If purchase order modification is correct we are doing a BAPI_TRANSACTION_COMMIT with WAIT.
Sometimes occurs that if a change is done with BAPI_REQUISITION_CHANGE correctly and we are doing the correspondant changes to purchase order BAPI_PO_CHANGE, this bapi give error ME 006 (User alredy processing requisition).
How it is possible if we have done a commit and wait?
How can we solve this problem?
Best regards¡¡¡
‎2009 Jul 29 10:38 AM
Hi,
The object is still locked when you try to change with BAPI_PO_CHANGE and thats the reason you are getting the error message.
Before calling BAPI_PO_CHANGE, check whether the object is unlocked, you can do that with deque function .
‎2009 Jul 29 10:38 AM
Hi,
The object is still locked when you try to change with BAPI_PO_CHANGE and thats the reason you are getting the error message.
Before calling BAPI_PO_CHANGE, check whether the object is unlocked, you can do that with deque function .
‎2009 Jul 29 10:49 AM
HI,
Try using FM : ENQUE_SLEEP for wait process.
Actually sometimes, due to some database constraints, process takes time to save document.
SO better to give 5 seconds delay for that.
CALL FUNCTION 'ENQUE_SLEEP'
EXPORTING
SECONDS = '5'
EXCEPTIONS
SYSTEM_FAILURE = 1
OTHERS = 2.
Regds,
Anil
‎2009 Jul 29 10:52 AM