1) 'BAPI_PRODORD_CREATE'
2) CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
3) BAPI_PRODORD_CHECK_MAT_AVAIL
Sometimes it works fine, other times the BAPI_PRODORD_CHECK_MAT_AVAIL passes an error that says the "Order does not exist."
I tried a "Wait up to 10 seconds". That makes the processing go extremely slow and even that doesn't make it work 100%.
Any suggestions?