Skip to Content
0
Former Member
Jun 16, 2006 at 07:21 PM

Locks when I try to do two entrysheet in the same call.

105 Views

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