Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Insert and modify

Hi Experts,

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.

Tags:
Former Member
Former Member replied

Hi Jak,

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..

regards'

satesh

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question