Skip to Content
0
Former Member
Jul 09, 2014 at 05:56 AM

Count of records when using modify statement

710 Views

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.