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

Error message

Former Member
0 Likes
1,146

hi all

Can anybody tell me meaning of this error message

"Table is not unicode- convertible'.

Rgds

Mona

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,091

Hi

Plz check this out

DATA: BEGIN OF g_file OCCURS 0,

matnr TYPE matnr, "Material Number

maktx TYPE maktx, "Materialdescription

prodesc(30) TYPE c, "Material description

salegrp(3) TYPE c, "

mseht TYPE mseht, "Text t

brgew TYPE brgew, "

volum TYPE volum, "

length(5) TYPE c, "

wheel_width TYPE zwid, "Wheel Width

wheel_diam TYPE zdiam, "Use diameter

serial(1) TYPE c, "

palqty(10) TYPE c, "

unipcar(5) TYPE c, "

unno(4) TYPE c, "

END OF g_file.

DATA : t_file LIKE g_file OCCURS 0 WITH HEADER LINE.

SELECT * FROM mara INTO TABLE t_file

WHERE matnr = wmara-matnr.

This is giving error as

"type of the database table and work area (or intertable)

t_file are not unicode convertible

Plz help

10 REPLIES 10
Read only

Former Member
0 Likes
1,091

The table is not unicode convertible

If you post the instruction that is giving the error it's easier to see why is giving you the error

Read only

Former Member
0 Likes
1,091

check the long text of this message.

Read only

Former Member
0 Likes
1,091

Hi

SELECT * FROM mara INTO TABLE t_file

WHERE wmara-matnr = mara-matnr.

this query is giving error as

"t_file is not unicode convertible."

Read only

0 Likes
1,091

replace your select query as

SELECT * FROM mara INTO TABLE t_file

WHERE matnr = wmara-matnr .

As you are selecting all the values from the table MARA ,check the internal table structure t_file is same as MARA (eg:- data: t_file type table of mara.)

Read only

Former Member
0 Likes
1,091

Hi,

Can you give your declaration part also.

So, that i can analyze the code.

Give your code , before to that select statement.

Regards

Sandeep Reddy

Read only

Former Member
0 Likes
1,092

Hi

Plz check this out

DATA: BEGIN OF g_file OCCURS 0,

matnr TYPE matnr, "Material Number

maktx TYPE maktx, "Materialdescription

prodesc(30) TYPE c, "Material description

salegrp(3) TYPE c, "

mseht TYPE mseht, "Text t

brgew TYPE brgew, "

volum TYPE volum, "

length(5) TYPE c, "

wheel_width TYPE zwid, "Wheel Width

wheel_diam TYPE zdiam, "Use diameter

serial(1) TYPE c, "

palqty(10) TYPE c, "

unipcar(5) TYPE c, "

unno(4) TYPE c, "

END OF g_file.

DATA : t_file LIKE g_file OCCURS 0 WITH HEADER LINE.

SELECT * FROM mara INTO TABLE t_file

WHERE matnr = wmara-matnr.

This is giving error as

"type of the database table and work area (or intertable)

t_file are not unicode convertible

Plz help

Read only

0 Likes
1,091

SELECT * FROM mara INTO CORRESPONDING FIELDS OF TABLE t_file
WHERE matnr = wmara-matnr.

Read only

0 Likes
1,091

You need to add "CORRESPONDING FIELDS OF" into your query.


DATA: BEGIN OF g_file OCCURS 0,
matnr TYPE matnr, "Material Number
maktx TYPE maktx, "Materialdescription
prodesc(30) TYPE c, "Material description
salegrp(3) TYPE c, "
mseht TYPE mseht, "Text t
brgew TYPE brgew, "
volum TYPE volum, "
length(5) TYPE c, "
wheel_width TYPE zwid, "Wheel Width
wheel_diam TYPE zdiam, "Use diameter 
serial(1) TYPE c, "
palqty(10) TYPE c, "
unipcar(5) TYPE c, "
unno(4) TYPE c, "
END OF g_file.

DATA : t_file LIKE g_file OCCURS 0 WITH HEADER LINE.

SELECT * FROM mara INTO CORRESPONDING FIELDS OF TABLE t_file
WHERE matnr = wmara-matnr.

Or


DATA: IT_FIEL TYPE STANDARD TABLE OF MARA.

SELECT * FROM mara INTO TABLE t_file
WHERE matnr = wmara-matnr.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
1,091

I have written this code in EXIT_SAPLMGMU_001 and

in table declaration some fields are from tables which are not there in that exit like MAKT, T006A and Marc

what I can do so that I can get data from this tables also by writing code in the exit.

Read only

Former Member
0 Likes
1,091

Thanx all