<?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: Query on fetching data from  table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985961#M73002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yamini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Humm it looks ok in principle...try putting break points before each select and then as you single step through the program keep an eye on the contents of itab2-original_input1, itab2-original_input2, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't look like that there are any conversion routine errors...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how the debugging goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2005 05:48:41 GMT</pubDate>
    <dc:creator>former_member221770</dc:creator>
    <dc:date>2005-09-06T05:48:41Z</dc:date>
    <item>
      <title>Query on fetching data from  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985957#M72998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;   My requirement is i have to fetch data from qasr table based on some condition .&lt;/P&gt;&lt;P&gt;  when i tried to exexute the report the data is fetched wrongly.&lt;/P&gt;&lt;P&gt;  eg :&lt;/P&gt;&lt;P&gt;  select x into itab-x frm qasr where y = y.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;The qasr table contains only value 1,2,3,4 and 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i executed the query the value retrived was 6,7,8,9,0 which is not there in the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried with all the logic. This is related to QM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly suggest me a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Yamini.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2005 05:22:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985957#M72998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-06T05:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Query on fetching data from  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985958#M72999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yamini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is going to sound silly, but check the contents of QASR via SE16. Do you only see 1, 2, 3, 4, 5?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also could you please paste your select query so we can see what you are doing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2005 05:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985958#M72999</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-09-06T05:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Query on fetching data from  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985959#M73000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I have declared my iternal table .sorry the retival should be frm qase table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My query for retrival of data is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT SINGLE&lt;/P&gt;&lt;P&gt;         kurztext steuerkz&lt;/P&gt;&lt;P&gt;         INTO (itab2-kurztext,itab2-steuerkz)&lt;/P&gt;&lt;P&gt;              FROM qamv&lt;/P&gt;&lt;P&gt;              WHERE prueflos = prueflos AND qpmk_werks = werk AND merknr = itab2-merknr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab2-steuerkz&lt;EM&gt;8(1) Eq '&lt;/EM&gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   MOVE itab-probenr TO itab2-probenr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE&lt;/P&gt;&lt;P&gt;           original_input&lt;/P&gt;&lt;P&gt;           INTO itab2-original_input1&lt;/P&gt;&lt;P&gt;           FROM qase&lt;/P&gt;&lt;P&gt;           WHERE merknr = itab2-merknr AND&lt;/P&gt;&lt;P&gt;                 probenr = itab2-probenr AND&lt;/P&gt;&lt;P&gt;                 detailerg = 1 AND&lt;/P&gt;&lt;P&gt;                 stuecknr = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE&lt;/P&gt;&lt;P&gt;           original_input&lt;/P&gt;&lt;P&gt;           INTO itab2-original_input2&lt;/P&gt;&lt;P&gt;           FROM qase&lt;/P&gt;&lt;P&gt;           WHERE merknr = itab2-merknr AND&lt;/P&gt;&lt;P&gt;                 probenr = itab2-probenr AND&lt;/P&gt;&lt;P&gt;                 detailerg = 2 AND&lt;/P&gt;&lt;P&gt;                 stuecknr = 2.&lt;/P&gt;&lt;P&gt;so on....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i checked with qase table  the value of orginal_input was like 1,2,3,4,5  &lt;/P&gt;&lt;P&gt;but when i executed the query the value retrived was 6,7,8,9,0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i donno why it is retriving so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Yamini.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2005 05:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985959#M73000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-06T05:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Query on fetching data from  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985960#M73001</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 where condition what are fields you're using and check the field has any conversion exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheeres,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2005 05:40:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985960#M73001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-06T05:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Query on fetching data from  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985961#M73002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yamini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Humm it looks ok in principle...try putting break points before each select and then as you single step through the program keep an eye on the contents of itab2-original_input1, itab2-original_input2, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't look like that there are any conversion routine errors...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how the debugging goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2005 05:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985961#M73002</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-09-06T05:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Query on fetching data from  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985962#M73003</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 all the field types which is corrctly defined or not.  for ex instead of numc may be defined as integer like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2005 06:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985962#M73003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-06T06:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Query on fetching data from  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985963#M73004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have tried debugging also. My declaration of internal table is similar to the the table field. even then i am facing this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Yamini.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2005 06:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985963#M73004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-06T06:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Query on fetching data from  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985964#M73005</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 whether your select single statement fetches exact one record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example your where conditon fetches more than one record, then the output will be any one of the record.  If this is a problem you add all the key fields in the where condition else remove the select single and use into table for all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2005 07:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985964#M73005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-06T07:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Query on fetching data from  table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985965#M73006</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;Include VORGLFNR also in the where condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2005 07:14:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-fetching-data-from-table/m-p/985965#M73006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-06T07:14:43Z</dc:date>
    </item>
  </channel>
</rss>

