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 issue for keyword SEARCH

Former Member
0 Kudos

Hi All...

In a report keyword SEARCH is used to find entry in internal table. basically this will find any value in internal table and will return sy-tabix as line number where the value exists.

Syntax: SEARCH itab FOR seek.

where itab is internal table and seek is variable which can contain any value to be searched in itab.

When i set 'Unicode check active' attribute in program attribute, while activating program i am getting error as: <b>Table "KEN3" must have a character line type (data type C, N, D, T, or STRING).</b>

When i try to add additons In byte mode and in charecter mode, i am getting incompability errors.

Is there any solution/alternative for this error. I am trying to make my program unicode compliant.

TIA,

Agasti.

3 REPLIES 3

Former Member
0 Kudos

Hi ,

Try with Search itab for seek in byte mode and then see the error and it will give compatibility problem Try to make the itab and seek of same structure and what's KEN3 error u are getting .

Please send me the code.

Please reward if useful.

Former Member
0 Kudos

Hi

I think ur itab is having all the fields of the table

Because of MANDT only it is generating the error declare ur itab below.

I wrote the code like this and it is not generating any error

Kindly have a look.

data : begin of it_mara1,

matnr like mara-matnr,

meins like mara-meins,

BLANZ like mara-BLANZ,

end of it_mara1.

search it_mara1 for 'new'." in character mode.

Regards

Shiva

Former Member
0 Kudos

i think search fn is entirely working for character types i.e. (c,n,d,t,x, string) . so you have to specify that kind of fields only in your itab.

regards

shiba dutta