<?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 error when inserting into a internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360833#M1233922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the fowolling error.&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 not caught&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; In a SELECT access, the read file could not be placed in the target&lt;/P&gt;&lt;P&gt; field provided.&lt;/P&gt;&lt;P&gt; Either the conversion is not supported for the type of the target field,&lt;/P&gt;&lt;P&gt; the target field is too small to include the value, or the data does not&lt;/P&gt;&lt;P&gt; have the format required for the target field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a join of 5 table and it is inseting into an interal table wich tpye is al the fields that i am pulling from the other tables. can someone please help. thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Mar 2009 03:06:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-29T03:06:28Z</dc:date>
    <item>
      <title>error when inserting into a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360833#M1233922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the fowolling error.&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 not caught&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; In a SELECT access, the read file could not be placed in the target&lt;/P&gt;&lt;P&gt; field provided.&lt;/P&gt;&lt;P&gt; Either the conversion is not supported for the type of the target field,&lt;/P&gt;&lt;P&gt; the target field is too small to include the value, or the data does not&lt;/P&gt;&lt;P&gt; have the format required for the target field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a join of 5 table and it is inseting into an interal table wich tpye is al the fields that i am pulling from the other tables. can someone please help. thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2009 03:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360833#M1233922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-29T03:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: error when inserting into a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360834#M1233923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi david ,&lt;/P&gt;&lt;P&gt;Did you use &lt;STRONG&gt;INTO CORRESPONDING FIELDS OF TABLE&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;If you have not used that , use it or please send the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2009 03:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360834#M1233923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-29T03:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: error when inserting into a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360835#M1233924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Use INTO CORRESPONDING FIELDS OF TABLE it_itab as Pinaki sujjested, not just INTO TABLE it_itab.&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;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2009 04:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360835#M1233924</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2009-03-29T04:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: error when inserting into a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360836#M1233925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Performance wise its not suggested to use CORRESPONDING FIELDS so better take care of the fields u are selecting into table by having the structure of internal table exactly like the fields u are selecting, in the same order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

types: begin of ty_vbap,
           vbeln  type vbeln,
           posnr type posnr,
          end of ty_vbap.

data: it_vbap type standard table of ty_vbap.

select vbeln posnr into table it_vbap from vbap where ...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2009 04:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360836#M1233925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-29T04:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: error when inserting into a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360837#M1233926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like structure of internal table which you have declared is different than the fields which are getting fetched from Select...Join query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible paste your internal table declaration and select....join query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2009 13:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360837#M1233926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-29T13:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: error when inserting into a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360838#M1233927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check the types of the fields in the declaration of an internal table.Also make sure the sequence of fields in the internal table is similar to the sequence of fields in select query.There might be mismatch in the sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited By tejaswini Khante&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 05:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360838#M1233927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T05:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: error when inserting into a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360839#M1233928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This error comes because of if the int. table whta u definde and the fileds u r selecting is not matchinf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So u can avoid this using,&lt;/P&gt;&lt;P&gt;1. from table Into corresponding fields of ,&lt;/P&gt;&lt;P&gt;or declare a struce of required fileds and itab of that structure &lt;/P&gt;&lt;P&gt;then selct the fileds in the same order from the db table into itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 06:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360839#M1233928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T06:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: error when inserting into a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360840#M1233929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Join on 5 tables , is not a good practice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to avoid it and your problem will be solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 07:28:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360840#M1233929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T07:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: error when inserting into a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360841#M1233930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem usually arise when their is a mis-match in some of the fields used in join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be due to different types in different tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 07:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360841#M1233930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T07:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: error when inserting into a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360842#M1233931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unless you post the SELECT statement and the definition of the internal table, how can you expect specific help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 07:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360842#M1233931</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-03-30T07:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: error when inserting into a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360843#M1233932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Actually join amonmg more than 3 tables is not a good practice.&lt;/P&gt;&lt;P&gt;Try to avoid it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And as a reason of this runtime error I can say that , The structure of the internal table which you are using as a  target and the order of fields which you are fetching from 5 tables must not same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&lt;STRONG&gt;into corresponding fields of&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;internal-table name&amp;gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will cdertainly solve your problem..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 08:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360843#M1233932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T08:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: error when inserting into a internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360844#M1233933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Let us know your select query and structure of internal table, then only we can help you in this.&lt;/P&gt;&lt;P&gt;From your explaination it seems that there are type mismatch between the selected fields and structure of internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 08:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-inserting-into-a-internal-table/m-p/5360844#M1233933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T08:58:44Z</dc:date>
    </item>
  </channel>
</rss>

