<?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 statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818148#M659077</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;&lt;/P&gt;&lt;P&gt;you are not using single in this statement because of that it needs it_table to store data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write query as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single ebeln ebelp from ekpo where ebeln = user_entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2007 12:00:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-26T12:00:51Z</dc:date>
    <item>
      <title>select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818142#M659071</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;  without using the INTO clause how to write a select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln ebelp from ekpo  where ebeln = user given ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it gives an error message that i have to use into clause.&lt;/P&gt;&lt;P&gt;Is there any other way to go wright with the above select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phyrose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 11:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818142#M659071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T11:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818143#M659072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi camila,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U r writing Abap code for fetching ebeln and ebelp from ekpo.&lt;/P&gt;&lt;P&gt;Then u have to store it in an internal table.&lt;/P&gt;&lt;P&gt;U cannot go ahead without using INTO clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln ebelp from ekpo into itab where ebeln = user given ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Pls reward if helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 11:47:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818143#M659072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T11:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818144#M659073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;         Use single in this query n check and use the table which is defined into tables as in INTO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give point if helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        vikrant shukla1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 11:49:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818144#M659073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T11:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818145#M659074</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;u have to do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from ekpo where ebeln = user given ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if u find useful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 11:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818145#M659074</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-09-26T11:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818146#M659075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phyrose , &lt;/P&gt;&lt;P&gt;  If you are specifying the field names then you will have to use into clause , since you dont want to use into clause then you select all the fields from the table using select *.&lt;/P&gt;&lt;P&gt;here is an sample&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;select single  * from ekpo where ebeln = v_ebeln.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 11:53:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818146#M659075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T11:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818147#M659076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   INsted of INTO clause u can go for APPENDING it will append the data into an internal table it_mara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                          select matnr&lt;/P&gt;&lt;P&gt;                                    werks&lt;/P&gt;&lt;P&gt;                                    from marc&lt;/P&gt;&lt;P&gt;                                    appending table it_mara&lt;/P&gt;&lt;P&gt;                                    up to 10 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manikumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 11:56:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818147#M659076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T11:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818148#M659077</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;&lt;/P&gt;&lt;P&gt;you are not using single in this statement because of that it needs it_table to store data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write query as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single ebeln ebelp from ekpo where ebeln = user_entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 12:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818148#M659077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T12:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818149#M659078</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 suppose that the fllowing statement cannot be used in SAP ECC 6.0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single ebeln ebelp from ekpo where ebeln = user_entry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAP ECC 6.0, it is mandatory to specify &amp;lt;b&amp;gt;into &amp;lt;/b&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 12:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818149#M659078</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-09-26T12:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818150#M659079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u don't want INTO definitely u can try with the following syntax:&lt;/P&gt;&lt;P&gt;select .... from ...&lt;/P&gt;&lt;P&gt;   &amp;lt;some abap code here&amp;gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's a kind of loop that each pass is processed for each record returned by select&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 14:09:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818150#M659079</guid>
      <dc:creator>Maciej_DomagaBa</dc:creator>
      <dc:date>2007-09-26T14:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818151#M659080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi camila,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    go throuth this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from vbak where vbeln = user given vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if u want to display the data i.e vbeln u should use internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF g_t_itab OCCURS 0,&lt;/P&gt;&lt;P&gt;        ebeln LIKE ekpo-ebeln,&lt;/P&gt;&lt;P&gt;        ebelp LIKE ekpo-ebelp,&lt;/P&gt;&lt;P&gt;        END OF g_t_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ebeln ebelp FROM ekpo INTO TABLE g_t_itab WHERE ebeln = '4215712'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT g_t_itab.&lt;/P&gt;&lt;P&gt;  WRITE:/ g_t_itab-ebeln,&lt;/P&gt;&lt;P&gt;          g_t_itab-ebelp.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;please reward points if helpfull.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;radhika kolluru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 06:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2818151#M659080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T06:46:26Z</dc:date>
    </item>
  </channel>
</rss>

