01-31-2007 11:01 PM
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.
02-01-2007 4:58 AM
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.
02-01-2007 5:13 AM
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
02-01-2007 5:16 AM
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