Skip to Content
0
Former Member
Apr 05, 2011 at 11:43 AM

Update Statement - Commit Work disable

71 Views

Hi Experts,

Im using update statement in Report , to do the changes in DB, report will be used in two modes Test & Actual. In test mode db should not change but still im allowing update statement to capture error. in actual db should change.

sample

if test.

update ..............

check sy-subrc <>0

write error

endif.

if actual.

update ..............

check sy-subrc <>0

write error

commit work

endif.

in both the case db is fetting updated, in test mode no cmmit statment is given. so i want to disable the commit work so that DB will not change. Kindly help

Regards

Kishore