<?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 Syntax error in where condition. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-where-condition/m-p/1485262#M226530</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;I amd upgrading SAP from 3.1I to ECC 5.0.&lt;/P&gt;&lt;P&gt;I am getting syntax error in ECC 5.0 for the statement---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  * FROM CDPOS&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE ITAB_CDPOS&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN ITAB_CHANGES&lt;/P&gt;&lt;P&gt;      WHERE   OBJECTCLAS  EQ    ITAB_CHANGES-CDOBJCL  AND&lt;/P&gt;&lt;P&gt;              OBJECTID    EQ    ITAB_CHANGES-CDOBJID  AND&lt;/P&gt;&lt;P&gt;              CHANGENR    EQ    ITAB_CHANGES-CDCHGNO  AND&lt;/P&gt;&lt;P&gt;              TABNAME     EQ    ITAB_CHANGES-TABNAME  AND&lt;/P&gt;&lt;P&gt;              TABKEY      EQ    ITAB_CHANGES-TABKEY   AND&lt;/P&gt;&lt;P&gt;              FNAME       EQ    ITAB_CHANGES-FLDNAME  AND&lt;/P&gt;&lt;P&gt;              CHNGIND     EQ    ITAB_CHANGES-CDCHGID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above statement(in ECC 5.0)&lt;/P&gt;&lt;P&gt; CDPOS-TABKEY is 70 char and ITAB_CHANGES-TABKEY is 254 char(ITAB_CHANGES is of type BDCPV) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in 3.1I BDCPV-TABKEY is 70 char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is giving syntax error that, both TABKEYs must have same type and same length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone suggest how to correct the statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Aug 2006 16:43:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-25T16:43:25Z</dc:date>
    <item>
      <title>Syntax error in where condition.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-where-condition/m-p/1485262#M226530</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;I amd upgrading SAP from 3.1I to ECC 5.0.&lt;/P&gt;&lt;P&gt;I am getting syntax error in ECC 5.0 for the statement---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  * FROM CDPOS&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE ITAB_CDPOS&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN ITAB_CHANGES&lt;/P&gt;&lt;P&gt;      WHERE   OBJECTCLAS  EQ    ITAB_CHANGES-CDOBJCL  AND&lt;/P&gt;&lt;P&gt;              OBJECTID    EQ    ITAB_CHANGES-CDOBJID  AND&lt;/P&gt;&lt;P&gt;              CHANGENR    EQ    ITAB_CHANGES-CDCHGNO  AND&lt;/P&gt;&lt;P&gt;              TABNAME     EQ    ITAB_CHANGES-TABNAME  AND&lt;/P&gt;&lt;P&gt;              TABKEY      EQ    ITAB_CHANGES-TABKEY   AND&lt;/P&gt;&lt;P&gt;              FNAME       EQ    ITAB_CHANGES-FLDNAME  AND&lt;/P&gt;&lt;P&gt;              CHNGIND     EQ    ITAB_CHANGES-CDCHGID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above statement(in ECC 5.0)&lt;/P&gt;&lt;P&gt; CDPOS-TABKEY is 70 char and ITAB_CHANGES-TABKEY is 254 char(ITAB_CHANGES is of type BDCPV) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in 3.1I BDCPV-TABKEY is 70 char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is giving syntax error that, both TABKEYs must have same type and same length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone suggest how to correct the statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 16:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-where-condition/m-p/1485262#M226530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T16:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in where condition.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-where-condition/m-p/1485263#M226531</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;  If you are using FOR ALL ENTRIES the column you are using should be of the same data type as the database column..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In this case the TABKEY in the internal table should be of the data type CDPOS-TABKEY..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Change the data type..It will work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Narendran Muthukumaran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 16:45:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-where-condition/m-p/1485263#M226531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T16:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in where condition.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-where-condition/m-p/1485264#M226532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have worked on a similar kind of upgradation, they have to be of equal length if u need to compare them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 17:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-where-condition/m-p/1485264#M226532</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2006-08-25T17:26:10Z</dc:date>
    </item>
  </channel>
</rss>

