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 DBTAB gets Unicode Error.

Former Member
0 Likes
1,026

Hi.

     I am using below statement in one of the methods of the local class.

      IF ITAB IS NOT INITIAL.

        INSERT DBTAB FROM TABLE ITAB.

      ENDIF.

     But i am getting error .

     the type of the database table and work area ( or internal table)

     ME->ITAB are not unicode convertible.

     What need to be done to solve this problem.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
987

Does your internal table structure match the database table structure ?

For more information, read Open SQL - Work Areas in Statements.

Regards,

Raymond

7 REPLIES 7
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
987

How is ITAB declared?    

Read only

0 Likes
987

This message was moderated.

Read only

0 Likes
987

DBTAB IS A ZTAble

itab in public of the class .

Read only

RaymondGiuseppi
Active Contributor
0 Likes
988

Does your internal table structure match the database table structure ?

For more information, read Open SQL - Work Areas in Statements.

Regards,

Raymond

Read only

0 Likes
987

I am using Data elements instead of Fields in WorkArea.

Read only

0 Likes
987

Your workarea contains fields and not data elements... even if you give the fields the same name than the data-elements... (do not confuse maps with territories)

Check your fields are in same sequence than in the database, and check the alignment.

Regards,

Raymond

Read only

0 Likes
987

Thanks For your help. Problem got Solved.