<?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/3017775#M713260</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;Just check out there might be a endselect statement, in between select &amp;amp; endselect statement there might be some statement getting executed to move the data to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2007 16:38:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-31T16:38:38Z</dc:date>
    <item>
      <title>select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/3017772#M713257</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 wont to now what is doing this select because it didn't have into &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


   SELECT SINGLE * 
   FROM tadir
    WHERE pgmid = 'R3TR'
     AND object = 'PROG'
     AND obj_name = tstc-pgmna.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 16:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/3017772#M713257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T16:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/3017773#M713258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This select statement places the d/b table entry in the TABLES work area declared using the &amp;lt;b&amp;gt;TABLES: TADIR&amp;lt;/b&amp;gt; statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 16:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/3017773#M713258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T16:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/3017774#M713259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will select the data from the TADIR into TADIR workarea ... you can access the data like TADIR-PGMID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 16:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/3017774#M713259</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-10-31T16:34: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/3017775#M713260</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;Just check out there might be a endselect statement, in between select &amp;amp; endselect statement there might be some statement getting executed to move the data to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 16:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/3017775#M713260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T16:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/3017776#M713261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This type of SELECT statements are helpful in validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example consider u have parameter or select-options statement for WERKS which takes input from user. In this case, u want to validate the input value. In such cases, we can use SELECT statement without INTO clause......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example.: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS :  p_werks TYPE marc-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * &lt;/P&gt;&lt;P&gt;              FROM t001w&lt;/P&gt;&lt;P&gt;              WHERE werks = p_werks.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE 'Invalid Plant' TYPE 'I'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this, we can validate user input for plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Harimanjesh AN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 17:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/3017776#M713261</guid>
      <dc:creator>harimanjesh_an</dc:creator>
      <dc:date>2007-10-31T17:33: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/3017777#M713262</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;SELECT SINGLE returns just one row from a table and store it in a working area, so thats why you don't need an ENDSELECT...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if you have a definition like &lt;/P&gt;&lt;P&gt;         TABLES: tadir.&lt;/P&gt;&lt;P&gt;It define a waorking area for table 'tadir' with the same name... and that's why you don't need an INTO clause in your SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 17:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/3017777#M713262</guid>
      <dc:creator>former_member656234</dc:creator>
      <dc:date>2007-10-31T17:41: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/3017778#M713263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It defines a Header area internally (not Work Area) and you can make use of TADIR-&amp;lt;field1&amp;gt; to acces the fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 20:50:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/3017778#M713263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T20:50:24Z</dc:date>
    </item>
  </channel>
</rss>

