<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unicode syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-syntax-error/m-p/1766697#M331443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amogh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your internal table contains fields with the data types other than C , N , D , T or X, you will get this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the following code will give you the same error - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : BEGIN OF ITAB OCCURS 0,
ABC TYPE I ,
XYZ TYPE STRING,
END OF ITAB.

SEARCH ITAB[] FOR 'TEST'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this, you should create a structure with just character types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : BEGIN OF ITAB OCCURS 0,
ABC(8) TYPE N ,
XYZ TYPE STRING,
END OF ITAB.

SEARCH ITAB[] FOR 'TEST'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that, instead of an integer in the first declaration, I have created a numeric type of length 8. That is because "N" is a character based data-type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear. If not, revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2006 07:37:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-04T07:37:17Z</dc:date>
    <item>
      <title>Unicode syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-syntax-error/m-p/1766693#M331439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting a syntax error after activating the Unicode attribute of 1 program.&lt;/P&gt;&lt;P&gt;The error says - "Table KEN3 must have a character line type ( C, N, D, T or string).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code extract is - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SEARCH ken3 FOR seek.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable seek is of type dd03l-fieldname and KEN3 is an int tab containing data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know the fix for this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points guaranteed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amogh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 06:57:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-syntax-error/m-p/1766693#M331439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T06:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-syntax-error/m-p/1766694#M331440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amogh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SEARCH keyword for character operations only.you can convert ken3 Integer to Character by using Standrad FM's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERT_STRING_TO_INTEGER&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the above FM will works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 07:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-syntax-error/m-p/1766694#M331440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T07:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-syntax-error/m-p/1766695#M331441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amogh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It owuld be immensely helpful to resolve this problem if you specify the data declaration for the internal table KEN3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 07:13:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-syntax-error/m-p/1766695#M331441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T07:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-syntax-error/m-p/1766696#M331442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u for looking into the issue..&lt;/P&gt;&lt;P&gt;The data declaration for KEN3 is -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ken3 OCCURS 10.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE mhk.&lt;/P&gt;&lt;P&gt;DATA: name1 LIKE lfa1-name1.&lt;/P&gt;&lt;P&gt;DATA: line .&lt;/P&gt;&lt;P&gt;DATA: stat .&lt;/P&gt;&lt;P&gt;DATA: zjda11     LIKE  zmjmhk-zjda1.&lt;/P&gt;&lt;P&gt;DATA: zjda22     LIKE  zmjmhk-zjda2.&lt;/P&gt;&lt;P&gt;DATA: zjda33     LIKE  zmjmhk-zjda3.&lt;/P&gt;&lt;P&gt;DATA: zjda44     LIKE  zmjmhk-zjda4.&lt;/P&gt;&lt;P&gt;DATA: zjda55     LIKE  zmjmhk-zjda5.&lt;/P&gt;&lt;P&gt;DATA: zjda66     LIKE  zmjmhk-zjda6.&lt;/P&gt;&lt;P&gt;DATA: zjqt12     LIKE  zmjmhk-zjqt2.&lt;/P&gt;&lt;P&gt;DATA: zjtx11     LIKE  zmjmhk-zjtx1.&lt;/P&gt;&lt;P&gt;DATA: zjflgx     LIKE  zmjmhk-zjflg.&lt;/P&gt;&lt;P&gt;DATA: cha6(6)    TYPE  c.&lt;/P&gt;&lt;P&gt;DATA: seq(10)    TYPE  n.&lt;/P&gt;&lt;P&gt;DATA: END OF ken3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz check if u get any solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 07:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-syntax-error/m-p/1766696#M331442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T07:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-syntax-error/m-p/1766697#M331443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amogh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your internal table contains fields with the data types other than C , N , D , T or X, you will get this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the following code will give you the same error - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : BEGIN OF ITAB OCCURS 0,
ABC TYPE I ,
XYZ TYPE STRING,
END OF ITAB.

SEARCH ITAB[] FOR 'TEST'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this, you should create a structure with just character types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : BEGIN OF ITAB OCCURS 0,
ABC(8) TYPE N ,
XYZ TYPE STRING,
END OF ITAB.

SEARCH ITAB[] FOR 'TEST'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that, instead of an integer in the first declaration, I have created a numeric type of length 8. That is because "N" is a character based data-type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear. If not, revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 07:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-syntax-error/m-p/1766697#M331443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T07:37:17Z</dc:date>
    </item>
  </channel>
</rss>

