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??