<?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 in Executing with Select-Options.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548834#M249244</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;But what's the actual problem??&lt;/P&gt;&lt;P&gt;When i give the range it's working fine and taking less execution time...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what's wrong in giving the single values in the extended key...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u brief me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2006 12:49:38 GMT</pubDate>
    <dc:creator>Simha_</dc:creator>
    <dc:date>2006-08-10T12:49:38Z</dc:date>
    <item>
      <title>Problem in Executing with Select-Options..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548828#M249238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing some strange problem while exceuting my transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point is that when i enter the values i.e in select-options  &lt;/P&gt;&lt;P&gt;(a) Document Number:  XXXXXXXXX   to   XXXXXXXXX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's working fine.&lt;/P&gt;&lt;P&gt;Execution time is very less.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(b) But when i enter the single values in the select-options i.e  clicking the extend button and then entering the single entries in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Document Number:  XXXXXXXX&lt;/P&gt;&lt;P&gt;                   YYYYYYYY&lt;/P&gt;&lt;P&gt;                   ZZZZZZZZ&lt;/P&gt;&lt;P&gt;It's taking very very very much time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the requirement is like that to give the single values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to go about this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 12:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548828#M249238</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2006-08-10T12:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Executing with Select-Options..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548829#M249239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you show us your coding?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 12:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548829#M249239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T12:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Executing with Select-Options..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548830#M249240</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; Can u paste ur code? Both ways the system should work same similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if you are using the &amp;lt;b&amp;gt;IN&amp;lt;/b&amp;gt; in the WHERE clause of the select both should work the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 12:37:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548830#M249240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T12:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Executing with Select-Options..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548831#M249241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have done nothing different to achieve this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just followed the normal procedure...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i have to give something extra in the select query..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO TABLE i_bseg FROM bseg&lt;/P&gt;&lt;P&gt;    WHERE bukrs IN bukrs AND&lt;/P&gt;&lt;P&gt;          belnr IN belnr AND&lt;/P&gt;&lt;P&gt;          GJAHR IN GJAHR AND&lt;/P&gt;&lt;P&gt;          BSCHL = 50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 12:37:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548831#M249241</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2006-08-10T12:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Executing with Select-Options..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548832#M249242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select * on Bseg and that too without key fields on Mseg??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using other tables in the cluster like BSID and BSAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 12:40:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548832#M249242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T12:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Executing with Select-Options..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548833#M249243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to get the data from Bsi* tables instead(they are secondary indexes on the main table, much faster).&lt;/P&gt;&lt;P&gt;BSID                           Accounting: Secondary Index for Customers &lt;/P&gt;&lt;P&gt;BSIK                           Accounting: Secondary Index for Vendors   &lt;/P&gt;&lt;P&gt;BSIM                           Secondary Index, Documents for Material   &lt;/P&gt;&lt;P&gt;BSIP                           Index for Vendor Validation of Double Docu&lt;/P&gt;&lt;P&gt;BSIS                           Accounting: Secondary Index for G/L Accoun&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 12:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548833#M249243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T12:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Executing with Select-Options..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548834#M249244</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;But what's the actual problem??&lt;/P&gt;&lt;P&gt;When i give the range it's working fine and taking less execution time...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what's wrong in giving the single values in the extended key...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u brief me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 12:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548834#M249244</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2006-08-10T12:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Executing with Select-Options..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548835#M249245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well first of all, like everyone else said, try to use other tables sepcially if you are not using any keys on an existing index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, if you trace your SELECT (via ST05) using single values and range, you would notice the difference on how the SQL statement is built. Your single value SELECT will have an OR statement on all the values, which is EXTREMELY slow. In ABAP you won't notice this because all we do is have the WHERE clause like BUKRS in S_BUKRS. But in your database SQL statement, it will be different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 22:05:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548835#M249245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T22:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Executing with Select-Options..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548836#M249246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try removing the BSCHL = 50 part of it from the statement. But as others said, try using other tables. BSEG is large table and it typically has performance problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT * INTO TABLE i_bseg 
         FROM bseg
         WHERE bukrs IN bukrs 
           AND belnr IN belnr
           AND gjahr IN gjahr.

 DELETE i_bseg WHERE bschl &amp;lt;&amp;gt; 50.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 22:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-executing-with-select-options/m-p/1548836#M249246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T22:11:13Z</dc:date>
    </item>
  </channel>
</rss>

