hi Nikhil
you can directly use 'rollback work.' in your abap code. if last one of you update sql failed, it will rollback all the changed which is done by previous two. Infact, there are a implicit 'commit work' when your program run over.
Blow code:
update Zxxx from table itab1.
update Zyyy from table itab2.
update Zzzz from table itab3.
if sy-subrc ne 0.
rollback work.
endif.
regards,
Archer