Hi,
could give any one which one is correct way
a) .
I am inserting data in Ztable (databse table) doing following
1) i have locked ztable using enqueue _e_table with keys
2) insert ztable from wa .
if sy-surbc = 0.
flag = 1
3) relese lock deueue_e_table.
if flag = 1.
commit work
else.
rollback work
endif.
is this correct
or
b)
1) i have locked ztable using enqueue _e_table with keys
2) insert ztable from wa .
if sy-surbc = 0.
commit work.
else.
rollback work.
endif.
3) relese lock deueue_e_table.
regards,
shobha