<?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: Short dump with a select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212091#M473946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it does help but not if you don't understand what is causing the error in the first place.  I posted here because I was stuck (after using st22).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2007 15:07:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-27T15:07:46Z</dc:date>
    <item>
      <title>Short dump with a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212084#M473939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following select statement (I have also inluded my data statement(s)) and I get a short dump.  The error is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;What happened?                                                                  &lt;/P&gt;&lt;P&gt;    Error in ABAP application program.                                                                                &lt;/P&gt;&lt;P&gt;The current ABAP program "ZPARTNER" had to be terminated because one of the &lt;/P&gt;&lt;P&gt;    statements could not be executed.                                                                                &lt;/P&gt;&lt;P&gt;This is probably due to an error in the ABAP program.                                                                                &lt;/P&gt;&lt;P&gt;Following a SELECT statement, the data read could not be placed in AN       &lt;/P&gt;&lt;P&gt;    the output area.                                                            &lt;/P&gt;&lt;P&gt;    A conversion may have been intended that is not supported by the            &lt;/P&gt;&lt;P&gt;    system, or the output area may be too small.                                                                                &lt;/P&gt;&lt;P&gt;Error analysis                                                                  &lt;/P&gt;&lt;P&gt;    An exception occurred. This exception will be dealt with in more detail     &lt;/P&gt;&lt;P&gt;    below. The exception, assigned to the class 'CX_SY_OPEN_SQL_DB', was not    &lt;/P&gt;&lt;P&gt;     caught, which                                                              &lt;/P&gt;&lt;P&gt;     led to a runtime error. The reason for this exception is:                  &lt;/P&gt;&lt;P&gt;    The data read during a SELECT access could not be inserted into the         &lt;/P&gt;&lt;P&gt;    target field.                                                               &lt;/P&gt;&lt;P&gt;    Either conversion is not supported for the target field's type or the       &lt;/P&gt;&lt;P&gt;    target field is too short to accept the value or the data are not in a      &lt;/P&gt;&lt;P&gt;    form that the target field can accept          &amp;lt;/b&amp;gt;                             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;it_adrc TYPE TABLE OF adrc,
      wa_adrc LIKE LINE OF it_adrc,


SELECT addrnumber name1 street city1 region post_code1 tel_number
  FROM adrc INTO TABLE it_adrc
  FOR ALL ENTRIES IN it_detail
  WHERE addrnumber = it_detail-adrnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 14:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212084#M473939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T14:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212085#M473940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Davis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADRC table contains other fields also in addition to the fields u had mentioned in select statement , so u have to use INTO CORRESPONDING FIELDS OF &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT addrnumber name1 street city1 region post_code1 tel_number&lt;/P&gt;&lt;P&gt;  FROM adrc INTO &amp;lt;b&amp;gt;CORRESPONDING FIELDS OF&amp;lt;/b&amp;gt; TABLE it_adrc&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN it_detail&lt;/P&gt;&lt;P&gt;  WHERE addrnumber = it_detail-adrnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 14:14:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212085#M473940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T14:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212086#M473941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the declaration of it_adrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure all fields you are selecting is there in it_adrc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM adrc INTO corresponding fields of TABLE it_adrc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 14:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212086#M473941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T14:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212087#M473942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh ok, thanks a lot Chandrasekhar!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 14:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212087#M473942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T14:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212088#M473943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Davis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do this way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_adrc TYPE TABLE OF adrc,&lt;/P&gt;&lt;P&gt;      wa_adrc LIKE LINE OF it_adrc,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT addrnumber name1 street city1 region post_code1 tel_number&lt;/P&gt;&lt;P&gt;  FROM adrc INTO &amp;lt;b&amp;gt;CORRESPONDING FIELDS OF&amp;lt;/b&amp;gt;  TABLE it_adrc&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN it_detail&lt;/P&gt;&lt;P&gt;  WHERE addrnumber = it_detail-adrnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 14:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212088#M473943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T14:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212089#M473944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you only need the fields mentioned in the select query, then follow this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ADRC_TYPE,&lt;/P&gt;&lt;P&gt;	ADDRNUMBER LIKE ADRC-ADDRNUMBER,&lt;/P&gt;&lt;P&gt;	NAME1	   LIKE ADRC-NAME1,&lt;/P&gt;&lt;P&gt;	STREET	   LIKE ADRC-STREET,&lt;/P&gt;&lt;P&gt;	CITY	   LIKE ADRC-CITY,&lt;/P&gt;&lt;P&gt;	REGION	   LIKE ADRC-REGION,&lt;/P&gt;&lt;P&gt;	POST_CODE1 LIKE ADRC-POST_CODE1,&lt;/P&gt;&lt;P&gt;	TEL_NUMBER LIKE ADRC-TEL_NUMBER,&lt;/P&gt;&lt;P&gt;       END OF ADRC_TYPE,&lt;/P&gt;&lt;P&gt;       ADRC_T_TYPE TYPE TABLE OF ADRC_TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_ADRC TYPE ADRC_T_TYPE WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT IT_DETAIL[] IS INITIAL.&lt;/P&gt;&lt;P&gt;SELECT addrnumber name1 street city1 region post_code1 tel_number&lt;/P&gt;&lt;P&gt;  FROM adrc INTO TABLE it_adrc&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN it_detail&lt;/P&gt;&lt;P&gt;  WHERE addrnumber = it_detail-adrnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SKJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 14:24:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212089#M473944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T14:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212090#M473945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just please read error carefully and goto st22 you will get help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 15:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212090#M473945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T15:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with a select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212091#M473946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it does help but not if you don't understand what is causing the error in the first place.  I posted here because I was stuck (after using st22).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 15:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-a-select-statement/m-p/2212091#M473946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T15:07:46Z</dc:date>
    </item>
  </channel>
</rss>

