<?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: dump in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump/m-p/2742092#M637181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;First you are writting a select statement inside a loop which is not acceptable from performance point of view. that try passing the primary field values while retrieving the values from the table CDHDR and also instead of passing UDATE BETWEEN ZDATE-LOW AND ZDATE-HIGH.you can try to use UPDATE IN S_DATE(select option).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW to improve the performance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Try passing the primary field values while retrieving the data form dtab.&lt;/P&gt;&lt;P&gt;2.instead of hitting the data base table again and again inside the loop you can use select &amp;lt;field names &amp;gt; from chdphr into &amp;lt;internal table &amp;gt;for all enteries in table itab where....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and than can read the values form &amp;lt;internal table&amp;gt; to modify itab.&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;ANd than can&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Sep 2007 10:56:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-08T10:56:59Z</dc:date>
    <item>
      <title>dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump/m-p/2742091#M637180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is my part of coding, this is the place where my program goes to dump for time exceeds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to correct this coding and how about the performance of the tables cdhdr and cdpos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it1.&lt;/P&gt;&lt;P&gt; if zdate-high is not initial.&lt;/P&gt;&lt;P&gt;     select single CHANGENR UDATE UTIME&lt;/P&gt;&lt;P&gt;            from cdhdr&lt;/P&gt;&lt;P&gt;            into (it1-CHANGENR1   , it1-UDATE , it1-UTIME)&lt;/P&gt;&lt;P&gt;            where CHANGENR = it1-CHANGENR and&lt;/P&gt;&lt;P&gt;                  UDATE BETWEEN ZDATE-LOW AND ZDATE-HIGH.&lt;/P&gt;&lt;P&gt;     IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;     modify it1.&lt;/P&gt;&lt;P&gt;     ELSE.&lt;/P&gt;&lt;P&gt;       DELETE IT1.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt;     select single CHANGENR UDATE UTIME&lt;/P&gt;&lt;P&gt;            from cdhdr&lt;/P&gt;&lt;P&gt;            into (it1-CHANGENR1   , it1-UDATE , it1-UTIME)&lt;/P&gt;&lt;P&gt;            where CHANGENR = it1-CHANGENR and&lt;/P&gt;&lt;P&gt;                  UDATE = ZDATE-LOW.&lt;/P&gt;&lt;P&gt;     IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;     modify it1.&lt;/P&gt;&lt;P&gt;     ELSE.&lt;/P&gt;&lt;P&gt;       DELETE IT1.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2007 10:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump/m-p/2742091#M637180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-08T10:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump/m-p/2742092#M637181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;First you are writting a select statement inside a loop which is not acceptable from performance point of view. that try passing the primary field values while retrieving the values from the table CDHDR and also instead of passing UDATE BETWEEN ZDATE-LOW AND ZDATE-HIGH.you can try to use UPDATE IN S_DATE(select option).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW to improve the performance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Try passing the primary field values while retrieving the data form dtab.&lt;/P&gt;&lt;P&gt;2.instead of hitting the data base table again and again inside the loop you can use select &amp;lt;field names &amp;gt; from chdphr into &amp;lt;internal table &amp;gt;for all enteries in table itab where....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and than can read the values form &amp;lt;internal table&amp;gt; to modify itab.&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;ANd than can&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2007 10:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump/m-p/2742092#M637181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-08T10:56:59Z</dc:date>
    </item>
  </channel>
</rss>

