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

unicode error

Former Member
0 Likes
539

Hi,

I am using following code for importing memory-id from

IMPORT E_VBKOK XANZPK TEXTTAB XBOLNR FROM MEMORY ID MEM_ID.

TEXTTAB XBOLNR are structur.

DATA: BEGIN OF MEM_ID,

MANDT LIKE SY-MANDT,

UNAME LIKE SY-UNAME,

MODNO LIKE SY-MODNO,

END OF MEM_ID.

It is showing unicode error . How it will be solved.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
503

Hi ,

The memory id should character type. Use the below data declarations.

DATA: BEGIN OF MEM_ID,

MANDT(3) TYPE c,"SY-MANDT,

UNAME(12) TYPE c,"SY-UNAME,

MODNO(10) TYPE c,"SY-MODNO,

END OF MEM_ID.

Regards,

Naveen

3 REPLIES 3
Read only

Former Member
0 Likes
503

Hi,

The memory id MEM_ID should be of character type. That means all the components of the Structure should be of type C,N,D,T.

Try changing the types into equivalent character fields.

Thanks

Ajay

Read only

Former Member
0 Likes
504

Hi ,

The memory id should character type. Use the below data declarations.

DATA: BEGIN OF MEM_ID,

MANDT(3) TYPE c,"SY-MANDT,

UNAME(12) TYPE c,"SY-UNAME,

MODNO(10) TYPE c,"SY-MODNO,

END OF MEM_ID.

Regards,

Naveen

Read only

uwe_schieferstein
Active Contributor
0 Likes
503

Hello

You need to provide the data objects for the IMPORT statement (see ABAP keyword documentation for IMPORT):


IMPORT E_VBKOK = var1 XANZPK = var2 TEXTTAB = var3 XBOLNR = var4
   FROM MEMORY ID MEM_ID.

Regards

Uwe