<?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: performance issue. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/6503415#M1422166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pasalabasker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avoid using INTO CORRESPONDING fields. Instead select only the required fields. This will improve the perfromance a bit. And try to find out an FM wher you can send all the matnr as a table, if not go for a Z copy of the same FM and change accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saravanan Rajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2010 08:36:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-12T08:36:19Z</dc:date>
    <item>
      <title>performance issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/6503413#M1422164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sap,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to display the CHARACTERISTIC values based on the combination of the 2 characterisctic values namely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. cc-handlingcat&lt;/P&gt;&lt;P&gt;2. cc-handlingsubcat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get values for that combianation what am doing is......i do a select like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr FROM mara APPENDING CORRESPONDING FIELDS OF TABLE  ly_mara. then i loop each material number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ly_mara INTO lw_mara.&lt;/P&gt;&lt;P&gt;             object1 = lw_mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        classtype          = '001'&lt;/P&gt;&lt;P&gt;        object             = object1&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_class            = t_class&lt;/P&gt;&lt;P&gt;        t_objectdata       = object_data1&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        no_classification  = 1&lt;/P&gt;&lt;P&gt;        no_classtypes      = 2&lt;/P&gt;&lt;P&gt;        invalid_class_type = 3&lt;/P&gt;&lt;P&gt;        OTHERS             = 4.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      CASE sy-subrc.&lt;/P&gt;&lt;P&gt;        WHEN 1.&lt;/P&gt;&lt;P&gt;          WRITE 'No Classification found'.&lt;/P&gt;&lt;P&gt;        WHEN 2.&lt;/P&gt;&lt;P&gt;          WRITE 'No Class type found'.&lt;/P&gt;&lt;P&gt;        WHEN OTHERS.&lt;/P&gt;&lt;P&gt;          WRITE 'Invalid class type'.&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i get the all the characteristic values and i make a check like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK  wa_cawn-atwrt  eq var12 ( screen value)&lt;/P&gt;&lt;P&gt;CHECK  wa_cawn-atwrt  eq var13 ( screen value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;display or else display nothing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT IT IS TAKE TOO LONG TIME MAY BE 30M IN DAV ITSELF .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can i do to improve the performance? your help is highly appriciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;pasala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 08:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/6503413#M1422164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T08:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/6503414#M1422165</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;You can assign field symbols.It will improve the performance.&lt;/P&gt;&lt;P&gt;Sample code is given below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--field symbols declarations&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS_KNA1&amp;gt; TYPE T_KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--usage in loop&lt;/P&gt;&lt;P&gt;LOOP AT IT_kna1 ASSIGNING &amp;lt;FS_kna1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--in read statements&lt;/P&gt;&lt;P&gt; READ TABLE IT_KNA1 ASSIGNING &amp;lt;FS_KNA1&amp;gt; WITH KEY KUNNR = &amp;lt;FS_COMBINE&amp;gt;-KUNNR BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do F1 on field symbols and you will get more examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Khushboo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: K rathi on Jan 12, 2010 9:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 08:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/6503414#M1422165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T08:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/6503415#M1422166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pasalabasker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avoid using INTO CORRESPONDING fields. Instead select only the required fields. This will improve the perfromance a bit. And try to find out an FM wher you can send all the matnr as a table, if not go for a Z copy of the same FM and change accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saravanan Rajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 08:36:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/6503415#M1422166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T08:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/6503416#M1422167</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;do not read each characteristic values separately in a loop. Read all of them with one select from AUSP table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very simplified a select will look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT objek INTO CORRESPONDING-FIELDS OF TABLE ly_mara
   FROM ausp AS a1
  INNER JOIN ausp AS a2
  ON a1~objek EQ a2~objek
   WHERE a1~atwrt EQ var12
       AND a2~atwrt EQ var13
.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When You look at entries of AUSP table for some materials (OBJEK = MATNR), You will surely find also how to provide some other restrictions to select to improve it's performance( at least ATINN, MAFID, KLART ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 11:03:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/6503416#M1422167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T11:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/6503417#M1422168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorted by self but few answers were really helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 13:59:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/6503417#M1422168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T13:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/6503418#M1422169</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; sorted by self but few answers were really helpful.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they wre really helpful, why not mark them as such?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And please use code tags to format your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jan 15, 2010 9:42 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 14:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/6503418#M1422169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T14:24:42Z</dc:date>
    </item>
  </channel>
</rss>

