Hope you are using BAPI_ALM_ORDER_MAINTAIN & BAPI_COMMIT_TRANSACTION in sequence.
If not, try the sequence.
You might have referred below thread. If not, please.
BAPI_TRANSACTION_COMMIT - return error handling
Is it possible to create orders in SE37 without any error?? If so, try above thread's solution.