Skip to Content
0
Former Member
Aug 22, 2009 at 12:33 PM

Fill database table from internal table

690 Views

I made one table ZDISP_CHDOC_CC and want to fill that table from internal table.and i got runtime error. that duplicate entry

and two entry are like 10 200000 likhp 10

10 200000 likp 10

DESCRIBE TABLE IT_CHDOC .

LOOP AT IT_CHDOC.

INSERT ZDISP_CHDOC_CC FROM IT_CHDOC.

endloop.

IF SY-SUBRC = 0.

COMMIT WORK.

ELSE.

and when i used following then only one entry is insreted.

DESCRIBE TABLE IT_CHDOC .

LOOP AT IT_CHDOC.

INSERT ZDISP_CHDOC_CC FROM IT_CHDOC.

IF SY-SUBRC = 0.

COMMIT WORK.

endloop.

ELSE.