Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3074

database update

$
0
0


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


Viewing all articles
Browse latest Browse all 3074

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>