<?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: problem with select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761950#M905051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you can do that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2008 11:34:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-22T11:34:05Z</dc:date>
    <item>
      <title>problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761949#M905050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi see the below select statement&lt;/P&gt;&lt;P&gt;  select    * from  ce4e001 where bukrs eq s_bukrs-low.&lt;/P&gt;&lt;P&gt;    check s_kndnr.&lt;/P&gt;&lt;P&gt;    check s_prctr.&lt;/P&gt;&lt;P&gt;    move-corresponding ce4e001 to v_ce4e001.&lt;/P&gt;&lt;P&gt;    append v_ce4e001.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i replace this select statement with&lt;/P&gt;&lt;P&gt;select * from ce4e001 into corresponding fields of table  v_ce4e001 where bukrs eq s_bukrs-low&lt;/P&gt;&lt;P&gt;                and kudnr in s_kndnr&lt;/P&gt;&lt;P&gt;                amd s_prctr in s_prctr.&lt;/P&gt;&lt;P&gt;if not tell me the correct way &lt;/P&gt;&lt;P&gt;points are for sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 11:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761949#M905050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T11:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761950#M905051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you can do that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 11:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761950#M905051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T11:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761951#M905052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the second select statement is correct u can do in this way.&lt;/P&gt;&lt;P&gt;The second select is better than the first statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select * from ce4e001 
into corresponding fields of table v_ce4e001 
where bukrs eq s_bukrs-low
and kudnr in s_kndnr
amd s_prctr in s_prctr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement is better than the first because the first select statement will be looping &lt;STRONG&gt;SELECT and ENDSELECT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select * from ce4e001 
where bukrs eq s_bukrs-low.
check s_kndnr.
check s_prctr.
move-corresponding ce4e001 to v_ce4e001.
append v_ce4e001.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dint find into clause in this select statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 22, 2008 5:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 11:34:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761951#M905052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T11:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761952#M905053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can write ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ce4e001 into corresponding fields of table &lt;/P&gt;&lt;P&gt;v_ce4e001 where bukrs eq s_bukrs-low&lt;/P&gt;&lt;P&gt;                and kudnr in s_kndnr&lt;/P&gt;&lt;P&gt;                amd s_prctr in s_prctr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 11:34:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761952#M905053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T11:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761953#M905054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can replace with the second select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 11:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761953#M905054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T11:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761954#M905055</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;Yes,  You can write,  it will works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 11:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761954#M905055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T11:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761955#M905056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you can replace with second select statement,for better performance remove * inplace use fields what you need in the output,and remove into corresponding fields addition ..try to use the fields in order of database fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 22, 2008 5:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 11:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761955#M905056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T11:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761956#M905057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt; Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can Replace the First Select Query with the Second one .&lt;/P&gt;&lt;P&gt;Infact the Second one is better than the First one in terms of Performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  SUNIL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 11:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761956#M905057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T11:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761957#M905058</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;The second way u have approached works fine and has nothing problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it can also be done in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ce4e001 into corresponding fields of &lt;/P&gt;&lt;P&gt;            table v_ce4e001 where &lt;/P&gt;&lt;P&gt;                                     bukrs   = s_bukrs-low-bukrs and&lt;/P&gt;&lt;P&gt;                                     kudnr   = s_kndnr-kudnr       and&lt;/P&gt;&lt;P&gt;                                     s_prctr = s_prctr-s_prctr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it is useful. &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 22, 2008 5:11 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 11:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761957#M905058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T11:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761958#M905059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 11:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select/m-p/3761958#M905059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T11:54:54Z</dc:date>
    </item>
  </channel>
</rss>

