<?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 single in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727523#M1109749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use work area instead of table in select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aparna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Nov 2008 09:04:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-17T09:04:39Z</dc:date>
    <item>
      <title>select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727522#M1109748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts, &lt;/P&gt;&lt;P&gt;select  single  matnr netpr  into table it_ekpo from ekpo where matnr = '1234' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its coming error can u correct me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 09:02:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727522#M1109748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T09:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727523#M1109749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use work area instead of table in select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aparna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 09:04:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727523#M1109749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T09:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727524#M1109750</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;Do not use Select Single it you want a set of records, just use Select matnr etc into table ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select single statment will give u one record (workarea) and not table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 09:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727524#M1109750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T09:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727525#M1109751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ravi&lt;/P&gt;&lt;P&gt;  you have selected only single field i'e matnr , but in target you have mentioned it_ekpo that is your internal table...&lt;/P&gt;&lt;P&gt;   you have to specify the field ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can either declare a variable or pass toit_ekpo-matnr field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single matnr into it_ekpo-matnr like this..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 09:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727525#M1109751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T09:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727526#M1109752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u cant use select single for retreiving multiple records, here is the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_material,&lt;/P&gt;&lt;P&gt;           matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;           matkl like  mara-matkl,&lt;/P&gt;&lt;P&gt;        end of ty_material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_material type ty_material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single matnr matkl from mara into wa_material where matnr = '1234'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the above code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 09:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727526#M1109752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T09:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727527#M1109753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of fields you are selecting should be equal to the number of fields in your internal table into which you are selecting the data or else you can also use INTO CORRESSPONDING FIELDS OF table ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details on Select Single.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://www.sap-img.com/abap/difference-between-select-single-and-select-upto-one-rows.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see performance tuning for select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Select Statement|http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 09:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727527#M1109753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T09:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727528#M1109754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please use as follows and revert back if it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select single *
into table it_ekpo 
from ekpo 
where matnr = '1234' .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Winnie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 09:14:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727528#M1109754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T09:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727529#M1109755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Select single statment into table is not required that is main problem for your error &lt;/P&gt;&lt;P&gt;remove that table option then it works fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single matnr netpr&lt;/P&gt;&lt;P&gt;into it_ekpo &lt;/P&gt;&lt;P&gt;from ekpo &lt;/P&gt;&lt;P&gt;where matnr = '1234' .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 09:19:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727529#M1109755</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2008-11-17T09:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727530#M1109756</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  the following code it will solve ur problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_ekpo like line of it_ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single matnr netpr into corresponding fileds of wa_ekpo from ekpo where matnr = '1234' .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 09:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727530#M1109756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T09:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727531#M1109757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If any of the above solutions is not working, then let us know what is the error you are getting along with your code to declare the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 09:32:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727531#M1109757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T09:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727532#M1109758</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;When we use single keyword in select statement..we can not use table keyword in it.&lt;/P&gt;&lt;P&gt;It will give you an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single matnr netpr &lt;/P&gt;&lt;P&gt;into it_ekpo &lt;/P&gt;&lt;P&gt;from ekpo where matnr = '1234' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back in case of any query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 09:56:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4727532#M1109758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T09:56:32Z</dc:date>
    </item>
  </channel>
</rss>

