Skip to Content
0
Former Member
Jul 02, 2007 at 12:15 PM

inserting table

21 Views

Hi experts,

I am writing below code to insert data into the table.

IF NOT i_tab1[] IS INITIAL.

INSERT zvbeln FROM TABLE i_itab1 ACCEPTING DUPLICATE KEYS .

IF sy-subrc = 0.

MESSAGE s000(zn).

ELSE.

MESSAGE s002(zn).

ENDIF.

ENDIF.

the value of itab1 contains 10010 as VBELN and POSNR as 10 and

10010 as VBELN and POSNR as 20.

but my prg only updating only the first entry, I need to insert both.

Pls suggest hoe to do this.

Thanks in advance

karthik