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 internal table into DB Table

Former Member
0 Likes
1,309

I have using this: iNSERT z_my_db FROM TABLE iT_tab[] ACCEPTING DUPLICATE KEYS.

but this is error:

The types of the database table and the workspace or internal table "it_tab" are not Unicode convertible.

why?

thanks

1 ACCEPTED SOLUTION
Read only

FredericGirod
Active Contributor
1,103

A lot of times it is because the structure of IT_ITAB is not the same as the Z_MY_DB

3 REPLIES 3
Read only

former_member1716
Active Contributor
1,103

luca treva,

Your data declaration for ITAB should be wrong, what is the data declaration for ITAB.

Is accepting duplicate key is part of your requirement?

if not you can use Modify statement as below, here gt_tab must be a internal table of type ZTAB. if possible can you paste your code?

     "Insert Into table
     MODIFY ZTAB FROM TABLE gt_tab.

Regards!

Read only

FredericGirod
Active Contributor
1,104

A lot of times it is because the structure of IT_ITAB is not the same as the Z_MY_DB

Read only

Former Member
0 Likes
1,103

Can you help furnish the types of Z_MY_DB and IT_ITAB please ?