Hi,
Everything is looks fine. I believe this call to BAPI_*** and corresponding commit work is inside any Function Module(and that function module is update function module).
We are not suppose to write commit work in update function module.
Just to confirm can you share the Active Calls and Event. And if there are function modules in the stack just check in se37(Attibutes->Processing Type) whether they are update function module.
Best Regards,
Vishal Kumar Yadav