I have a little problem with BAPI_PO_CREATE FM. Purchase order was generated and there is a new number of that order.
After that I have BAPI_TRANSACTION_COMMIT function.
The problem is when I want to select some data from EKKO/EKPO tables after order was created.
There is no PO in that tables. When I wrote :
WAIT UP TO 5 SECONDS
everything is fine...