<?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: Run time error SAPSQL_INVALID_FIELDNAME in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-sapsql-invalid-fieldname/m-p/7004181#M1495720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the SAME problem recently even after activate the 'SD_SWU_ACTIVE' parameter in user account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another way to solve this?, many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jan 2011 13:32:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-06T13:32:10Z</dc:date>
    <item>
      <title>Run time error SAPSQL_INVALID_FIELDNAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-sapsql-invalid-fieldname/m-p/7004180#M1495719</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 am getting an runtime error when trying to display a document from transaction CV03N, QS23 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error details are mentioned as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime Errors         SAPSQL_INVALID_FIELDNAME&lt;/P&gt;&lt;P&gt;Except.                CX_SY_DYNAMIC_OSQL_SEMANTICS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;    Error in the ABAP Application Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    The current ABAP program "CL_ALINK_CONNECTION===========CP" had to be&lt;/P&gt;&lt;P&gt;     terminated because it has&lt;/P&gt;&lt;P&gt;    come across a statement that unfortunately cannot be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;    The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SEMANTICS', was&lt;/P&gt;&lt;P&gt;     not caught in&lt;/P&gt;&lt;P&gt;    procedure "FIND" "(METHOD)", nor was it propagated by a RAISING clause.&lt;/P&gt;&lt;P&gt;    Since the caller of the procedure could not have anticipated that the&lt;/P&gt;&lt;P&gt;    exception would occur, the current program is terminated.&lt;/P&gt;&lt;P&gt;    The reason for the exception is:&lt;/P&gt;&lt;P&gt;    An Open SQL clause was specified dynamically. The contained field name&lt;/P&gt;&lt;P&gt;    "MANDT" does not exist in any of the database tables from the FROM clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source Code Extract&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line  SourceCde&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  186   append_condition( exporting name = 'RESERVE'    value = l_documentclass  changing conditio&lt;/P&gt;&lt;P&gt;  187   append_condition( exporting name = 'DEL_DATE'   value = del_date         changing conditio&lt;/P&gt;&lt;P&gt;  188&lt;/P&gt;&lt;P&gt;  189 * build up condition for select - from until&lt;/P&gt;&lt;P&gt;  190   if not ( from_ar_date is initial ) or&lt;/P&gt;&lt;P&gt;  191      not ( until_ar_date eq sy-datum ).&lt;/P&gt;&lt;P&gt;  192     append_between_condition(&lt;/P&gt;&lt;P&gt;  193       exporting&lt;/P&gt;&lt;P&gt;  194         name = 'AR_DATE' from = from_ar_date until = until_ar_date&lt;/P&gt;&lt;P&gt;  195       changing&lt;/P&gt;&lt;P&gt;  196         condition = l_condition&lt;/P&gt;&lt;P&gt;  197     ).&lt;/P&gt;&lt;P&gt;  198   endif.&lt;/P&gt;&lt;P&gt;  199&lt;/P&gt;&lt;P&gt;  200 * get list of connection tables&lt;/P&gt;&lt;P&gt;  201   l_toaco_tab[] = connection_tables[].&lt;/P&gt;&lt;P&gt;  202&lt;/P&gt;&lt;P&gt;  203 * add dummy entry for adk access&lt;/P&gt;&lt;P&gt;  204   l_toaco-connection = space.&lt;/P&gt;&lt;P&gt;  205   append l_toaco to l_toaco_tab.&lt;/P&gt;&lt;P&gt;  206&lt;/P&gt;&lt;P&gt;  207 * for each connection table&lt;/P&gt;&lt;P&gt;  208   loop at l_toaco_tab into l_toaco.&lt;/P&gt;&lt;P&gt;  209&lt;/P&gt;&lt;P&gt;  210     if l_toaco is initial.&lt;/P&gt;&lt;P&gt;  211       call function 'ARCHIVELNK_READ_ALL_OBJECTS'&lt;/P&gt;&lt;P&gt;211       call function 'ARCHIVELNK_READ_ALL_OBJECTS'&lt;/P&gt;&lt;P&gt;212         tables&lt;/P&gt;&lt;P&gt;213           connections       = l_archived_connections.&lt;/P&gt;&lt;P&gt;214     else.&lt;/P&gt;&lt;P&gt;215 *     start database selection&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;       open cursor with hold l_cursor for&lt;/P&gt;&lt;P&gt;217         select * from (l_toaco-connection)&lt;/P&gt;&lt;P&gt;218                  client specified&lt;/P&gt;&lt;P&gt;219                  where (l_condition)&lt;/P&gt;&lt;P&gt;220                  and mandt in l_ra_mandt&lt;/P&gt;&lt;P&gt;221                  and sap_object in l_ra_sap_object&lt;/P&gt;&lt;P&gt;222                  and object_id in l_ra_object_id&lt;/P&gt;&lt;P&gt;223                  and archiv_id in l_ra_archiv_id&lt;/P&gt;&lt;P&gt;224                  and arc_doc_id in l_ra_arc_doc_id&lt;/P&gt;&lt;P&gt;225                  and ar_object in l_ra_ar_object&lt;/P&gt;&lt;P&gt;226                  and ar_date in l_ra_ar_date&lt;/P&gt;&lt;P&gt;227                  and del_date in l_ra_del_date&lt;/P&gt;&lt;P&gt;228                  and reserve in l_ra_reserve&lt;/P&gt;&lt;P&gt;229                  %_hints DB2 '&amp;amp;SUBSTITUTE VALUES&amp;amp;'.&lt;/P&gt;&lt;P&gt;230     endif.&lt;/P&gt;&lt;P&gt;231     do.&lt;/P&gt;&lt;P&gt; 232 *     check if termination is requested&lt;/P&gt;&lt;P&gt; 233       if l_terminate = 'X'.&lt;/P&gt;&lt;P&gt; 234         exit.&lt;/P&gt;&lt;P&gt; 235       endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Nikhilesh Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 05:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-sapsql-invalid-fieldname/m-p/7004180#M1495719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T05:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Run time error SAPSQL_INVALID_FIELDNAME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-sapsql-invalid-fieldname/m-p/7004181#M1495720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the SAME problem recently even after activate the 'SD_SWU_ACTIVE' parameter in user account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another way to solve this?, many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 13:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-sapsql-invalid-fieldname/m-p/7004181#M1495720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-06T13:32:10Z</dc:date>
    </item>
  </channel>
</rss>

