<?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- pls help urgent in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754815#M903329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u pls tell me how to do below one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Use a structure for it_details.&lt;/P&gt;&lt;P&gt;5) Use read table as much as you can.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 May 2008 03:13:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-08T03:13:19Z</dc:date>
    <item>
      <title>performance issue- pls help urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754811#M903325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SDN's &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me to improve the performance of the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_data .&lt;/P&gt;&lt;P&gt;  SELECT  budat  HKONT aufnr sgtxt blart dmbtr waers&lt;/P&gt;&lt;P&gt;  INTO TABLE it_detail&lt;/P&gt;&lt;P&gt;  FROM bsis&lt;/P&gt;&lt;P&gt;                  WHERE  bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;                  AND    blart IN s_blart&lt;/P&gt;&lt;P&gt;                  AND    budat IN s_budat&lt;/P&gt;&lt;P&gt;                  AND    HKONT in S_HKONT&lt;/P&gt;&lt;P&gt;                  AND    aufnr in S_aufnr&lt;/P&gt;&lt;P&gt;                  AND    werks = p_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT it_detail.&lt;/P&gt;&lt;P&gt;  IF p_waers IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    LOOP AT it_detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          date             = p_xdate&lt;/P&gt;&lt;P&gt;          foreign_currency = p_waers&lt;/P&gt;&lt;P&gt;          local_amount     = it_detail-dmbtr&lt;/P&gt;&lt;P&gt;          local_currency   = it_detail-waers&lt;/P&gt;&lt;P&gt;          type_of_rate     = p_kurst&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          foreign_amount   = it_detail-dmbtr&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          no_rate_found    = 1&lt;/P&gt;&lt;P&gt;          overflow         = 2&lt;/P&gt;&lt;P&gt;          no_factors_found = 3&lt;/P&gt;&lt;P&gt;          OTHERS           = 4.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        CLEAR it_detail-waers.&lt;/P&gt;&lt;P&gt;        it_detail-waers = p_waers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MODIFY it_detail. " transporting dmbtr.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " get_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  get_sum&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_cost .&lt;/P&gt;&lt;P&gt;  LOOP AT it_detail.&lt;/P&gt;&lt;P&gt;    it_sum-budat = it_detail-budat.&lt;/P&gt;&lt;P&gt;    it_sum-hkont = it_detail-hkont.&lt;/P&gt;&lt;P&gt;    it_sum-aufnr = it_detail-aufnr.&lt;/P&gt;&lt;P&gt;    it_sum-blart = it_detail-blart.&lt;/P&gt;&lt;P&gt;    it_sum-sgtxt  = it_detail-sgtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF it_detail-blart = 'GI' .&lt;/P&gt;&lt;P&gt;      it_sum-raw = it_detail-dmbtr.&lt;/P&gt;&lt;P&gt;    ELSEIF it_detail-blart = 'GG' AND it_detail-sgtxt(1) NE 'S' . .&lt;/P&gt;&lt;P&gt;      it_sum-external = it_detail-dmbtr.&lt;/P&gt;&lt;P&gt;    ELSEIF it_detail-blart = 'GG' AND it_detail-sgtxt(1) = 'S' .&lt;/P&gt;&lt;P&gt;      it_sum-standard = it_detail-dmbtr.&lt;/P&gt;&lt;P&gt;    ELSEIF it_detail-blart = 'SA' AND it_detail-sgtxt(2) = 'DR' .&lt;/P&gt;&lt;P&gt;      it_sum-machine = it_detail-dmbtr.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      it_sum-others = it_detail-dmbtr.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    APPEND it_sum.&lt;/P&gt;&lt;P&gt;    CLEAR it_sum.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calculate Line item total for Summary Option&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT it_sum.&lt;/P&gt;&lt;P&gt;    it_sum-total = it_sum-raw + it_sum-external + it_sum-standard + it_sum-machine + it_sum-others.&lt;/P&gt;&lt;P&gt;    MODIFY it_sum INDEX sy-tabix TRANSPORTING total.&lt;/P&gt;&lt;P&gt;    CLEAR it_sum.&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;ENDFORM.                    " get_cost&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 01:31:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754811#M903325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T01:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue- pls help urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754812#M903326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any one pls give me some idea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 02:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754812#M903326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T02:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue- pls help urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754813#M903327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to give the fields in order  in where condition and also when u are selecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT HKONT  budat  waers blart dmbtr sgtxt  aufnr 
INTO TABLE it_detail
FROM bsis
WHERE bukrs = p_bukrs
  AND HKONT in S_HKONT
  AND budat IN s_budat
  AND blart IN s_blart
  AND aufnr in S_aufnr
  AND werks = p_werks.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 02:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754813#M903327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T02:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue- pls help urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754814#M903328</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;1) First of all try to use as many keys for selecting the BSIS table in the correct order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Sort it_detail with a particular field. If possible declare the internal table as binary sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Use a structure for it_details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Instead of passing &lt;/P&gt;&lt;P&gt;it_sum-budat = it_detail-budat.&lt;/P&gt;&lt;P&gt;it_sum-hkont = it_detail-hkont.&lt;/P&gt;&lt;P&gt;it_sum-aufnr = it_detail-aufnr.&lt;/P&gt;&lt;P&gt;it_sum-blart = it_detail-blart.&lt;/P&gt;&lt;P&gt;it_sum-sgtxt = it_detail-sgtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use move-corresponding it_detail to it_sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) Use read table as much as you can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this were useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 02:38:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754814#M903328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T02:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue- pls help urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754815#M903329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u pls tell me how to do below one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Use a structure for it_details.&lt;/P&gt;&lt;P&gt;5) Use read table as much as you can.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 03:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754815#M903329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T03:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue- pls help urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754816#M903330</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 have issue in the loop statement wherein you are using the function module inside. Its better use the table tcurf wherein the same currency convertion data is available. Either use for all entries or else use at the end of writing so that u can save more runtime.&lt;/P&gt;&lt;P&gt;Hope it can resolve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 03:43:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754816#M903330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T03:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue- pls help urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754817#M903331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u are modifying all records in the internal table then u need to use loop statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read statement fetches/reads only one record. so u can't modify all the records with the read statement. again u need to keep the read ststement in some looping condition to modify all records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;according to ur requirment loop statement is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But u are using the function module to convert currency. It may be the problem u are facing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 03:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754817#M903331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T03:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue- pls help urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754818#M903332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;anyone pls help me out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 04:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754818#M903332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T04:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue- pls help urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754819#M903333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write ur select statement as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs hkont budat waers blart dmbtr sgtxt aufnr&lt;/P&gt;&lt;P&gt;          from bsis&lt;/P&gt;&lt;P&gt;          into table i_details&lt;/P&gt;&lt;P&gt;          where bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;         AND HKONT in S_HKONT&lt;/P&gt;&lt;P&gt;         AND budat in s_budate&lt;/P&gt;&lt;P&gt;         AND blart IN s_blart&lt;/P&gt;&lt;P&gt;         AND aufnr in S_aufnr&lt;/P&gt;&lt;P&gt;        AND werks = p_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and ur i_detail structure should in the same order as u selected in the select querry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if database table contains huge entries then select statement will give u performence issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if the above select is also giving performence issue,&lt;/P&gt;&lt;P&gt;try to write select querry as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from bsis into i_detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_detail here is type table of bsis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one more is........&lt;/P&gt;&lt;P&gt;loop at i_details.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second time also u have used it for getting data into i_sum.&lt;/P&gt;&lt;P&gt;here u can get this data in the first loop it self.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope it will work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kusuma kurapati on May 8, 2008 8:29 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kusuma kurapati on May 8, 2008 8:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 06:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754819#M903333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T06:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue- pls help urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754820#M903334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar try this out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  get_data
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM get_data .
  SELECT hkont  budat  waers blart dmbtr sgtxt  aufnr
  INTO TABLE it_detail
  FROM bsis
  WHERE bukrs = p_bukrs  AND hkont IN s_hkont AND
        budat IN s_budat AND blart IN s_blart AND
        aufnr IN s_aufnr AND werks = p_werks.

  SORT it_detail.

  CHECK p_waers IS NOT INITIAL.

  LOOP AT it_detail.
    CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'
      EXPORTING
        date             = p_xdate
        foreign_currency = p_waers
        local_amount     = it_detail-dmbtr
        local_currency   = it_detail-waers
        type_of_rate     = p_kurst
      IMPORTING
        foreign_amount   = it_detail-dmbtr
      EXCEPTIONS
        no_rate_found    = 1
        overflow         = 2
        no_factors_found = 3
        OTHERS           = 4.
        
    IF sy-subrc = 0.
      CLEAR it_detail-waers.
      it_detail-waers = p_waers.
      MODIFY it_detail. " transporting dmbtr.
    ENDIF.

    MOVE-CORRESPONDING it_detail TO it_sum.

    IF it_detail-blart = 'GI' .
      it_sum-raw = it_detail-dmbtr.
    ELSEIF it_detail-blart = 'GG' AND it_detail-sgtxt(1) NE 'S' .
      it_sum-external = it_detail-dmbtr.
    ELSEIF it_detail-blart = 'GG' AND it_detail-sgtxt(1) = 'S' .
      it_sum-standard = it_detail-dmbtr.
    ELSEIF it_detail-blart = 'SA' AND it_detail-sgtxt(2) = 'DR' .
      it_sum-machine = it_detail-dmbtr.
    ELSE.
      it_sum-others = it_detail-dmbtr.
    ENDIF.

    it_sum-total = it_sum-raw     + it_sum-external + it_sum-standard +
                   it_sum-machine + it_sum-others.
    APPEND   it_sum.
    CLEAR  : it_sum, it_detail.
  ENDLOOP.
ENDFORM. " get_data

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 06:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-pls-help-urgent/m-p/3754820#M903334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T06:54:46Z</dc:date>
    </item>
  </channel>
</rss>

