<?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: Select Query Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/7121694#M1511233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you can see from the replies, this is very basic, please try solving things yourself before asking, the learning curve will be much steeper.&lt;/P&gt;&lt;P&gt;For problems with SAP standard code visit the SAP Support Portal.&lt;/P&gt;&lt;P&gt;Thread locked.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jun 2010 14:41:55 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2010-06-29T14:41:55Z</dc:date>
    <item>
      <title>Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/7121691#M1511230</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;SELECT mast~matnr&lt;/P&gt;&lt;P&gt;      INTO gw_mat-matnr&lt;/P&gt;&lt;P&gt;      FROM  mast&lt;/P&gt;&lt;P&gt;       INNER JOIN stko&lt;/P&gt;&lt;P&gt;            ON  mast&lt;SUB&gt;stlnr = stko&lt;/SUB&gt;stlnr&lt;/P&gt;&lt;P&gt;            AND mast&lt;SUB&gt;stlal = stko&lt;/SUB&gt;stlal&lt;/P&gt;&lt;P&gt;             UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;             WHERE  mast~matnr  =  gw_mat-matnr&lt;/P&gt;&lt;P&gt;               AND  mast~werks  =  gw_mat-werks&lt;/P&gt;&lt;P&gt;               AND  ( mast&lt;SUB&gt;stlan = 'Y' or mast&lt;/SUB&gt;stlan = '1')&lt;/P&gt;&lt;P&gt;               AND  stko~stlty  =  'M'&lt;/P&gt;&lt;P&gt;               AND  stko~loekz  =  space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this query is fetching only one row . In table MAST 2 rows are there for the field mast-stlan (i.e) for 'Y' AND '1'. So more than  one rows has to be filled in gw_mat-matnr that is my requirement without using inernal table. Because gw_mat-matnr is used in many places and also this is a standard program. please suggest me to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;R.vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 11:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/7121691#M1511230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-29T11:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/7121692#M1511231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the select query, when you use UP TO 1 ROWS, only one row will be fetched. Thats the reason. Also gw_mat looks like a work area and not a internal table. I dont understand how you can expect two records to be fetched into a  work area or a structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 11:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/7121692#M1511231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-29T11:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/7121693#M1511232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;/P&gt;&lt;P&gt;you have used UP TO 1 ROWS...which means it will selet only one row as you mentioned 1..&lt;/P&gt;&lt;P&gt;Please remove that stmt and check...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 12:38:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/7121693#M1511232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-29T12:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/7121694#M1511233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you can see from the replies, this is very basic, please try solving things yourself before asking, the learning curve will be much steeper.&lt;/P&gt;&lt;P&gt;For problems with SAP standard code visit the SAP Support Portal.&lt;/P&gt;&lt;P&gt;Thread locked.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 14:41:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/7121694#M1511233</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-06-29T14:41:55Z</dc:date>
    </item>
  </channel>
</rss>

