<?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: program terminated in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818435#M1127679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Its working because of the INTO CORRESPONDING FIELDS and not because of the FOR ALL ENTRIES...&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Zero - I believe you analysis is essentially incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at the dump, you'll see that it is complaining about the size of the WHERE, not the structure of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2008 15:06:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-27T15:06:29Z</dc:date>
    <item>
      <title>program terminated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818428#M1127672</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 have a RE program when i execute it i found run time error cause the retrieve data is too large&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;this is the run time error analysis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&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_OPEN_SQL_DB', was n&lt;/P&gt;&lt;P&gt; and&lt;/P&gt;&lt;P&gt;therefore caused a runtime error.&lt;/P&gt;&lt;P&gt;The reason for the exception is:&lt;/P&gt;&lt;P&gt;The SQL statement generated from the SAP Open SQL statement violates&lt;/P&gt;&lt;P&gt;restriction imposed by the underlying database system of the ABAP&lt;/P&gt;&lt;P&gt;system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible error causes:&lt;/P&gt;&lt;P&gt; o The maximum size of an SQL statement was exceeded.&lt;/P&gt;&lt;P&gt; o The statement contains too many input variables.&lt;/P&gt;&lt;P&gt; o The input data requires more space than is available.&lt;/P&gt;&lt;P&gt; o ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can generally find details in the system log (SM21) and in the&lt;/P&gt;&lt;P&gt;developer trace of the relevant work process (ST11).&lt;/P&gt;&lt;P&gt;In the case of an error, current restrictions are frequently display&lt;/P&gt;&lt;P&gt;in the developer trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and this select statement it make a run time error&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT   bk&lt;SUB&gt;bldat bk&lt;/SUB&gt;tcode zf&lt;SUB&gt;serpc bk&lt;/SUB&gt;gjahr bk&lt;SUB&gt;belnr zf&lt;/SUB&gt;portf&lt;/P&gt;&lt;P&gt;  FROM bkpf AS bk&lt;/P&gt;&lt;P&gt;  INNER JOIN zrefidoc AS zf&lt;/P&gt;&lt;P&gt;  ON bk&lt;SUB&gt;bukrs = zf&lt;/SUB&gt;bukrs&lt;/P&gt;&lt;P&gt;  AND bk&lt;SUB&gt;gjahr  = zf&lt;/SUB&gt;gjahr&lt;/P&gt;&lt;P&gt;  AND bk&lt;SUB&gt;belnr = zf&lt;/SUB&gt;docno&lt;/P&gt;&lt;P&gt;  into  TABLE gt_bkpf&lt;/P&gt;&lt;P&gt;    WHERE zf~bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;    AND intreno IN intreno&lt;/P&gt;&lt;P&gt;    and zf~portf in ps_portf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank's for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ahmed Elmasry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 11:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818428#M1127672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T11:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: program terminated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818429#M1127673</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; Check the field sequence,length andf type in select statement and internal table both should match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 11:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818429#M1127673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T11:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: program terminated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818430#M1127674</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;try with into corresponding fields of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT bk&lt;SUB&gt;bldat bk&lt;/SUB&gt;tcode zf&lt;SUB&gt;serpc bk&lt;/SUB&gt;gjahr bk&lt;SUB&gt;belnr zf&lt;/SUB&gt;portf&lt;/P&gt;&lt;P&gt;FROM bkpf AS bk&lt;/P&gt;&lt;P&gt;INNER JOIN zrefidoc AS zf&lt;/P&gt;&lt;P&gt;ON bk&lt;SUB&gt;bukrs = zf&lt;/SUB&gt;bukrs&lt;/P&gt;&lt;P&gt;AND bk&lt;SUB&gt;gjahr = zf&lt;/SUB&gt;gjahr&lt;/P&gt;&lt;P&gt;AND bk&lt;SUB&gt;belnr = zf&lt;/SUB&gt;docno&lt;/P&gt;&lt;P&gt;into corresponding fields of TABLE gt_bkpf&lt;/P&gt;&lt;P&gt;WHERE zf~bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;AND intreno IN intreno&lt;/P&gt;&lt;P&gt;and zf~portf in ps_portf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also cehck the internal table structure gt_bkpf have all the fields that u  r fecthing from db table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 12:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818430#M1127674</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2008-11-27T12:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: program terminated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818431#M1127675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check the sequence of the fields in internal table and sequence in select statement is matching or not. Also check whether there types are similar or not..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 12:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818431#M1127675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T12:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: program terminated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818432#M1127676</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 too got the same error. This is because of the range which we use in select query. When the range is very high SAP cannot bulid the SELECT in NATIVE sql and throws this exception. For your select the problem may be because of the statement &lt;U&gt;&lt;STRONG&gt;AND intreno IN intreno&lt;/STRONG&gt;&lt;/U&gt; i am not sure, please check this one. The only solution is to have a FOR ALL ENTRIES instead of IN operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinath S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 13:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818432#M1127676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T13:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: program terminated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818433#M1127677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I GET A SOLUTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used for all entries with another inernal table who retrieve all contracts and make a condition by intreno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select   bk&lt;SUB&gt;bldat bk&lt;/SUB&gt;tcode zf&lt;SUB&gt;serpc bk&lt;/SUB&gt;gjahr bk&lt;SUB&gt;belnr zf&lt;/SUB&gt;portf&lt;/P&gt;&lt;P&gt;  from bkpf as bk&lt;/P&gt;&lt;P&gt;  inner join zrefidoc as zf&lt;/P&gt;&lt;P&gt;  on bk&lt;SUB&gt;bukrs = zf&lt;/SUB&gt;bukrs&lt;/P&gt;&lt;P&gt;  and bk&lt;SUB&gt;gjahr  = zf&lt;/SUB&gt;gjahr&lt;/P&gt;&lt;P&gt;  and bk&lt;SUB&gt;belnr = zf&lt;/SUB&gt;docno&lt;/P&gt;&lt;P&gt;  into corresponding fields of table gt_bkpf&lt;/P&gt;&lt;P&gt;  for all entries in gt_vicncn&lt;/P&gt;&lt;P&gt;    where intreno = gt_vicncn-intreno&lt;/P&gt;&lt;P&gt;    and zf~bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;    and zf~portf in ps_portf.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 14:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818433#M1127677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T14:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: program terminated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818434#M1127678</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;Its working because of the INTO CORRESPONDING FIELDS and not because of the FOR ALL ENTRIES...&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, 27 Nov 2008 14:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818434#M1127678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T14:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: program terminated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818435#M1127679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Its working because of the INTO CORRESPONDING FIELDS and not because of the FOR ALL ENTRIES...&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Zero - I believe you analysis is essentially incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at the dump, you'll see that it is complaining about the size of the WHERE, not the structure of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 15:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818435#M1127679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T15:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: program terminated</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818436#M1127680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No No&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried INTO CORRESPONDING FIELDS  at first it make a run time error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i tried FOR ALL ENTRIES it run very good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank's for all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 15:57:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-terminated/m-p/4818436#M1127680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T15:57:39Z</dc:date>
    </item>
  </channel>
</rss>

