Hi Prakrita,
Please ask your basis team to refresh the system, since the code is from standard FM.
This have worked in certain cases.
Also try removing the badis that you have used for rollback and commit statements. This will work.
Thanks,
Satish