I have below code to modify a transparent table with internal table. After the execution, I want to get number of row processed in the transparent table.
How to do that? I have use sy-dbcnt, but the value always shows only 1.
LOOP AT <ft_csv_data> INTO <fs_tdat_data> FROM 2.
MOVE-CORRESPONDING <fs_tdat_data> TO <fs_target_table>.
MODIFY (p_target) FROM <fs_target_table>.
IF sy-subrc EQ 0.
WRITE: 'Data successfully transferred into target table!'.
WRITE: 'Data failed to transfer into target table!'.
WRITE:/ 'Total rows affected:',sy-dbcnt.