<?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: Performace Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633404#M1091074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first declare it_mat1 as&lt;/P&gt;&lt;P&gt;data: begin of it_mat1,&lt;/P&gt;&lt;P&gt; matnr type....&lt;/P&gt;&lt;P&gt; ersda&lt;/P&gt;&lt;P&gt; werks &lt;/P&gt;&lt;P&gt; dispo  &lt;/P&gt;&lt;P&gt; matnr &lt;/P&gt;&lt;P&gt; eisbe &lt;/P&gt;&lt;P&gt; mmsta&lt;/P&gt;&lt;P&gt; maktx&lt;/P&gt;&lt;P&gt;end of it_mat1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;matnr a&lt;/SUB&gt;ersda b&lt;SUB&gt;werks b&lt;/SUB&gt;dispo b&lt;SUB&gt;matnr b&lt;/SUB&gt;eisbe b&lt;SUB&gt;mmsta c&lt;/SUB&gt;maktx&lt;/P&gt;&lt;P&gt;INTO TABLE it_matl&lt;/P&gt;&lt;P&gt;FROM ( mara AS a INNER JOIN marc AS b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;matnr = b&lt;/SUB&gt;matnr )&lt;/P&gt;&lt;P&gt;INNER JOIN makt AS c&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ON a&lt;SUB&gt;matnr = c&lt;/SUB&gt;matnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;WHERE a~matnr IN s_matnr&lt;/P&gt;&lt;P&gt;AND b~werks IN s_werks&lt;/P&gt;&lt;P&gt;AND mtart EQ 'UNBW'&lt;/P&gt;&lt;P&gt;AND mmsta NE '98'&lt;/P&gt;&lt;P&gt;AND b~dispo IN s_dispo&lt;/P&gt;&lt;P&gt;AND b~kzaus EQ ' '&lt;/P&gt;&lt;P&gt;AND c~spras EQ sy-langu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2008 20:36:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-16T20:36:06Z</dc:date>
    <item>
      <title>Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633391#M1091061</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;below code is taking a lot of time in prod server.&lt;/P&gt;&lt;P&gt;can any help me to optimize this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;matnr a&lt;/SUB&gt;ersda&lt;/P&gt;&lt;P&gt;           b&lt;SUB&gt;werks b&lt;/SUB&gt;dispo b&lt;SUB&gt;matnr b&lt;/SUB&gt;eisbe b~mmsta&lt;/P&gt;&lt;P&gt;           c~maktx&lt;/P&gt;&lt;P&gt;                    INTO CORRESPONDING FIELDS OF TABLE it_matl&lt;/P&gt;&lt;P&gt;                    FROM ( mara AS a INNER JOIN marc AS b&lt;/P&gt;&lt;P&gt;                            ON a&lt;SUB&gt;matnr = b&lt;/SUB&gt;matnr )&lt;/P&gt;&lt;P&gt;                    INNER JOIN makt AS c&lt;/P&gt;&lt;P&gt;                            ON b&lt;SUB&gt;matnr = c&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;                    WHERE a~matnr IN s_matnr&lt;/P&gt;&lt;P&gt;                    AND   b~werks IN s_werks&lt;/P&gt;&lt;P&gt;                    AND   mtart   EQ 'UNBW'&lt;/P&gt;&lt;P&gt;                    AND   mmsta   NE '98'&lt;/P&gt;&lt;P&gt;                    AND   b~dispo IN s_dispo&lt;/P&gt;&lt;P&gt;                    AND   b~kzaus EQ ' '&lt;/P&gt;&lt;P&gt;                    AND   c~spras EQ sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 19:39:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633391#M1091061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T19:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633392#M1091062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT a~matnr a~ersda
b~werks b~dispo b~matnr b~eisbe b~mmsta
c~maktx
INTO CORRESPONDING FIELDS OF TABLE it_matl "try to remove into corresponding by giving all the field in the same sequence as in structure of it_matl.
FROM ( mara AS a INNER JOIN marc AS b
ON a~matnr = b~matnr )
INNER JOIN makt AS c
ON b~matnr = c~matnr
WHERE a~matnr IN s_matnr
AND b~werks IN s_werks
AND mtart EQ 'UNBW'
AND mmsta NE '98'
AND b~dispo IN s_dispo
AND b~kzaus EQ ' '
AND c~spras EQ sy-langu.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 19:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633392#M1091062</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-10-16T19:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633393#M1091063</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;This should goto the Forum for Peformance Tunning......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 19:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633393#M1091063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T19:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633394#M1091064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but if i remove move corresponding then its giving a dump error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 19:42:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633394#M1091064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T19:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633395#M1091065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is s_matnr empty??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 19:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633395#M1091065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T19:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633396#M1091066</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;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE it_matl&lt;/P&gt;&lt;P&gt;Remove Into Corresponding fields of..by chnging the Internal Table Structure....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND mmsta NE '98'&lt;/P&gt;&lt;P&gt;Replace NE by a suitable condition..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND b~kzaus EQ ' '&lt;/P&gt;&lt;P&gt;Use keyword SPACE....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway...your Query is having PK MATNR in the where and hence should not take a lot of time......is the number of Materials satisfying this QUERY are a lot in numbers?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 19:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633396#M1091066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T19:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633397#M1091067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why are u selecting matnr twice? If you use matnr for join then you have duplicated value ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;matnr a&lt;/SUB&gt;ersda&lt;/P&gt;&lt;P&gt;b&lt;SUB&gt;werks b&lt;/SUB&gt;dispo b&lt;SUB&gt;matnr b&lt;/SUB&gt;eisbe b~mmsta&lt;/P&gt;&lt;P&gt;c~maktx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To not have dump you have to have structure of your internal table the same as listed fields in select statement (same order and not more or less than listed...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then also check the order of the fields in where condition if are matching order in indeces. If not correct that.&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;  Karol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 19:48:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633397#M1091067</guid>
      <dc:creator>karol_seman</dc:creator>
      <dc:date>2008-10-16T19:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633398#M1091068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its going to dump bcoz ur internal table structure and the sequence of fields in select stmt is not the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 19:49:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633398#M1091068</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-10-16T19:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633399#M1091069</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;Before removing the Into Corresponding fields.....you need to change your Internal Table strucutre......you can only have those fields in same order...which u r fetching from SELECT....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 19:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633399#M1091069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T19:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633400#M1091070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rob and ajay ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  let me create a separate structure and see as you say. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  and  the field s_matnr is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  regards,&lt;/P&gt;&lt;P&gt;raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 19:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633400#M1091070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T19:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633401#M1091071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;INTO CORRESPONDING FIELDS OF TABLE it_matl&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is not a performance problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 19:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633401#M1091071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T19:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633402#M1091072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;   and  the field s_matnr is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;OK - what does it look like? Is a large range being used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 19:55:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633402#M1091072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T19:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633403#M1091073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure the problem is with the select statement? I've tried it in my system with 40K materials and it takes a couple of seconds. Is the select in a loop perhaps? Or do you have a truly huge number of matnr/werks/dispo?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 20:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633403#M1091073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T20:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633404#M1091074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first declare it_mat1 as&lt;/P&gt;&lt;P&gt;data: begin of it_mat1,&lt;/P&gt;&lt;P&gt; matnr type....&lt;/P&gt;&lt;P&gt; ersda&lt;/P&gt;&lt;P&gt; werks &lt;/P&gt;&lt;P&gt; dispo  &lt;/P&gt;&lt;P&gt; matnr &lt;/P&gt;&lt;P&gt; eisbe &lt;/P&gt;&lt;P&gt; mmsta&lt;/P&gt;&lt;P&gt; maktx&lt;/P&gt;&lt;P&gt;end of it_mat1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;matnr a&lt;/SUB&gt;ersda b&lt;SUB&gt;werks b&lt;/SUB&gt;dispo b&lt;SUB&gt;matnr b&lt;/SUB&gt;eisbe b&lt;SUB&gt;mmsta c&lt;/SUB&gt;maktx&lt;/P&gt;&lt;P&gt;INTO TABLE it_matl&lt;/P&gt;&lt;P&gt;FROM ( mara AS a INNER JOIN marc AS b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;matnr = b&lt;/SUB&gt;matnr )&lt;/P&gt;&lt;P&gt;INNER JOIN makt AS c&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ON a&lt;SUB&gt;matnr = c&lt;/SUB&gt;matnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;WHERE a~matnr IN s_matnr&lt;/P&gt;&lt;P&gt;AND b~werks IN s_werks&lt;/P&gt;&lt;P&gt;AND mtart EQ 'UNBW'&lt;/P&gt;&lt;P&gt;AND mmsta NE '98'&lt;/P&gt;&lt;P&gt;AND b~dispo IN s_dispo&lt;/P&gt;&lt;P&gt;AND b~kzaus EQ ' '&lt;/P&gt;&lt;P&gt;AND c~spras EQ sy-langu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 20:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633404#M1091074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T20:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Performace Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633405#M1091075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;before that have a check that s_matnr is not initial...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 20:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performace-issue/m-p/4633405#M1091075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T20:37:10Z</dc:date>
    </item>
  </channel>
</rss>

