Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

insert statement problem

Former Member
0 Likes
476

hi experts,

insert zqm_tb_is1786n FROM final2 ACCEPTING DUPLICATE KEYS.

system is throwing error for this message as

'.' has to be inserted after final2

what is the reason .

i am inserting values from final2 internal table to my ztable .

regards,

mani

4 REPLIES 4
Read only

Former Member
0 Likes
459

hi

good

go through this link,this will give you clear idea abou the insert statement,

http://help.sap.com/saphelp_nw04/helpdata/en/c4/93d942f7ca45b69dfdfd424c38332e/content.htm

thanks

mrutyun^

Read only

Former Member
0 Likes
459

INSERT dbtab FROM TABLE itab. oder

INSERT (dbtabname) FROM TABLE itab.

Extras:

1. ... CLIENT SPECIFIED

2. ... ACCEPTING DUPLICATE KEYS

3. ... CONNECTION con

Hi change your code as below and check

insert zqm_tb_is1786n FROM TABLE final2 ACCEPTING DUPLICATE KEYS.

Read only

Former Member
0 Likes
459

Hi,

the exact form of statement required for u is

insert (u r DB table name) FROM TABLE <internal table> ACCEPTING DUPLICATE KEYS.

Read only

0 Likes
459

hi,

i have an internal table final2 with 3 line items like

delivno item material

800001 10 500000

800001 20 500001

800001 30 500002

i am using the code.

loop at final2.

insert zqm_tb_is1786n FROM table final2 ACCEPTING DUPLICATE keys.

endloop.

but only the first line item is inserted into my table .what may be the reason?