Skip to Content
-3

insert internal table into DB Table

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Nov 06, 2019 at 11:49 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 06, 2019 at 11:49 AM

    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!

    Add a comment
    10|10000 characters needed characters exceeded