Skip to Content
0
Former Member
Dec 20, 2006 at 04:39 AM

Modify dbtab from itab.

735 Views

Hello everyone.

I have a small issue. I am trying to modify the dbtab from itab. My itab have, say, 5 records. when i am using;

MODIFY dbtab FROM itab.

if sy-subrc eq 0.

commit work.

endif.

its just inserting one line (header line) from itab.

but if i use :-

LOOP AT ITAB.

MODIFY dbtab FROM itab.

if sy-subrc eq 0.

commit work.

endif.

ENDLOOP.

its inserting all the 5 records in dbtab. But i guess that, this lead to performance issue as iam hitting the dbtab as many times as my record in my itab . How to rectify this.

Regards.