<?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 - endselect in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect/m-p/4663198#M1097040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my advise is avoid select and endselect. select all records and loop the table and write.&lt;/P&gt;&lt;P&gt;Below is what you want.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select HASH
from UPS_HASH
INTO t2.       "remove table
*
write t2-hash.
*
Endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2008 17:18:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-14T17:18:11Z</dc:date>
    <item>
      <title>Select - endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect/m-p/4663197#M1097039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to create select -endselect construction and print every processed record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select HASH&lt;/P&gt;&lt;P&gt;from UPS_HASH&lt;/P&gt;&lt;P&gt;INTO table t2.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt; write t2-hash.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the system generates the following error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the statement Endselect , there is no open structure introduced by select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 17:15:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect/m-p/4663197#M1097039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T17:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select - endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect/m-p/4663198#M1097040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my advise is avoid select and endselect. select all records and loop the table and write.&lt;/P&gt;&lt;P&gt;Below is what you want.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select HASH
from UPS_HASH
INTO t2.       "remove table
*
write t2-hash.
*
Endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 17:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect/m-p/4663198#M1097040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T17:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select - endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect/m-p/4663199#M1097041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select HASH&lt;/P&gt;&lt;P&gt;from UPS_HASH&lt;/P&gt;&lt;P&gt;INTO &lt;STRONG&gt;table&lt;/STRONG&gt; t2.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;write t2-hash.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Endselect.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remove your table statement from above, it is causing it to become an array fetch which doesnt need End Select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On another note, array fetch is much better. if you use that, do a loop on your table T2, and write t2-hash within the loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 17:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect/m-p/4663199#M1097041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T17:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select - endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect/m-p/4663200#M1097042</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 there should be into table only into....&lt;/P&gt;&lt;P&gt;Check it out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;bharani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 17:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect/m-p/4663200#M1097042</guid>
      <dc:creator>BH2408</dc:creator>
      <dc:date>2008-10-14T17:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select - endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect/m-p/4663201#M1097043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of ti_ups_hash occurs 0,
            hash like ups_hash-hash,
        end of ti_ups_hash.

select HASH
into corresponding fields of table ti_ups_hash
from UPS_HASH.

loop at ti_ups_hash.
write ti_ups_hash-hash

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 17:20:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect/m-p/4663201#M1097043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T17:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select - endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect/m-p/4663202#M1097044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Comandante,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have not written the correct syntax. Please see the below correct syntax Table should not be used there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select HASH
from UPS_HASH
INTO  t2.
*
write t2-hash.
*
Endselect.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Instead of this why dont you try with the internal table like below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select HASH
from UPS_HASH
INTO table t2.
loop at t2.
write t2-hash.
  
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will increase the performance aswell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chidanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 18:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect/m-p/4663202#M1097044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T18:19:59Z</dc:date>
    </item>
  </channel>
</rss>

