<?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: program error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-error/m-p/2953582#M696606</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;It seems like there may be two issues with your Z program - efficiency in terms of how long it is taking to run, and resource usage in that it uses a lot of memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To fix both you need someone to look at the relevant areas of the program code and analyse what can be changed. Tools like SE30 and ST05 can provided some data to assist with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest that some basic steps you could take are:&lt;/P&gt;&lt;P&gt;1. Run the program via SE30 with a small volume of data so you get some information on the forms and tables where the problems exist. You may need to adjust the SE30 settings to get the required detail.&lt;/P&gt;&lt;P&gt;2. Run the program with ST05 trace enabled to see what database tables are being used and which ones are taking most time.&lt;/P&gt;&lt;P&gt;3. Check through the code to make sure that you are not holding large internal tables of data once you are finished with them - clear the tables to fee up memory as soon as possible.&lt;/P&gt;&lt;P&gt;4. Check the program code for known performance bad practices like selcts within loops, nested selects / loops, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To improve the program you may need to rewrite or restructure it. Generally a way to improve performance is to process more data in memory - trading memory usage for performance. In your case where both are bad, you may need to look at a redesign so that the data is processed in smaller blocks, for example by reading using a "select ... block size" construct or an "open cursor" type of processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are particular areas of the code that you believe could be improved, you can always post them in the ABAP Performance and Tuning forum to ask advice from experts around the world.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is of some assistance. Overall, performance tuning is best performed by your on site resources - it is difficult to suggest options without being able to see the code etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2007 05:55:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-12T05:55:41Z</dc:date>
    <item>
      <title>program error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-error/m-p/2953581#M696605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts !&lt;/P&gt;&lt;P&gt;While executing a program , its giving message " memory low. leave the tranaction before taking a break." but its working fine when i break my input data i.e to execute in small no . i checked it in t.c slin , which has&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM/FORM interfaces Warnings   error:  13&lt;/P&gt;&lt;P&gt;CALL FUNCTION interfaces error	:  4&lt;/P&gt;&lt;P&gt;Field Attributes Warnings: 2&lt;/P&gt;&lt;P&gt;Superfluous Statements  message   : 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Program:  ZHP0034  Include:  ZHP0034_F01  Row:     13	&lt;/P&gt;&lt;P&gt;FORM GET_PUNCHS_FROM_DB not called directly		&lt;/P&gt;&lt;P&gt;(check dynamic PERFORMs!!)		&lt;/P&gt;&lt;P&gt;(You can hide the message using "#EC CALLED)		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                            Superfluous Statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line contains a single period&lt;/P&gt;&lt;P&gt; (The message cannot be hidden using pseudo-comment "#EC .., or by using SET&lt;/P&gt;&lt;P&gt; EXTENDED CHECK OFF/ON)	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Program:  ZHP0034  Include:  ZHP0034_F01  Row:     13	&lt;/P&gt;&lt;P&gt;FORM GET_PUNCHS_FROM_DB not called directly		&lt;/P&gt;&lt;P&gt;(check dynamic PERFORMs!!)		&lt;/P&gt;&lt;P&gt;(You can hide the message using "#EC CALLED)		&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this error coming due to this errors  or is it concerned with heap memory .&lt;/P&gt;&lt;P&gt;plz guide me in this . how i can remove this error .&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 05:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-error/m-p/2953581#M696605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T05:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: program error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-error/m-p/2953582#M696606</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;It seems like there may be two issues with your Z program - efficiency in terms of how long it is taking to run, and resource usage in that it uses a lot of memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To fix both you need someone to look at the relevant areas of the program code and analyse what can be changed. Tools like SE30 and ST05 can provided some data to assist with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest that some basic steps you could take are:&lt;/P&gt;&lt;P&gt;1. Run the program via SE30 with a small volume of data so you get some information on the forms and tables where the problems exist. You may need to adjust the SE30 settings to get the required detail.&lt;/P&gt;&lt;P&gt;2. Run the program with ST05 trace enabled to see what database tables are being used and which ones are taking most time.&lt;/P&gt;&lt;P&gt;3. Check through the code to make sure that you are not holding large internal tables of data once you are finished with them - clear the tables to fee up memory as soon as possible.&lt;/P&gt;&lt;P&gt;4. Check the program code for known performance bad practices like selcts within loops, nested selects / loops, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To improve the program you may need to rewrite or restructure it. Generally a way to improve performance is to process more data in memory - trading memory usage for performance. In your case where both are bad, you may need to look at a redesign so that the data is processed in smaller blocks, for example by reading using a "select ... block size" construct or an "open cursor" type of processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are particular areas of the code that you believe could be improved, you can always post them in the ABAP Performance and Tuning forum to ask advice from experts around the world.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is of some assistance. Overall, performance tuning is best performed by your on site resources - it is difficult to suggest options without being able to see the code etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 05:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-error/m-p/2953582#M696606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T05:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: program error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-error/m-p/2953583#M696607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would suggest you to consult your basis consultant,they can give you the appropriate solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 06:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-error/m-p/2953583#M696607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T06:02:34Z</dc:date>
    </item>
  </channel>
</rss>

