Skip to Content
author's profile photo Former Member
Former Member

Unicode issue for keyword SEARCH

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 04: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.