Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Need to dispaly how many records are deleted.

former_member623843
Participant
0 Kudos

Hi all

I have deleted some entries from Ztable by using

DELETE FROM Z4567 WHERE BUKRS IN S_BUKRS

But here I need to display how many records are deleted from that Ztable.

can any body..

7 REPLIES 7

former_member212653
Active Contributor
0 Kudos

The statement DELETE sets sy-dbcnt to the number of deleted rows.

Former Member
0 Kudos

This is from F1 Help.


The statement DELETE sets sy-dbcnt to the number of deleted rows. 

Former Member
0 Kudos

check the value of sy-dbcnt after delete statement...may be it will give u the info.

0 Kudos

CAN ANY BODY WRITE THAT STATEMENT...?

0 Kudos

What exactly is your question?

Rob

0 Kudos

DELETE FROM Z4567 WHERE BUKRS IN S_BUKRS.

if sy-subrc = 0.

Write: 'Number of record(s) deleted : ',

sy-dbcnt.

endif.

0 Kudos

Thnks