<?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: Reg : Select  &amp; Endselect in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728792#M633326</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;Better to use the following code instead of select-endselect....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr kwmeng werks lgort&lt;/P&gt;&lt;P&gt;UP TO l_index ROWS &lt;/P&gt;&lt;P&gt;FROM vbap&lt;/P&gt;&lt;P&gt;INTO TABLE tp_vbap&lt;/P&gt;&lt;P&gt;WHERE vbeln = com_kbv1-vbeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and perform wise also is not good, if u check in debugg mode it will go short dump...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if it is use answer reward me a points....&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2007 12:16:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-12T12:16:09Z</dc:date>
    <item>
      <title>Reg : Select  &amp; Endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728785#M633319</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;IM Having doubt in Select  &amp;amp; Endselect Query .abt this Code .&lt;/P&gt;&lt;P&gt;  SELECT matnr  kwmeng  werks  lgort&lt;/P&gt;&lt;P&gt;         UP TO l_index ROWS                """"l_index contains 2 rows &lt;/P&gt;&lt;P&gt;         FROM vbap&lt;/P&gt;&lt;P&gt;         INTO tp_vbap&lt;/P&gt;&lt;P&gt;         WHERE  vbeln  = com_kbv1-vbeln.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i try 2 execute this Query , it has to read 2 times as L_index = 2.&lt;/P&gt;&lt;P&gt;But it is Reading for only one time.&lt;/P&gt;&lt;P&gt;Here we have 2 use only  Select  &amp;amp; Endselect Not Internal table.&lt;/P&gt;&lt;P&gt;after reading this 2 entries , it wil go for further Processing .&lt;/P&gt;&lt;P&gt;Please provide me a proper solutions for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanq Very Much !!&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Murthy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728785#M633319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T10:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Select  &amp; Endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728786#M633320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why the heck do you have to use select endselect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cant you just make an array fetchj in an internal table and then loop over this one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides i cant imagine that a select endselect statement cooperates with the up to 2 rows statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Florian Kemmer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728786#M633320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T10:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Select  &amp; Endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728787#M633321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;what is tp_vbap.?  declared as...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728787#M633321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T10:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Select  &amp; Endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728788#M633322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narayana..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just change the Code using Array fetch like this.. it will work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:  ENDSELECT not needed here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr kwmeng werks lgort&lt;/P&gt;&lt;P&gt;UP TO l_index ROWS &lt;/P&gt;&lt;P&gt;FROM vbap&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;INTO TABLE tp_vbap&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE vbeln = com_kbv1-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;reward if Helpful.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728788#M633322</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-12T10:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Select  &amp; Endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728789#M633323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NArayana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u might be declared ur internal&amp;lt;b&amp;gt; table with header line&amp;lt;/b&amp;gt;...&lt;/P&gt;&lt;P&gt;so remove that header line or use   &amp;lt;b&amp;gt;INTO table tp_vbap&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:33:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728789#M633323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T10:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Select  &amp; Endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728790#M633324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select matnr kwmeng werks lgort&lt;/P&gt;&lt;P&gt;from vbap&lt;/P&gt;&lt;P&gt;into tp_vbap&lt;/P&gt;&lt;P&gt;where vbeln = com_kbv1-vbeln.&lt;/P&gt;&lt;P&gt;if sy-tabix = 2.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append tp_vbap.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728790#M633324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T10:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Select  &amp; Endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728791#M633325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi narayana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 You can get 2rows or 3 rows according to ur requirement .&lt;/P&gt;&lt;P&gt;But u have to keep APPEND there in between select and endselect statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz make a look in foolowing code............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTESS.&lt;/P&gt;&lt;P&gt; tables: kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_kunnr for kna1-kunnr.&lt;/P&gt;&lt;P&gt; types: begin of Ty_kna1,&lt;/P&gt;&lt;P&gt;       kunnr type kna1-kunnr,&lt;/P&gt;&lt;P&gt;       name1 type kna1-kunnr,&lt;/P&gt;&lt;P&gt;       ort01 type kna1-ort01,&lt;/P&gt;&lt;P&gt;       end of ty_kna1,&lt;/P&gt;&lt;P&gt;       tt_kna1 type standard table of ty_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Data: wa type ty_kna1,&lt;/P&gt;&lt;P&gt;       IT_kna1 type tt_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select kunnr name1 ort01 up to 10 rows from kna1 into wa&lt;/P&gt;&lt;P&gt;        where kunnr in s_kunnr.&lt;/P&gt;&lt;P&gt;    append wa to it_kna1.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it_kna1 into wa.&lt;/P&gt;&lt;P&gt;  write:/ wa-kunnr,wa-name1,wa-ort01.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it useful to u.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 11:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728791#M633325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T11:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Select  &amp; Endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728792#M633326</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;Better to use the following code instead of select-endselect....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr kwmeng werks lgort&lt;/P&gt;&lt;P&gt;UP TO l_index ROWS &lt;/P&gt;&lt;P&gt;FROM vbap&lt;/P&gt;&lt;P&gt;INTO TABLE tp_vbap&lt;/P&gt;&lt;P&gt;WHERE vbeln = com_kbv1-vbeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and perform wise also is not good, if u check in debugg mode it will go short dump...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if it is use answer reward me a points....&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 12:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-endselect/m-p/2728792#M633326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T12:16:09Z</dc:date>
    </item>
  </channel>
</rss>

