<?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 regarding select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328070#M797166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to fetch 5 records from standard table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that table ,for these 5 fields some records are repetetive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i fetch those recordds by using select query,only the first record is only coming,n remaining repetetive records are not coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to fetch all the reocrds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: in std table 121 records are there,after fetching those data into internal table,only 68 records are coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz suggest me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2008 06:45:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-04T06:45:30Z</dc:date>
    <item>
      <title>regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328070#M797166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to fetch 5 records from standard table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that table ,for these 5 fields some records are repetetive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i fetch those recordds by using select query,only the first record is only coming,n remaining repetetive records are not coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to fetch all the reocrds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: in std table 121 records are there,after fetching those data into internal table,only 68 records are coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz suggest me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 06:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328070#M797166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T06:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328071#M797167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the addition... [DISTINCT] &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;Effect &lt;/P&gt;&lt;P&gt;If SINGLE is not specified and if columns does not contain only aggregate expressions, the resulting set has multiple lines. All database lines that are selected by the remaining additions of the SELECT command are included in the resulting list. If the ORDER BY addition is not used, the order of the lines in the resulting list is not defined and, if the same SELECT command is executed multiple times, the order may be different each time. A data object specified after INTO can be an internal table and the APPENDING addition can be used. If no internal table is specified after INTO or APPENDING, the SELECT command triggers a loop that has to be closed using ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If multiple lines are read without SINGLE, the DISTINCT addition can be used to exclude duplicate lines from the resulting list. If DISTINCT is used, the SELECT command circumvents SAP buffering. DISTINCT cannot be used in the following situations: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a column specified in columns has the type STRING, RAWSTRING, LCHAR or LRAW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the system tries to access pool or cluster tables and single columns are specified in columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;When specifying DISTINCT, note that this requires the execution of sort operations in the database system, and the SELECT statement therefore bypasses the SAP buffer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 06:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328071#M797167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T06:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328072#M797168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;based on ur select qurey it select the data from database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selct &amp;lt;fieldlist&amp;gt;&lt;/P&gt;&lt;P&gt;from &amp;lt;dbtable&amp;gt;&lt;/P&gt;&lt;P&gt;into table &amp;lt;itab name&amp;gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;condition&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 06:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328072#M797168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T06:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328073#M797169</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;Use select DISTINCT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will to the job for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &amp;lt;OTHER FIELDS FROM BSIS&amp;gt; DISTINCT(ZOUNR) FROM BSIS&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;CONDITION&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BEST WAY TO DO SO....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT INT by ZUONR.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES from int COMPARING ZUONR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD if USEFUL&lt;/P&gt;&lt;P&gt;GAURAV J.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: GAURAV on Feb 4, 2008 7:53 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 06:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328073#M797169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T06:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328074#M797170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should try this instead of your query&lt;/P&gt;&lt;P&gt;it will select all records from dbtab to your itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;field&amp;gt;&lt;/P&gt;&lt;P&gt;from &amp;lt;dbtab name&amp;gt;&lt;/P&gt;&lt;P&gt;into table &amp;lt;itab name&amp;gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;condition&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this statement is really good performance wise&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keep rockin&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 06:55:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328074#M797170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T06:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328075#M797171</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;What is ur Standard table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use select * from tablename...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the unique key field in that standard table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it will select all the records, incase same record also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;bgan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 07:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328075#M797171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T07:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328076#M797172</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 think it is because you are not selecting the key fields in your selecton. To solve this problem make sure that you are selecting all the key fields( evenif these fields  not requred for you also) or try to select all the fields ie, select *.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie,&lt;/P&gt;&lt;P&gt;Select * from &amp;lt;DB&amp;gt; into correpondin fields of table &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select &amp;lt;ALL key fields&amp;gt; &amp;lt; other required fields&amp;gt;  from &amp;lt;DB&amp;gt; into correpondin fields of table &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that your ITAB is compatable to accomaodate all the fields including key fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 07:17:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328076#M797172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T07:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328077#M797173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all,&lt;/P&gt;&lt;P&gt;i checked all of these suggestions,but i didnt get,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz suggest me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 07:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328077#M797173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T07:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328078#M797174</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 you paste ur code here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 07:36:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328078#M797174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T07:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328079#M797175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz check this ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur table find primary key field&lt;/P&gt;&lt;P&gt;then use &lt;/P&gt;&lt;P&gt;select &amp;lt;field&amp;gt;&lt;/P&gt;&lt;P&gt;from &amp;lt;dbtab name&amp;gt;&lt;/P&gt;&lt;P&gt;into table &amp;lt;itab name&amp;gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;primary key field &amp;gt; in parameters [or]&lt;/P&gt;&lt;P&gt;select-options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 07:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3328079#M797175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T07:38:57Z</dc:date>
    </item>
  </channel>
</rss>

