Skip to Content
Former Member
Jul 01, 2013 at 07:00 PM

Automatic Create PO order & goods movement



I have a function module for create a po order with one ítem (with BAPI_PO_CREATE) and after, create a goods repeceipt for this item (with BAPI_GOODSMVT_CREATE). After each call to the bapi, i make a COMMIT WORK AND WAIT.

When i executed the function module, the po order is created correctly, but the good movement give me an error because my own user is traying the po order.

This is not always. Some times, work correctly, and if i executed in debug mode, always is ok.

I tried with wait sentence, call DEQUEUE ALL, ..., but it don't work.

Some was this problem or know how i solve it?.