Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9008

Re: Count of records when using modify statement

$
0
0

Hi Pradeep ,

 

Use

 

SELECT COUNT( * )

   INTO v_num

    FROM DB_table.

 

V_num is the no. of records in your table.

 

Then apply modify statement and get the value of sy-dbcnt.

This will give the no. of records updated in your table.

 

Now, again use

 

SELECT COUNT( * )

   INTO v_numnew

    FROM DB_table.


v_numnew is the no. of records in your table ( after updation ).


Now,


No. of new records in your DB table ( newnum ) = V_numnew - V_num


No. of modified records                                    = sy-dbcnt - newnum.



Regards,


Yogendra Bhaskar


Viewing all articles
Browse latest Browse all 9008

Trending Articles



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