Application Development 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: 

unicode error

Former Member
0 Kudos

hi,

In unicode i am getting the error while reading a table .

" The key of internal table "EDYNPRO" contains components of type "X" or

"XSTRING". The "READ TABLE EDYNPRO" statement is not permitted for such tables

in a Unicode context"

The EDYNPRO structure contains a filed a datatype RAW.

can anybody worked on unicode pls help me?

4 REPLIES 4

Former Member
0 Kudos

can you please paste ur code ?

Former Member
0 Kudos

Hi Mohammed,

In unicode environment you cannot use X or XSTRING, Convert those elements of the structure as TYPE C.

For e.g.

BEGIN OF ABC,

VAR1 TYPE X,

VAR2 TYPE XSTRING,

END OF ABC.

Change it to:

BEGIN OF ABC,

VAR1 TYPE C,

VAR2 TYPE STRING,

END OF ABC.

Also you may have to use CL_ABAP_CHAR_UTILITIES, Please search in SDN with this class name.

Before Unicode Checks are Active.

DATA: wa_string(255) TYPE c.

CONSTANTS: con_tab TYPE x VALUE '09'.

*If the Unicode checks are active in program attributes then you have to declare constants as follows:

*class cl_abap_char_utilities definition load.

*constants:

  • con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.

Let me know if you need further info on this.

Thanks,

Sai

Former Member
0 Kudos

hi

the problem is solved by using the filed symbols.

0 Kudos

Hi Mohammed,

Please check if the data is getting populated correctly. I have faced some problems previously using field symbols.

Thanks,

Sai