06-16-2006 8:21 PM
Hi
I call a FM for creating a entrysheet (BAPI_ENTRYSHEET_CREATE). I have to make them at purchase order item level. So I call the BAPI once each item.
With the first call, it works perfectly. But in the second when I execute I get the error "user xxxx already processing purchase order"
I have tried with
1.- BAPI TRANSACTIONCOMMIT
2.- COMMIT & WORK
3.- DEQUEUE (EMEKKOS, EMEKKOE, EMEKPOE)
I have traced and only appear these locks and some blocks about budget (could be those locks)
I only can see it trying with a WAIT sentence.
Does anybody know how I can avoid that lock situation??
Thanks again
Regards
06-16-2006 8:55 PM
Hi
You have add this following code before the BAPI call.
SET UPDATE TASK LOCAL.
Hope this will help you
Bala
Note: Award points if helpful
06-16-2006 8:55 PM
Hi
You have add this following code before the BAPI call.
SET UPDATE TASK LOCAL.
Hope this will help you
Bala
Note: Award points if helpful
06-16-2006 8:55 PM
Since you are calling the BAPI in the same program again, the locks are still there after first BAPI_ENTRYSHEET_CREATE, do a DEQUEUE_ALL after BAPI TRANSACTIONCOMMIT.
Regards
Sridhar
06-16-2006 9:04 PM
Hi,
thankyou very much indeed
I have tried both of DEQUEUE_ALL (also ENQUEUE_DELETE) and the SET UPDATE TASK LOCAL.
In my case the last one solved the problem
Thanks again
King Regards