<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250884#M486534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explain the following part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum the values from the wa .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at new charg . &lt;/P&gt;&lt;P&gt;append the sum value into aonther internal table itabsum &lt;/P&gt;&lt;P&gt;clear sum values . &lt;/P&gt;&lt;P&gt;end at .&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;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Bharat.V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2007 05:23:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-21T05:23:32Z</dc:date>
    <item>
      <title>performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250876#M486526</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;LOOP AT it_batch.&lt;/P&gt;&lt;P&gt;     x_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;     SELECT SUM( clabs ) SUM( cumlm ) SUM( cinsm ) SUM( ceinm )&lt;/P&gt;&lt;P&gt;            SUM( cspem ) SUM( cretm ) SUM( cvmla ) SUM( cvmum )&lt;/P&gt;&lt;P&gt;            SUM( cvmin ) SUM( cvmei ) SUM( cvmsp ) SUM( cvmre )&lt;/P&gt;&lt;P&gt;            FROM mchb&lt;/P&gt;&lt;P&gt;           INTO (x_clabs, x_cumlm, x_cinsm, x_ceinm, x_cspem, x_cretm,&lt;/P&gt;&lt;P&gt;                x_cvmla, x_cvmum, x_cvmin, x_cvmei, x_cvmsp, x_cvmre)&lt;/P&gt;&lt;P&gt;            WHERE matnr = it_batch-matnr&lt;/P&gt;&lt;P&gt;              AND werks = it_batch-werks&lt;/P&gt;&lt;P&gt;              AND charg = it_batch-charg.&lt;/P&gt;&lt;P&gt;     IF NOT ( x_clabs EQ 0 AND&lt;/P&gt;&lt;P&gt;              x_cumlm EQ 0 AND&lt;/P&gt;&lt;P&gt;              x_cinsm EQ 0 AND&lt;/P&gt;&lt;P&gt;              x_ceinm EQ 0 AND&lt;/P&gt;&lt;P&gt;              x_cspem EQ 0 AND&lt;/P&gt;&lt;P&gt;              x_cretm EQ 0 AND&lt;/P&gt;&lt;P&gt;              x_cvmla EQ 0 AND&lt;/P&gt;&lt;P&gt;              x_cvmum EQ 0 AND&lt;/P&gt;&lt;P&gt;              x_cvmin EQ 0 AND&lt;/P&gt;&lt;P&gt;              x_cvmei EQ 0 AND&lt;/P&gt;&lt;P&gt;              x_cvmsp EQ 0 AND&lt;/P&gt;&lt;P&gt;              x_cvmre EQ 0 ).&lt;/P&gt;&lt;P&gt;       DELETE it_batch INDEX x_tabix.&lt;/P&gt;&lt;P&gt;*Begin of Modifications BDVK945500 by TCS941764 on 30/08/2006&lt;/P&gt;&lt;P&gt;     ELSE.&lt;/P&gt;&lt;P&gt;       CLEAR x_objek.&lt;/P&gt;&lt;P&gt;       x_objek(18) = it_batch-matnr.&lt;/P&gt;&lt;P&gt;       x_objek+18(4) = it_batch-werks.&lt;/P&gt;&lt;P&gt;       x_objek+22(10) = it_batch-charg.&lt;/P&gt;&lt;P&gt;       CLEAR inob.&lt;/P&gt;&lt;P&gt;       SELECT SINGLE cuobj FROM inob INTO inob-cuobj&lt;/P&gt;&lt;P&gt;             WHERE obtab = 'MCHA'&lt;/P&gt;&lt;P&gt;               AND objek = x_objek&lt;/P&gt;&lt;P&gt;               AND klart = '022'.&lt;/P&gt;&lt;P&gt;       CONCATENATE inob-cuobj 'O' INTO it_batch-objectid.&lt;/P&gt;&lt;P&gt;       MODIFY it_batch.&lt;/P&gt;&lt;P&gt;*End of Modifications BDVK945500 by TCS941764 on 30/08/2006&lt;/P&gt;&lt;P&gt;     ENDIF.&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;&lt;/P&gt;&lt;P&gt;How to change the above code for better performance without effecting the results(i mean using for all entries and at end of is it possible?) .Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 04:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250876#M486526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T04:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250877#M486527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;instead of loop inside loop ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;better use read statement in loop statement....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at header.&lt;/P&gt;&lt;P&gt;read table item with key &amp;lt;condition&amp;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>Mon, 21 May 2007 04:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250877#M486527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T04:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250878#M486528</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;since u used select statement in the loop...&lt;/P&gt;&lt;P&gt;it reduces the performance very much...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what u do is write a select statement above that loop using all entries and store all records into an internal table...&lt;/P&gt;&lt;P&gt;then use read statement in loop....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 04:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250878#M486528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T04:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250879#M486529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove your select query from the Loop and select using for all entries.&lt;/P&gt;&lt;P&gt;It will improve the performance of the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 04:33:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250879#M486529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T04:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250880#M486530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharat , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using select inside the loop will bring down the performance . wht can u do is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a internal table with the fields (x_clabs, x_cumlm, x_cinsm, x_ceinm, x_cspem, x_cretm, x_cvmla, x_cvmum, x_cvmin, x_cvmei, x_cvmsp, x_cvmre) -itabsum &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the select outside the loop &lt;/P&gt;&lt;P&gt;SELECT SUM( clabs ) SUM( cumlm ) SUM( cinsm ) SUM( ceinm )&lt;/P&gt;&lt;P&gt;SUM( cspem ) SUM( cretm ) SUM( cvmla ) SUM( cvmum )&lt;/P&gt;&lt;P&gt;SUM( cvmin ) SUM( cvmei ) SUM( cvmsp ) SUM( cvmre )&lt;/P&gt;&lt;P&gt;FROM mchb&lt;/P&gt;&lt;P&gt;INTO table itabsum &lt;/P&gt;&lt;P&gt;for all entires in it_batch.&lt;/P&gt;&lt;P&gt;WHERE matnr = it_batch-matnr&lt;/P&gt;&lt;P&gt;AND werks = it_batch-werks&lt;/P&gt;&lt;P&gt;AND charg = it_batch-charg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_batch.&lt;/P&gt;&lt;P&gt;x_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itabsum with key matnr = it_batch-matnr  werks = it_batch-werks charg = it_batch-charg  into ls_sum .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0 .&lt;/P&gt;&lt;P&gt;do rest processing similarly u have done &lt;/P&gt;&lt;P&gt;endif .&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;similarly u can do same for the SELECT SINGLE cuobj FROM inob INTO inob-cuobj&lt;/P&gt;&lt;P&gt;WHERE obtab = 'MCHA'&lt;/P&gt;&lt;P&gt;AND objek = x_objek&lt;/P&gt;&lt;P&gt;AND klart = '022'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select all the entires before the loop and use the read statement inside the loop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward points if helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sridhar Srirama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 04:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250880#M486530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T04:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250881#M486531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SUM( clabs ) SUM( cumlm ) SUM( cinsm ) SUM( ceinm )&lt;/P&gt;&lt;P&gt;SUM( cspem ) SUM( cretm ) SUM( cvmla ) SUM( cvmum )&lt;/P&gt;&lt;P&gt;SUM( cvmin ) SUM( cvmei ) SUM( cvmsp ) SUM( cvmre )&lt;/P&gt;&lt;P&gt;FROM mchb&lt;/P&gt;&lt;P&gt;INTO (x_clabs, x_cumlm, x_cinsm, x_ceinm, x_cspem, x_cretm,&lt;/P&gt;&lt;P&gt;x_cvmla, x_cvmum, x_cvmin, x_cvmei, x_cvmsp, x_cvmre)&lt;/P&gt;&lt;P&gt;for all entries in it_batch&lt;/P&gt;&lt;P&gt;WHERE matnr = it_batch-matnr&lt;/P&gt;&lt;P&gt;AND werks = it_batch-werks&lt;/P&gt;&lt;P&gt;AND charg = it_batch-charg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_batch.&lt;/P&gt;&lt;P&gt;x_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT ( x_clabs EQ 0 AND&lt;/P&gt;&lt;P&gt;x_cumlm EQ 0 AND&lt;/P&gt;&lt;P&gt;x_cinsm EQ 0 AND&lt;/P&gt;&lt;P&gt;x_ceinm EQ 0 AND&lt;/P&gt;&lt;P&gt;x_cspem EQ 0 AND&lt;/P&gt;&lt;P&gt;x_cretm EQ 0 AND&lt;/P&gt;&lt;P&gt;x_cvmla EQ 0 AND&lt;/P&gt;&lt;P&gt;x_cvmum EQ 0 AND&lt;/P&gt;&lt;P&gt;x_cvmin EQ 0 AND&lt;/P&gt;&lt;P&gt;x_cvmei EQ 0 AND&lt;/P&gt;&lt;P&gt;x_cvmsp EQ 0 AND&lt;/P&gt;&lt;P&gt;x_cvmre EQ 0 ).&lt;/P&gt;&lt;P&gt;move space to it_batch-matnr.&lt;/P&gt;&lt;P&gt;modify it_batch index x_tabix transporting matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Begin of Modifications BDVK945500 by TCS941764 on 30/08/2006&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CLEAR x_objek.&lt;/P&gt;&lt;P&gt;x_objek(18) = it_batch-matnr.&lt;/P&gt;&lt;P&gt;x_objek+18(4) = it_batch-werks.&lt;/P&gt;&lt;P&gt;x_objek+22(10) = it_batch-charg.&lt;/P&gt;&lt;P&gt;CLEAR inob.&lt;/P&gt;&lt;P&gt;SELECT SINGLE cuobj FROM inob INTO inob-cuobj&lt;/P&gt;&lt;P&gt;WHERE obtab = 'MCHA'&lt;/P&gt;&lt;P&gt;AND objek = x_objek&lt;/P&gt;&lt;P&gt;AND klart = '022'.&lt;/P&gt;&lt;P&gt;CONCATENATE inob-cuobj 'O' INTO it_batch-objectid.&lt;/P&gt;&lt;P&gt;MODIFY it_batch index x_tabix transporting objectid.&lt;/P&gt;&lt;P&gt;*End of Modifications BDVK945500 by TCS941764 on 30/08/2006&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE it_batch where matnr = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the select statement outside the loop and the delete statement leads to the loss of index which leads to more processing time. So, I have removed delete outside the loop and also whenever u are using modify statements use it along with index. All these changes will definetely lead to a better performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Geeta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 05:04:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250881#M486531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T05:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250882#M486532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi first of all thanks.&lt;/P&gt;&lt;P&gt;                 I am not able to write the select sum() query with for all entries syntax.Then how to write the query.Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 05:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250882#M486532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T05:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250883#M486533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Bharat ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for that . the sum wont work for all entires , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can just select the values for all entires in the internal table called itab1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT clabscumlm cinsm ceinm&lt;/P&gt;&lt;P&gt;cspem cretm  cvmum&lt;/P&gt;&lt;P&gt; cvmin cvmei cvmsp cvmre&lt;/P&gt;&lt;P&gt;FROM mchb&lt;/P&gt;&lt;P&gt;INTO table itab1&lt;/P&gt;&lt;P&gt;for all entires in it_batch&lt;/P&gt;&lt;P&gt;WHERE matnr = it_batch-matnr&lt;/P&gt;&lt;P&gt;AND werks = it_batch-werks&lt;/P&gt;&lt;P&gt;AND charg = it_batch-charg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the sum  calculation manually on the table itab1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum the values from the wa .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at new charg . &lt;/P&gt;&lt;P&gt;append the sum value into aonther internal table itabsum &lt;/P&gt;&lt;P&gt;clear sum values . &lt;/P&gt;&lt;P&gt;end at .&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;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sridhar Srirama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 05:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250883#M486533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T05:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250884#M486534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explain the following part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum the values from the wa .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at new charg . &lt;/P&gt;&lt;P&gt;append the sum value into aonther internal table itabsum &lt;/P&gt;&lt;P&gt;clear sum values . &lt;/P&gt;&lt;P&gt;end at .&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;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Bharat.V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 05:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250884#M486534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T05:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250885#M486535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the internal table itab1 as all the entires without summing .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;know u need to sum all the entires which has same value of matnr werks and charg . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa1 . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum the values from the wa . " add the values to the another structure similar to wa say like wa1 (the fields in the wa1 contains corresponding sum ) . the sum keep getting acummalted in this structure .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at new of charg " this control of code  is entred inside this when there is a change in either matnr werks or charg .&lt;/P&gt;&lt;P&gt;append the structure wa1 to itsum . &lt;/P&gt;&lt;P&gt;clear wa1 .  " the sum is reset when a new entry has to be created in itsum &lt;/P&gt;&lt;P&gt;endat. &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;I hope this clears ur doubt . please let me know any more queries&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 05:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250885#M486535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T05:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250886#M486536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharat ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where u able to understand  and code ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 06:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250886#M486536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T06:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250887#M486537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&lt;/P&gt;&lt;P&gt;        i am little bit confusing with that sum logic.If u don't mine please send me the sample logic for that sum .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 06:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250887#M486537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T06:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250888#M486538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : wa1 like line of itab1 ,&lt;/P&gt;&lt;P&gt;          wa2 like wa1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at itab1 into wa1 . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa2-clabs = wa2-clabs + wa1-clabs.&lt;/P&gt;&lt;P&gt;wa2- cumlm = wa2- cumlm +  wa1- cumlm,&lt;/P&gt;&lt;P&gt;*do similarly for all the fields . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At new of charg .&lt;/P&gt;&lt;P&gt;append wa2 to itabsum &lt;/P&gt;&lt;P&gt;clear wa2 . &lt;/P&gt;&lt;P&gt;end at . &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;please do give the points if usefull .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 06:35:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance/m-p/2250888#M486538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T06:35:24Z</dc:date>
    </item>
  </channel>
</rss>

