<?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: how can i do selct without using into.... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962413#M1156901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; You can skip the "Into......" line and define the DB table pa0014 in the begining of the program as&lt;/P&gt;&lt;P&gt;&amp;gt; tables: pa0014.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone still follows: The TABLES statement is obsolate in "traditional" ABAP and prohibited in ABAP Objects (even if points were assigned....)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2008 07:46:14 GMT</pubDate>
    <dc:creator>JozsefSzikszai</dc:creator>
    <dc:date>2008-12-11T07:46:14Z</dc:date>
    <item>
      <title>how can i do selct without using into....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962406#M1156894</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;i am writting a selection in order to know if there is a line in the table according to my conditions and i dont want to use into...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am writting &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single *&lt;/P&gt;&lt;P&gt;from pa0014&lt;/P&gt;&lt;P&gt;into wa_pa0014     &amp;lt;--- i dont want to this line&lt;/P&gt;&lt;P&gt;where endda......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq o .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 13:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962406#M1156894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T13:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: how can i do selct without using into....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962407#M1156895</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 the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Tables : MARA.

select single * from MARA where MATNR = '1234'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 13:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962407#M1156895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T13:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: how can i do selct without using into....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962408#M1156896</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;You can skip the "Into......" line and define the DB table pa0014 in the begining of the program as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: pa0014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;vivekanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 13:27:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962408#M1156896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T13:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: how can i do selct without using into....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962409#M1156897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi you can use it ...if you want to get all the fields from the table ...the table name it self creates a work area .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 13:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962409#M1156897</guid>
      <dc:creator>former_member203501</dc:creator>
      <dc:date>2008-12-10T13:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: how can i do selct without using into....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962410#M1156898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is only possible when you define &lt;/P&gt;&lt;P&gt;TABLES: PA0014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not allowed in ABAP OO. &lt;/P&gt;&lt;P&gt;In fact &lt;/P&gt;&lt;P&gt;SELECT * FROM PA0014 WHERE....&lt;/P&gt;&lt;P&gt;is the same as&lt;/P&gt;&lt;P&gt;SELECT * INTO PA0014 FROM PA0014 WHERE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it is a workarea, the same like your WA_PA0014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the problem with the INTO WA_PA0014 part ? YOu don't have to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 13:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962410#M1156898</guid>
      <dc:creator>h_senden2</dc:creator>
      <dc:date>2008-12-10T13:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: how can i do selct without using into....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962411#M1156899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you really don't need that line, only want to know if it exists or not, than you should use SELECT COUNT( * )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT COUNT( * )
FROM ...
WHERE ...
IF sy-subrc eq 0.
==&amp;gt; line exists
ELSE.
==&amp;gt; line does not exist
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(additionally sy-dbcnt will tell how many such lines exist)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 13:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962411#M1156899</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-12-10T13:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: how can i do selct without using into....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962412#M1156900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can use SELECT COUNT(*) FROM ... if you just want to know the number of rows matching the WHERE-condition.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 13:34:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962412#M1156900</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-12-10T13:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: how can i do selct without using into....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962413#M1156901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; You can skip the "Into......" line and define the DB table pa0014 in the begining of the program as&lt;/P&gt;&lt;P&gt;&amp;gt; tables: pa0014.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone still follows: The TABLES statement is obsolate in "traditional" ABAP and prohibited in ABAP Objects (even if points were assigned....)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 07:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962413#M1156901</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-12-11T07:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: how can i do selct without using into....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962414#M1156902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; If anyone still follows: The TABLES statement is obsolate in "traditional" ABAP and prohibited in ABAP Objects (even if points were assigned....)&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition: what sense does it make to replace the into clause in that way? The only affect is that i cant see it, but its still there, the data is still transfered, not to the explicit given work area but to the implicit assigned work area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 08:01:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-do-selct-without-using-into/m-p/4962414#M1156902</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-12-11T08:01:43Z</dc:date>
    </item>
  </channel>
</rss>

