<?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: Runtime error while data retrieval in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039351#M1171857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ubhaka, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error occured due to the data type or the length of the data type is insuffeciant or it  is not compatable.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT will be hard to provide any soultion without having a look at your code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you paste your code...so that we can check and suggest what can be done to fix it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kittu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jan 2009 06:32:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-14T06:32:11Z</dc:date>
    <item>
      <title>Runtime error while data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039346#M1171852</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 want to fetch some data from a custom table, for which I have made an internal table taking all those fields which are needed in the correct order and , to avoid data type conflict I have made the non-character fields to character ones i.e.&lt;/P&gt;&lt;P&gt;    for DATS(8)  :- CHAR(10), &lt;/P&gt;&lt;P&gt;        TIMS(6) :-CHAR(8),&lt;/P&gt;&lt;P&gt;        QUAN(length-13, dec- 3)   :- CHAR(17)&lt;/P&gt;&lt;P&gt;        CURR( length-15, dec- 2)  :- CHAR(18)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still program gives Runtime Error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anybody suggest a solution ?&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt; How can we use developer trace  ST11 for this   ? Any procedure how to use ST11?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanxxx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 06:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039346#M1171852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T06:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039347#M1171853</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;Can u tell me what error u got?&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;Srilakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 06:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039347#M1171853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T06:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039348#M1171854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Error in ABAP application program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An exception occurred. This exception is dealt with in more detail below&lt;/P&gt;&lt;P&gt;. The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was&lt;/P&gt;&lt;P&gt; neither&lt;/P&gt;&lt;P&gt;caught nor passed along using a RAISING clause, in the procedure&lt;/P&gt;&lt;P&gt; "GET_DATA_CLOSED_ITEMS" "(FORM)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for the 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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I hv already checked the fields of int table and those are fine .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls revert me...on the same.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 06:17:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039348#M1171854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T06:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039349#M1171855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,Ubhaka  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Past your code for better understanding about your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 06:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039349#M1171855</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-01-14T06:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039350#M1171856</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 dont know why u r converting those fields to char type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to do conversion after your select query.&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;Srilakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 06:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039350#M1171856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T06:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039351#M1171857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ubhaka, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error occured due to the data type or the length of the data type is insuffeciant or it  is not compatable.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT will be hard to provide any soultion without having a look at your code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you paste your code...so that we can check and suggest what can be done to fix it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kittu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 06:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039351#M1171857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T06:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039352#M1171858</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;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to fetch some data from a custom table, for which I have made an internal table taking all those fields which are needed in the correct order and , to avoid data type conflict I have made the non-character fields to character ones i.e.&lt;/P&gt;&lt;P&gt;for DATS(8) :- CHAR(10), &lt;/P&gt;&lt;P&gt;TIMS(6) :-CHAR(8),&lt;/P&gt;&lt;P&gt;QUAN(length-13, dec- 3) :- CHAR(17)&lt;/P&gt;&lt;P&gt;CURR( length-15, dec- 2) :- CHAR(18)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where you have committed the mistake, friend !!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During data selection you cannot assign DATS, TIMS, QUAN &amp;amp; CURR field to character fields as you have done. It will lead to runtime error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please change the declaration of your internal table, it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 06:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039352#M1171858</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-01-14T06:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039353#M1171859</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;In the following code where i am using char(10) for date is giving the error,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: pa0001.

TYPES: BEGIN OF t_pa0001,
  pernr like pa0001-pernr,
  begda(10),
  endda(10),
  END OF t_pa0001.

data: it_pa0001 type STANDARD TABLE OF t_pa0001 WITH HEADER LINE,
      wa_it_pa0001 TYPE t_pa0001.


SELECT pernr begda endda from pa0001
  into CORRESPONDING FIELDS OF TABLE it_pa0001
  WHERE endda = '99991231'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in the bellow code where i am using sy-datum or like pa0001-begda, pa0001-endda, it is working fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: pa0001.

TYPES: BEGIN OF t_pa0001,
  pernr like pa0001-pernr,
  begda like sy-datum,
  endda like pa0001-endda,
  END OF t_pa0001.

data: it_pa0001 type STANDARD TABLE OF t_pa0001 WITH HEADER LINE,
      wa_it_pa0001 TYPE t_pa0001.


SELECT pernr begda endda from pa0001
  into CORRESPONDING FIELDS OF TABLE it_pa0001
  WHERE endda = '99991231'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, Please Change your code Accordingly,&lt;/P&gt;&lt;P&gt;Replay if any Issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Faisal Altaf on Jan 14, 2009 11:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 06:50:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039353#M1171859</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-01-14T06:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039354#M1171860</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;Just use the same data types as in your z-table and do your retrieval. Do the conversion within your program.&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;Dev.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 07:46:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-data-retrieval/m-p/5039354#M1171860</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2009-01-14T07:46:30Z</dc:date>
    </item>
  </channel>
</rss>

