Assuming your program calls BAPIs consecutively and use a COMMIT WORK/BAPI_TRANSACTION_COMMIT only at the end so that to commit all BAPI updates once (better performance). As you know, BAPIs need to check errors
I also tried Commit work and wait. But the response is same. Please help me, this is really urgent. --> It may be urgent for you, but it is not for other members The Dump message is: Long text of error message: Diagnosis The material document posting was terminated to maintain da...