The MODIFY statement inserts one or several lines specified
in source in the database
table specified in target, or overwrites existing lines.
System fields
The MODIFY statement
sets the values of the sy-subrc and sy-dbcnt system fields.
sy-subrc | Meaning |
0 | All lines were inserted or changed. |
4 | At least one line could not be processed as there is already a line with the same unique name secondary index in the database table. |
The MODIFY statement sets sy-dbcnt to the number of processed lines.
The changes are finally transferred to the database table with the next database commit. Up to that point, they can be reversed with a database rollback.