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

database commit

$
0
0

Hi,

 

I am inserting data in ztable at time in 20 tables .

 

if any one table is got error while inserting .All tables should rollback.

 

1)insert ztable from table itab.

if sy-subrc <> 0.

flag = 1.

endif.

 

2)insert ztable1 from table itab1.

if sy-subrc <> 0.

flag = 1.

endif

 

3)insert ztable2 from table itab2.

if sy-subrc <> 0.

flag = 1.

endif

 

so on

.........

..........

..........

till 20 tables.

 

 

at end. i am writing this.

 

i doing commit work all table at time.

 

if flag = 1.

 

rollback work.

 

else.

commit work.

endif.

 

 

is there any other way to achieve this.is this cause any problem to database.

 

K.shobha


Viewing all articles
Browse latest Browse all 3523

Trending Articles



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