Insert and modify
I have an internal table itab with data.
i hace db table ztab.It has 0 entries.
if i want to populate data from itab..which is better method..is Insert or modify
in some cases i got short dump when using :
insert ztab from table itab.
this ztab is copied from ztable(in se11,copy option is there)
But when i use :
modify ztab from table itab..it is exicuting fine.
Can any body give me clarification on this?
Thanks in Advance.
Satesh R replied
THe insert will throw a short dump if you try to enter a row with same set of primry key field values..
modify will change the contents of the existing row if the set of key field values are same..
so it is better to use MODIFY as it updates if the entry is not found..