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

Count of records when using modify statement

$
0
0

Hi All ,

 

when i am using the modify statement to modify the custom table , i need to know how many records are modified , i want the count of records and the record detail.

 

For ex :

 

I have an internal table and with the following records ,

 

field1 field2 field3 field4

1        3       3       34  - new record

3        3       2       23  - existing record

1        2       2       11  - old record

 

here i need the count as 1 as modified and 1 as new record .

 

when i  am updating the ztable with the following records of internal table , so i need the count of the modified record and its details.

 

modify table ztable from itab,

 

 

I cannot use sy-dbcnt , it will give all the records in internal table , i need only the updated and modified record count and its details.

 

 

Please share your ideas!

 

Thanks,

Pradeep.


Viewing all articles
Browse latest Browse all 8735

Trending Articles



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