TRY.
lo_tu_cntrl->create_new_bo_tu( EXPORTING is_bo_tu_new = ls_new_tu_head
IMPORTING eo_bo_tu = eo_bo_tu ).
IF eo_bo_tu IS BOUND.
es_tu_act_num = eo_bo_tu->get_num( ).
APPEND es_tu_act_num TO lt_inkeys.
ENDIF.
lo_tu_cntrl->save( ).
*--Commit work
COMMIT WORK AND WAIT.
tu_num = es_tu_act_num-tu_num.
"Log something in case of success
CATCH /scwm/cx_sr_error INTO lo_tu_exception.
ROLLBACK WORK.
*--Log something in case of error
This is Working Code