<?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/4402951#M1046508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vipin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not use &lt;STRONG&gt;INTO CORRESPONDING FIELDS OF TABLE&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;Instead declare the internal table with the fields you are selecting and go for INTO TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not use &lt;STRONG&gt;LOOP-ENDLOOP&lt;/STRONG&gt; inside another &lt;STRONG&gt;LOOP-ENDLOOP&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2008 12:45:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-27T12:45:43Z</dc:date>
    <item>
      <title>performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4402950#M1046507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is my code, its taking more time during execution....how can i improve the performance ...plz help me out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT agent vkont&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       FROM zu1cd_fkkvkp INTO CORRESPONDING FIELDS OF TABLE it_agent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN it_dimaiobpar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       WHERE vkont =  it_dimaiobpar-partneracc AND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             gpart = it_dimaiobpar-partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT it_agent ASCENDING BY vkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To get the Amount Values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_dimaiobpar INTO wa_dimaiobpar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FKK_ACCOUNT_BALANCE_COMPUTE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_vkont                    = wa_dimaiobpar-partneracc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_gpart                    = wa_dimaiobpar-partner&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_vtref                    = wa_dimaiobpar-insobject&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_start_date               = '00000000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_start_time              = '000000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_end_date                = sy-datum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_end_time                = '000000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_XALLF                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        E_BALANCE                 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        E_SUM_OPENITEMS           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        E_SUM_CLEARINGS           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        E_SUM_INSTITEMS           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        E_SUM_INTERESTITEMS       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        E_SUM_CHARGEITEMS         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          t_postab                  = it_postab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        T_AUGTAB                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        T_INSTTAB                 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        T_INTERESTTAB             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        T_CHARGETAB               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR wa_postab2.         .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_postab2 INTO wa_postab2 WHERE augst = ' ' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING wa_postab2 TO wa_postab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND wa_postab1 TO it_postab1.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 12:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4402950#M1046507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T12:39: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/4402951#M1046508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vipin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not use &lt;STRONG&gt;INTO CORRESPONDING FIELDS OF TABLE&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;Instead declare the internal table with the fields you are selecting and go for INTO TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not use &lt;STRONG&gt;LOOP-ENDLOOP&lt;/STRONG&gt; inside another &lt;STRONG&gt;LOOP-ENDLOOP&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 12:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4402951#M1046508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T12:45: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/4402952#M1046509</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;         Don't use INTO CORRESPONDING FIELDS , it makes performance down insted use into table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 12:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4402952#M1046509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T12:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4402953#M1046510</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;First you can optimize the select query by removing 'INTO CORRESPONDING FIELDS OF TABLE' if your it_agent has the same sequence in the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT agent vkont&lt;/P&gt;&lt;P&gt;FROM zu1cd_fkkvkp INTO CORRESPONDING FIELDS OF TABLE it_agent&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_dimaiobpar&lt;/P&gt;&lt;P&gt;WHERE vkont = it_dimaiobpar-partneracc AND&lt;/P&gt;&lt;P&gt;gpart = it_dimaiobpar-partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, In the Loop at the Last : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_postab2 INTO wa_postab2 WHERE augst = ' ' .&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING wa_postab2 TO wa_postab1.&lt;/P&gt;&lt;P&gt;APPEND wa_postab1 TO it_postab1.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can write in such a manner : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_postab2 INTO wa_postab2.&lt;/P&gt;&lt;P&gt;                    check augst = ' '&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING wa_postab2 TO wa_postab1.&lt;/P&gt;&lt;P&gt;APPEND wa_postab1 TO it_postab1.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only this is way you can improve the performance in your code otherwise you need to put a trace on code to check which query or statement is taking time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;removed_by_moderator&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Aug 27, 2008 3:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 12:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4402953#M1046510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T12:50: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/4402954#M1046511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;HR originaltext="------------------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;I get really tired by these ignorant recommendations which appear here in every posting. One should read a posting before one answers a question. Answering questions is related zto understanding not to a search of keywords!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'move-corresponding' and 'into corresponding' will not make a performance problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;People who don't understand that should not answer questions!&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here as always you must run a trace to figure out where your time is spent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First guess would be the SELECT &lt;/P&gt;&lt;P&gt;Second guess the Function&lt;/P&gt;&lt;P&gt;Third guess the table it_postab2 is noot refreshed inside the function but new lines are just appended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run the SE30 as explained here:&lt;/P&gt;&lt;P&gt;SE30&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_blogpost" href="https://community.sap.com/" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="45105"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; What is the total time and what are the top 10 net time consumers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run the SQL trace:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_blogpost" href="https://community.sap.com/" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="44587"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the SELECT is among the top 10 in SE30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 14:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4402954#M1046511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T14:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4402955#M1046512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help you, we must know 3 things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - What is the structure of the key of table zu1cd_fkkvkp? Are you using it's key in your SELECT? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - And how much records has it_dimaiobpar? If it has too many, you shoukd avoid for all entries. Explain the goal, and perhaps someone gives you a better solution of data selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 - What's the point of second LOOP? It's looping inside the other loop without refering previous data. It will append same fields to second table, several times!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, corresponding fields and move-corresponing will only tune you program in one or two seconds (if you have thousands or records). If you have less, not even that!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 14:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4402955#M1046512</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-08-27T14:47: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/4402956#M1046513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Siegfried,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Du solltest Deine Bedenken - die auch die Meinen sind - doch vorzugsweise an das SDN Team adressieren. Dort koennen diesbezueglich vielleicht einige neue "rules" diskutiert werden. Du fragst Dich wahrscheinlich, warum ich in Deutsch schreibe! Und ich frage mich wieso die Forum Kategorien Japanisch - Chinesisch und Korean eingefuert wurden!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Heinz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 21:32:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4402956#M1046513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T21:32:05Z</dc:date>
    </item>
  </channel>
</rss>

