<?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: Error: SAPSQL_INVALID_FIELDNAME in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-sapsql-invalid-fieldname/m-p/1876982#M368654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. I looked at it. The table has no field ZZ_J3AGEND in it. So what should i do now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Das.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jan 2007 01:32:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-26T01:32:45Z</dc:date>
    <item>
      <title>Error: SAPSQL_INVALID_FIELDNAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-sapsql-invalid-fieldname/m-p/1876978#M368650</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;I have an issue with an ABAP load program that uploads a spreadsheet and calls a function module to update prices via IDoc. This program is a generic load program to maintain SD and MM pricing. The issue is that the user is getting a short dump with the &lt;/P&gt;&lt;P&gt;error &amp;lt;b&amp;gt;'SAPSQL_INVALID_FIELDNAME&amp;lt;/b&amp;gt;'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the &amp;lt;i&amp;gt;error analysis says:&amp;lt;/i&amp;gt; &lt;/P&gt;&lt;P&gt;SELECT clause was specified in an internal table at runtime. It contains the fieldname "ZZJ_3AGEND", but this doesn't occur in any of the database tables listed in the FROM clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It says the error is in the lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM edit_other USING    p_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA count_rows TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF NOT itab_dd03l-checktable IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR where_tab.&lt;/P&gt;&lt;P&gt;      REFRESH where_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE itab_dd03l-fieldname ' = ''' p_key ''''&lt;/P&gt;&lt;P&gt;             INTO where_tab&lt;/P&gt;&lt;P&gt;                  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND where_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt;      SELECT COUNT( * )&lt;/P&gt;&lt;P&gt;       		 INTO count_rows&lt;/P&gt;&lt;P&gt;	        FROM (itab_dd03l-checktable)&lt;/P&gt;&lt;P&gt;	       WHERE (where_tab). { Error is Here}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Here where_tab is an internal table which is filled up at runtime. And select statement is in error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to rectify it??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help and advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Das.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 21:27:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-sapsql-invalid-fieldname/m-p/1876978#M368650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T21:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error: SAPSQL_INVALID_FIELDNAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-sapsql-invalid-fieldname/m-p/1876979#M368651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the below code is trying to find out no. of rows for given condition. Here, may be you can use&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE &amp;lt;tablename&amp;gt; LINES &amp;lt;lines&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: LV_LINES TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_FIELDNAME OCCURS 0,&lt;/P&gt;&lt;P&gt;	FIELDNAME TYPE FIELDNAME,&lt;/P&gt;&lt;P&gt;      END OF IT_FIELDNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &amp;lt;FIELDNAME&amp;gt;&lt;/P&gt;&lt;P&gt;       INTO (IT_FIELDNAME)&lt;/P&gt;&lt;P&gt;	FROM (itab_dd03l-checktable)&lt;/P&gt;&lt;P&gt;	WHERE (where_tab). { Error is Here}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE IT_FIELDNAME LINES LV_LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 21:43:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-sapsql-invalid-fieldname/m-p/1876979#M368651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T21:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error: SAPSQL_INVALID_FIELDNAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-sapsql-invalid-fieldname/m-p/1876980#M368652</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 you for reply. But the problem here is with the 'WHERE' condition. the where_tab has a entry or a condition with a particular field. And this field is not in itab_dd03l-checktable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Das&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 22:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-sapsql-invalid-fieldname/m-p/1876980#M368652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T22:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error: SAPSQL_INVALID_FIELDNAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-sapsql-invalid-fieldname/m-p/1876981#M368653</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;Execute the program again..After it goes to short dump..Press the debugging screen..it will stop at the SQL select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; SELECT COUNT( * )&lt;/P&gt;&lt;P&gt;INTO count_rows&lt;/P&gt;&lt;P&gt;FROM (itab_dd03l-checktable)&lt;/P&gt;&lt;P&gt;WHERE (where_tab). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the debugging..check what is the value in the variable ITAB_DD03L-checktable..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take that value ..and go to se11 and give that value..Check in the table if the corresponding field ZZ_J3AGEND is available or not..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 22:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-sapsql-invalid-fieldname/m-p/1876981#M368653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T22:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error: SAPSQL_INVALID_FIELDNAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-sapsql-invalid-fieldname/m-p/1876982#M368654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. I looked at it. The table has no field ZZ_J3AGEND in it. So what should i do now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Das.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 01:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-sapsql-invalid-fieldname/m-p/1876982#M368654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T01:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error: SAPSQL_INVALID_FIELDNAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-sapsql-invalid-fieldname/m-p/1876983#M368655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case you need to check if the table name getting stored in "itab_dd03l-checktable" is a correct table or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean, is that the table which has this field name or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 01:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-sapsql-invalid-fieldname/m-p/1876983#M368655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T01:45:17Z</dc:date>
    </item>
  </channel>
</rss>

