<?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 performance issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689672#M1102387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;Can u give me soolution for the below select statement to increase the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * FROM setleaf WHERE&lt;/P&gt;&lt;P&gt;           setclass EQ '0106' AND&lt;/P&gt;&lt;P&gt;           subclass IN i_subclass AND&lt;/P&gt;&lt;P&gt;           setname LIKE l_setname.&lt;/P&gt;&lt;P&gt;    MOVE: setleaf-valsign TO r_pgroup-sign,&lt;/P&gt;&lt;P&gt;          setleaf-valoption TO r_pgroup-option,&lt;/P&gt;&lt;P&gt;          setleaf-valfrom TO r_pgroup-low,&lt;/P&gt;&lt;P&gt;          setleaf-valto TO r_pgroup-high.&lt;/P&gt;&lt;P&gt;    APPEND r_pgroup.&lt;/P&gt;&lt;P&gt;    CLEAR r_pgroup.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2008 16:52:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-10T16:52:18Z</dc:date>
    <item>
      <title>performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689672#M1102387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;Can u give me soolution for the below select statement to increase the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * FROM setleaf WHERE&lt;/P&gt;&lt;P&gt;           setclass EQ '0106' AND&lt;/P&gt;&lt;P&gt;           subclass IN i_subclass AND&lt;/P&gt;&lt;P&gt;           setname LIKE l_setname.&lt;/P&gt;&lt;P&gt;    MOVE: setleaf-valsign TO r_pgroup-sign,&lt;/P&gt;&lt;P&gt;          setleaf-valoption TO r_pgroup-option,&lt;/P&gt;&lt;P&gt;          setleaf-valfrom TO r_pgroup-low,&lt;/P&gt;&lt;P&gt;          setleaf-valto TO r_pgroup-high.&lt;/P&gt;&lt;P&gt;    APPEND r_pgroup.&lt;/P&gt;&lt;P&gt;    CLEAR r_pgroup.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 16:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689672#M1102387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T16:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689673#M1102388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : it_setleaf type table of setleaf,&lt;/P&gt;&lt;P&gt;         st_setleaf type setleaf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from setleaf &lt;/P&gt;&lt;P&gt;            into table it_setleaf&lt;/P&gt;&lt;P&gt;            where setclass EQ '0106' &lt;/P&gt;&lt;P&gt;               and subclass IN i_subclass &lt;/P&gt;&lt;P&gt;               and setname LIKE l_setname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_setleaf into st_setleaf.&lt;/P&gt;&lt;P&gt;r_pgroup-sign   = setleaf-valsign.&lt;/P&gt;&lt;P&gt;r_pgroup-option = setleaf-valoption.&lt;/P&gt;&lt;P&gt;r_pgroup-low     = setleaf-valfrom.&lt;/P&gt;&lt;P&gt;r_pgroup-high   = setleaf-valto.&lt;/P&gt;&lt;P&gt;append r_pgroup.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 17:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689673#M1102388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T17:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689674#M1102389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select ... Endselect is kinda a select in a loop. so i think the above should be quite efficent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 17:06:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689674#M1102389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T17:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689675#M1102390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Mahesh - this is the second time today I have moved your question to the correct forum.    Performance questions go in the ABAP Performance and Tuning forum.  And try to get a better subject than "performance issue".&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 18:12:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689675#M1102390</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-11-10T18:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689676#M1102391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : it_setleaf type standard table of setleaf,
wa_setleaf type setleaf.

data: it_pgroup type standard table of ussel,
wa_pgroup type ussel.

select * from setleaf 
into table it_setleaf
where setclass EQ '0106' 
and subclass IN i_subclass 
and setname LIKE l_setname.

loop at it_setleaf into wa_setleaf.
wa_pgroup-sign = wa_setleaf-valsign.
wa_pgroup-option = wa_setleafvaloption.
wa_pgroup-low = wa_setleaf-valfrom.
wa_pgroup-high = wa_setleaf-valto.
append wa_pgroup to it_pgroup.
clear wa_pgroup.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 08:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689676#M1102391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T08:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689677#M1102392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this one.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data :
  it_pgroup type standard table of ussel.

select   valsign  as sign
           valoption as option
           valfrom   as low
           valto       as high
           from setleaf 
           INTO CORRESPONDING FIELDS OF TABLE it_pgroup
           where setclass EQ '0106' 
           and subclass IN i_subclass 
           and setname LIKE l_setname.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But actually your original solution was also o.k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the performance of the WHERE condition which indexes are available, is this &lt;/P&gt;&lt;P&gt; i_subclass filled?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 08:54:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689677#M1102392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T08:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689678#M1102393</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;please try this one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_setleaf type standard table of setleaf .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select valsign  valoption  valfrom   valto       &lt;/P&gt;&lt;P&gt;  from setleaf &lt;/P&gt;&lt;P&gt;   into corresponding fields of table it_setleaf&lt;/P&gt;&lt;P&gt;where setclass =  '0106' &lt;/P&gt;&lt;P&gt;  and subclass =  i_subclass &lt;/P&gt;&lt;P&gt;  and setname  = l_setname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use 'EQ'  in where clause for first time to get account group / reporting group from setleaf .then pass the same from it_setleaf to other tables .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Nov 2008 07:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4689678#M1102393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-22T07:39:00Z</dc:date>
    </item>
  </channel>
</rss>

