<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/2900369#M682000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Experts ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following routine taking long time, it takes around 1 hour for 34,000 records.&lt;/P&gt;&lt;P&gt;IT_ANLA is  sorted and no duplicate entries in the table.&lt;/P&gt;&lt;P&gt; Is there any way to improve performance for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_FIAA_ANLC_VALUES_GET.&lt;/P&gt;&lt;P&gt;  DATA : LV_GJAHR LIKE ANLC-GJAHR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LV_GJAHR = S_GJAHR-LOW.&lt;/P&gt;&lt;P&gt;  LOOP AT IT_ANLA.&lt;/P&gt;&lt;P&gt;    REFRESH LT_ANLC.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FIAA_ANLC_VALUES_GET'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              I_ANLN1         = IT_ANLA-ANLN1&lt;/P&gt;&lt;P&gt;              I_ANLN2         = IT_ANLA-ANLN2&lt;/P&gt;&lt;P&gt;              I_BUKRS         = IT_ANLA-BUKRS&lt;/P&gt;&lt;P&gt;              I_GJAHR         = LV_GJAHR&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              T_ANLC          = LT_ANLC[]&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              NOT_FOUND       = 1&lt;/P&gt;&lt;P&gt;              ERR_IN_DEPR_REC = 2&lt;/P&gt;&lt;P&gt;              OTHERS          = 3.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      APPEND LINES OF LT_ANLC TO LT_ANLC_FINAL.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2007 10:33:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-19T10:33:54Z</dc:date>
    <item>
      <title>performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/2900369#M682000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Experts ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following routine taking long time, it takes around 1 hour for 34,000 records.&lt;/P&gt;&lt;P&gt;IT_ANLA is  sorted and no duplicate entries in the table.&lt;/P&gt;&lt;P&gt; Is there any way to improve performance for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_FIAA_ANLC_VALUES_GET.&lt;/P&gt;&lt;P&gt;  DATA : LV_GJAHR LIKE ANLC-GJAHR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LV_GJAHR = S_GJAHR-LOW.&lt;/P&gt;&lt;P&gt;  LOOP AT IT_ANLA.&lt;/P&gt;&lt;P&gt;    REFRESH LT_ANLC.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FIAA_ANLC_VALUES_GET'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              I_ANLN1         = IT_ANLA-ANLN1&lt;/P&gt;&lt;P&gt;              I_ANLN2         = IT_ANLA-ANLN2&lt;/P&gt;&lt;P&gt;              I_BUKRS         = IT_ANLA-BUKRS&lt;/P&gt;&lt;P&gt;              I_GJAHR         = LV_GJAHR&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              T_ANLC          = LT_ANLC[]&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              NOT_FOUND       = 1&lt;/P&gt;&lt;P&gt;              ERR_IN_DEPR_REC = 2&lt;/P&gt;&lt;P&gt;              OTHERS          = 3.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      APPEND LINES OF LT_ANLC TO LT_ANLC_FINAL.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 10:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/2900369#M682000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T10:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/2900370#M682001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do you want to know?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function is in the loop, CALL FUNCTION 'FIAA_ANLC_VALUES_GET',&lt;/P&gt;&lt;P&gt;what is it doing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I can say, if the fuinction could process the whole table IT_ANLA &lt;/P&gt;&lt;P&gt;then it would be faster. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 11:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/2900370#M682001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T11:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/2900371#M682002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is very little you can do to remedy your situation. I believe that the performance degradation is taking place in the SAP function module. On your part there is very little you can do. I have modified you program a little. Have a look at it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM get_fiaa_anlc_values_get.

  DATA : lv_gjahr LIKE anlc-gjahr.

* MARK START OF INSERTION
  DATA: it_anla_tmp LIKE TABLE OF it_anla. 

  it_anla_tmp[] = it_anla[]. 
  
  SORT it_anla BY anln1 anln2 bukrs.
  
  DELETE ADJACENT DUPLICATES FROM it_anla COMPARING anln1 anln2 bukrs.
* MARK END OF INSERTION  


  lv_gjahr = s_gjahr-low.

  
  LOOP AT it_anla.

    REFRESH lt_anlc.

    CALL FUNCTION 'FIAA_ANLC_VALUES_GET'
      EXPORTING
        i_anln1         = it_anla-anln1
        i_anln2         = it_anla-anln2
        i_bukrs         = it_anla-bukrs
        i_gjahr         = lv_gjahr
      TABLES
        t_anlc          = lt_anlc[]
      EXCEPTIONS
        not_found       = 1
        err_in_depr_rec = 2
        OTHERS          = 3.
    IF sy-subrc = 0.
      APPEND LINES OF lt_anlc TO lt_anlc_final.
    ENDIF.

  ENDLOOP.

* MARK START OF INSERTION
  it_anla[] = it_anla_tmp[].
* MARK END OF INSERTION

ENDFORM.                    "GET_FIAA_ANLC_VALUES_GET&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 15:02:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/2900371#M682002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T15:02:28Z</dc:date>
    </item>
  </channel>
</rss>

