<?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 Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1637936#M284282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT B~MATNR&lt;/P&gt;&lt;P&gt;  INTO TABLE LT_FINAL&lt;/P&gt;&lt;P&gt;  FROM /SAPAPO/MATLOC AS A&lt;/P&gt;&lt;P&gt;  INNER JOIN /SAPAPO/MATKEY AS B ON A&lt;SUB&gt;MATID EQ B&lt;/SUB&gt;MATID&lt;/P&gt;&lt;P&gt;  INNER JOIN /SAPAPO/LOC    AS C ON A&lt;SUB&gt;LOCID EQ C&lt;/SUB&gt;LOCID&lt;/P&gt;&lt;P&gt;  WHERE C~LOCID EQ LT_ORDKEYS-LOCID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error : lt_ordkeys is a table without header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Declaration is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : LT_ORDKEYS  TYPE /SAPAPO/OM_ORDKEY_TAB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i cannot declare like &lt;/P&gt;&lt;P&gt;LT_ORDKEYS  TYPE /SAPAPO/OM_ORDKEY_TAB with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i cannot pass it to Fm  CALL FUNCTION '/SAPAPO/OM_ORDER_GET_DATA'&lt;/P&gt;&lt;P&gt;importing parameter : et_ordkeys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; How to solve this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2006 08:11:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-28T08:11:42Z</dc:date>
    <item>
      <title>Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1637936#M284282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT B~MATNR&lt;/P&gt;&lt;P&gt;  INTO TABLE LT_FINAL&lt;/P&gt;&lt;P&gt;  FROM /SAPAPO/MATLOC AS A&lt;/P&gt;&lt;P&gt;  INNER JOIN /SAPAPO/MATKEY AS B ON A&lt;SUB&gt;MATID EQ B&lt;/SUB&gt;MATID&lt;/P&gt;&lt;P&gt;  INNER JOIN /SAPAPO/LOC    AS C ON A&lt;SUB&gt;LOCID EQ C&lt;/SUB&gt;LOCID&lt;/P&gt;&lt;P&gt;  WHERE C~LOCID EQ LT_ORDKEYS-LOCID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error : lt_ordkeys is a table without header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Declaration is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : LT_ORDKEYS  TYPE /SAPAPO/OM_ORDKEY_TAB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i cannot declare like &lt;/P&gt;&lt;P&gt;LT_ORDKEYS  TYPE /SAPAPO/OM_ORDKEY_TAB with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i cannot pass it to Fm  CALL FUNCTION '/SAPAPO/OM_ORDER_GET_DATA'&lt;/P&gt;&lt;P&gt;importing parameter : et_ordkeys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; How to solve this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 08:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1637936#M284282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T08:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1637937#M284283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can decalre it as LT_ORDKEYS TYPE &amp;lt;b&amp;gt;TABLE OF&amp;lt;/b&amp;gt; /SAPAPO/OM_ORDKEY_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Plz mark useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 08:13:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1637937#M284283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T08:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1637938#M284284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is, that the WHERE-Condition &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WHERE C~LOCID EQ LT_ORDKEYS-LOCID.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;compares a single value with a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you declare a range (e.g. LR_ORDKEYS), put the values from LT_ORDKEYS into this range and change the condition to &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WHERE c~LOCID IN LR_ORDKEY?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 08:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1637938#M284284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T08:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1637939#M284285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    try below code&lt;/P&gt;&lt;P&gt;   data LT_ORDKEYS like /SAPAPO/OM_ORDKEY_TAB occurs 0&lt;/P&gt;&lt;P&gt;        with header line.  &lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 08:29:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1637939#M284285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T08:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1637940#M284286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Can U paste tHe code from where ur getting the locid passed into the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ahasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 08:34:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1637940#M284286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T08:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1637941#M284287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johnn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since LT_ORDKEYS is a table, try using the statement 'FOR ALL ENTRIES' in the select stmt. That should then equate each record of LT_ORDKEYS with C~LOCID.Also check LT_ORDKEYS is not initial before using a SELECT with &amp;lt;b&amp;gt;'FOR ALL ENTRIES'&amp;lt;/b&amp;gt; to avoid performance issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT B~MATNR&lt;/P&gt;&lt;P&gt;INTO TABLE LT_FINAL&lt;/P&gt;&lt;P&gt;FROM /SAPAPO/MATLOC AS A&lt;/P&gt;&lt;P&gt;INNER JOIN /SAPAPO/MATKEY AS B ON A&lt;SUB&gt;MATID EQ B&lt;/SUB&gt;MATID&lt;/P&gt;&lt;P&gt;INNER JOIN /SAPAPO/LOC AS C ON A&lt;SUB&gt;LOCID EQ C&lt;/SUB&gt;LOCID&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FOR ALL ENTRIES IN LT_ORDKEYS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE C~LOCID EQ LT_ORDKEYS-LOCID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 08:48:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/1637941#M284287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T08:48:25Z</dc:date>
    </item>
  </channel>
</rss>

