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 on FIND statement

Former Member
0 Likes
546

Hi all:

I have a problem regarding Unicode now we're on ECC 6.0

Here the code:


FIND 'TEILE_BEIP' IN TABLE zt_plpo IN CHARACTER MODE.

Tha table zt_plpo is define as follow:


DATA: zt_plpo TYPE coplpo OCCURS 10 WITH HEADER LINE.

And coplpo is a standard structure of Routing Operations to Order.

The error is:

Als Zeilentyp der Tabelle "ZT_PLPO" wurde im CHAR MODE ein zeichenartiges bzw.

im BYTE MODE ein byteartiges Feld erwartet.

So I want to know how should I define ZT_PLPO in order to don't have this error.

Thanks in advance for your help.

Miriam

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
484

Hi,

u need to remove the 'OCCURS' first. and u need to declare that internal table like this below,

data: begin of structure,

field1 type i,

field2 type c,

end of structure,

i_tab like table of structure with header line.

this ll help u.

2 REPLIES 2
Read only

Former Member
0 Likes
485

Hi,

u need to remove the 'OCCURS' first. and u need to declare that internal table like this below,

data: begin of structure,

field1 type i,

field2 type c,

end of structure,

i_tab like table of structure with header line.

this ll help u.

Read only

0 Likes
484

But then now I have to define each field of the sctructure?