Add a configuration parameter per BAPI template to control BAPI_TRANSACTION_COMMIT call. There are few BAPIs that fails if commit is called right away as they need to follow the sequence. For eg: EAM_TASKLIST_CREATE which follows this sequence:
EAM_TASKLIST_CREATE
EAM_TASKLIST_POST
BAPI_TRANSACTION_COMMIT
If BAPI_TRANSACTION_COMMIT is called right after EAM_TASKLIST_CREATE, SAP generates runtime error. Only option would be to additional development of Wrapper to combine EAM_TASKLIST_CREATE and EAM_TASKLIST_POST.