<?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: Improve performance: Data from Source Table  to Target Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038057#M718858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Than you need to define it with the types:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: begin of tp_itab.
COMP_CODE type /BIC/AZDPFMGL000-COMP_CODE,
/BIC/ZCONSUNIT type /BIC/AZDAMPATH00-/BIC/ZCONSUNIT,
PROFIT_CTR type /BIC/AZDPFMGL000-PROFIT_CTR,
/BIC/ZSTARTD type /BIC/AZDAMPATH00-/BIC/ZSTARTD,
/BIC/ZPRDATE type /BIC/AZDAMPATH00-/BIC/ZPRDATE,
end of tp_itab.

data: itab type standarad table of tp_itab.  " Internal table
data: wa_itab type tp_itab.  " work aread&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2007 18:14:55 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2007-11-02T18:14:55Z</dc:date>
    <item>
      <title>Improve performance: Data from Source Table  to Target Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038047#M718848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote the below Code WHERE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        soniya kapoor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 15:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038047#M718848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T15:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Improve performance: Data from Source Table  to Target Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038048#M718849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soniya,&lt;/P&gt;&lt;P&gt;Just do below changes and see the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**append wa_zdtg to /BIC/AZDBREB_000&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update table /BIC/AZDBREB_000 set&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MODIFY /BIC/AZDPFMGL000 FROM table t_aztgl.&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;TO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;**append wa_zdtg to /BIC/AZDBREB_000&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update table /BIC/AZDBREB_000 set&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY /BIC/AZDPFMGL000 FROM table t_aztgl.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&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>Fri, 02 Nov 2007 15:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038048#M718849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T15:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Improve performance: Data from Source Table  to Target Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038049#M718850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out this part of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab into wa_itab.

read table t_aztgl with key comp_code = wa_itab-comp_code
PROFIT_CTR = wa_itab-PROFIT_CTR
into wa_zdtg
binary search.



if sy-subrc = 0.
wa_zdtg-/BIC/ZEMPCODE = wa_itab--/BIC/ZEMPCODE.

modify t_aztgl from wa_zdtg index sy-tabix.

append t_aztgl.  "&amp;lt;&amp;lt; 

**append wa_zdtg to /BIC/AZDBREB_000
* Update table /BIC/AZDBREB_000 set

endif.

endloop.


MODIFY /BIC/AZDPFMGL000 FROM table t_aztgl.  "&amp;lt;&amp;lt; I assume that you have all the data of target table /BIC/AZDPFMGL000  in the internal table T_AZTGL.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 15:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038049#M718850</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-02T15:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Improve performance: Data from Source Table  to Target Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038050#M718851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Atish and Naimesh. Atish I guess by mistake u repeated the same code withot editing . i do not see any changes. Also Naimesh To answer you we need to pick only Current Quater Data from Target Table /BIC/AZDPFMGL000&lt;/P&gt;&lt;P&gt;Can u help me edit the code to pick only  Current Quater Data from Target Table /BIC/AZDPFMGL000 Since I only want to update the Current Quater Values for ZEMPCODE and also append t_aztgl. did not help. since it is still taking long hours like 4 -6 to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me improve this bad performace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Soniya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 16:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038050#M718851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T16:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Improve performance: Data from Source Table  to Target Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038051#M718852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soniya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes there is difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I moved the MODIFY statement after the LOOP.&lt;/P&gt;&lt;P&gt;&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>Fri, 02 Nov 2007 16:04:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038051#M718852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T16:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Improve performance: Data from Source Table  to Target Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038052#M718853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Atish, I will implement this and test. But please suggest any more improvement. Alos can u tell me how to pick only current quater data and modify values of ZEMP CODE. Values already exist for ZEMP CODE IN Target table but we want to modify that every quater thats is why i wrote this code, since it is the most critical business load and it takes 6 hours to load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 16:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038052#M718853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T16:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Improve performance: Data from Source Table  to Target Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038053#M718854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soniya,&lt;/P&gt;&lt;P&gt;I think this will make a good improvement in performance. &lt;/P&gt;&lt;P&gt;&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>Fri, 02 Nov 2007 16:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038053#M718854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T16:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Improve performance: Data from Source Table  to Target Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038054#M718855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have that much data than, you have to wait ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more suggetion I want to give you in the select queries:&lt;/P&gt;&lt;P&gt;Define your itab like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0 with header line,&lt;/P&gt;&lt;P&gt;COMP_CODE like /BIC/AZDPFMGL000-COMP_CODE, &lt;/P&gt;&lt;P&gt;PROFIT_CTR  like /BIC/AZDPFMGL000-PROFIT_CTR,&lt;/P&gt;&lt;P&gt;/BIC/ZEMPCODE  like /BIC/AZDAMPATH00-/BIC/ZEMPCODE,&lt;/P&gt;&lt;P&gt;/BIC/ZSTARTD like /BIC/AZDAMPATH00-/BIC/ZEMPCODE,&lt;/P&gt;&lt;P&gt;/BIC/ZPRDATE like /BIC/AZDAMPATH00-/BIC/ZPRDATE,&lt;/P&gt;&lt;P&gt;end of itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a~COMP_CODE&lt;/P&gt;&lt;P&gt;a~PROFIT_CTR &lt;/P&gt;&lt;P&gt;b&lt;SUB&gt;/BIC/ZEMPCODE b&lt;/SUB&gt;/BIC/ZSTARTD b~/BIC/ZPRDATE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;into corresponding fields of table itab   " &amp;lt;&amp;lt;&amp;lt; &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;into table itab                                   "&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;from /BIC/AZDPFMGL000 as a INNER join&lt;/P&gt;&lt;P&gt;/BIC/AZDAMPATH00 as b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;comp_code EQ b&lt;/SUB&gt;COMP_CODE&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;PROFIT_CTR EQ b&lt;/SUB&gt;PROFIT_CTR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because into correcponding fields will take much time.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 16:08:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038054#M718855</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-02T16:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Improve performance: Data from Source Table  to Target Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038055#M718856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Atish and Naimesh. I will implement your suggestions, But can u edit my code how to pick only current quater data ie Fiscper 010 -012.2007 but this will vary as quater changes and I want to modify values of ZEMP CODE. Values already exist for ZEMP CODE IN Target table but we want to modify that every quater &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SONIYA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 16:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038055#M718856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T16:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Improve performance: Data from Source Table  to Target Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038056#M718857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh If I do as suggested by you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data: begin of tp_itab occurs 0 with header line,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    COMP_CODE   type  /BIC/AZDPFMGL000-COMP_CODE,&lt;/P&gt;&lt;P&gt;    /BIC/ZCONSUNIT  type  /BIC/AZDAMPATH00-/BIC/ZCONSUNIT,&lt;/P&gt;&lt;P&gt;    PROFIT_CTR   type  /BIC/AZDPFMGL000-PROFIT_CTR,&lt;/P&gt;&lt;P&gt;    /BIC/ZSTARTD   type  /BIC/AZDAMPATH00-/BIC/ZSTARTD,&lt;/P&gt;&lt;P&gt;    /BIC/ZPRDATE type  /BIC/AZDAMPATH00-/BIC/ZPRDATE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 end of tp_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the error in Start Routine Code in BI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;E:Tables with headers are no longer supported in the OO context&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 17:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038056#M718857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T17:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Improve performance: Data from Source Table  to Target Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038057#M718858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Than you need to define it with the types:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: begin of tp_itab.
COMP_CODE type /BIC/AZDPFMGL000-COMP_CODE,
/BIC/ZCONSUNIT type /BIC/AZDAMPATH00-/BIC/ZCONSUNIT,
PROFIT_CTR type /BIC/AZDPFMGL000-PROFIT_CTR,
/BIC/ZSTARTD type /BIC/AZDAMPATH00-/BIC/ZSTARTD,
/BIC/ZPRDATE type /BIC/AZDAMPATH00-/BIC/ZPRDATE,
end of tp_itab.

data: itab type standarad table of tp_itab.  " Internal table
data: wa_itab type tp_itab.  " work aread&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 18:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-data-from-source-table-to-target-table/m-p/3038057#M718858</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-02T18:14:55Z</dc:date>
    </item>
  </channel>
</rss>

