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 problem

Former Member
0 Likes
462

Hi everyone;

I cant solved the problem ; problem is

Insert ınto Dbtab values dbtab_structure. " sy-subrc eq 4 and record unwritten in the database.

Insert Dbtab from table dbtab_table. " raize SAPSQL_ARRAY_INSERT_DUPREC

CX_SY_OPEN_SQL_DB error.

I think this problem primary indexes but I cant solve.

this dbtab customize , and how am I ınsert this manual.

thanks helps and regards.

İrfan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
442

Hi,

You cannot insert duplicate records having the same primary key.....

However you can get rid of short dump by writing the statement insert ..............accepting duplicate.......

3 REPLIES 3
Read only

Former Member
0 Likes
443

Hi,

You cannot insert duplicate records having the same primary key.....

However you can get rid of short dump by writing the statement insert ..............accepting duplicate.......

Read only

0 Likes
442

thanks ,

I use accepthing duplicates key statement but erorr occurred. How Am I write same index in dbtab.

Read only

0 Likes
442

By pressing F1 on INSERT you will get all information for Sy-subrc values.