Skip to Content
0
Former Member
Mar 02, 2009 at 06:18 AM

how many records are updated by update statement

1138 Views

Hi All ,

i am updating databese uisng update statment it is updating database table ,

after that i want to find how many records are updated i am using folloing coding but it is not working

very well

UPDATE lips SET brgew = itab-ausp1

WHERE vbeln = itab-vbeln AND

posnr = itab-posnr.

IF sy-subrc = 0.

itab-brgew = itab-ausp1.

MODIFY itab INDEX idx TRANSPORTING brgew.

MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

can anybody tell me how to do these

Thanks in advance