<?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: Determine memory allocation to the current work process during report execution. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536631#M1751385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer below link.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/message/3797832"&gt;http://scn.sap.com/message/3797832&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Jun 2013 16:28:09 GMT</pubDate>
    <dc:creator>anilkumar_kalkivai</dc:creator>
    <dc:date>2013-06-30T16:28:09Z</dc:date>
    <item>
      <title>Determine memory allocation to the current work process during report execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536629#M1751383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where I need to stop a report from dumping in case internal table memory can't be expanded farther.&lt;/P&gt;&lt;P&gt;Error : &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;TSV_TNEW_PAGE_ALLOC_FAILED &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This dump occurs when a particular internal table has huge no of records and can not take farther.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had two ways in mind to avoid this dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Handle this exception.&lt;/P&gt;&lt;P&gt;2. Determine memory allocated for this work process (report) and then anticipate memory that will be required for the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If that is more than allocated memory, throw a message saying 'Amount of data too big.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first way I found is not possible. &lt;/P&gt;&lt;P&gt;Can anyone help me find a way to have the second method??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be some FM or call to determine the current memory allocation to this report and then somehow I will try to anticipate the memory required&lt;/P&gt;&lt;P&gt;for the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jun 2013 13:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536629#M1751383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-30T13:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Determine memory allocation to the current work process during report execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536630#M1751384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first one should be possible. Generally you can catch the exception in Try......Enddtry block and call the get_text() method to display the error text. This will prevent the program from dumping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample snippet - &amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming &lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;TSV_TNEW_PAGE_ALLOC_FAILED&lt;/SPAN&gt; is exception class's name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_ref&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE REF TO &lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;TSV_TNEW_PAGE_ALLOC_FAILED&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_err_txt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRY.&lt;/P&gt;&lt;P&gt;*-- Your code which can cause exception&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATCH &lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;TSV_TNEW_PAGE_ALLOC_FAILED&lt;/SPAN&gt; INTO lv_ref.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_err_txt = lv_ref-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDTRY.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF lv_err_txt IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MESSAGE lv_err_txt TYPE 'E'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert if i didn't understand you correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jun 2013 16:16:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536630#M1751384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-30T16:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Determine memory allocation to the current work process during report execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536631#M1751385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer below link.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/message/3797832"&gt;http://scn.sap.com/message/3797832&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jun 2013 16:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536631#M1751385</guid>
      <dc:creator>anilkumar_kalkivai</dc:creator>
      <dc:date>2013-06-30T16:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Determine memory allocation to the current work process during report execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536632#M1751386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 15:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536632#M1751386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-22T15:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Determine memory allocation to the current work process during report execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536633#M1751387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I skipped this procedure and went for totally different solution.&lt;/P&gt;&lt;P&gt;Memory management in SAP is a very complex and random process and going after this for a custom program is not advisable from my point of view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 15:14:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536633#M1751387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-22T15:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Determine memory allocation to the current work process during report execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536634#M1751388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for the record:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The class &lt;SPAN style="font-family: 'courier new', courier;"&gt;CL_ABAP_MEMORY_UTILITIES&lt;/SPAN&gt; and its static methods can help you out (at times).&lt;/P&gt;&lt;P&gt;Especially &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CL_ABAP_MEMORY_UTILITIES=&amp;gt;GET_MEMORY_SIZE_OF_OBJECT( )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 11:31:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536634#M1751388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-23T11:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Determine memory allocation to the current work process during report execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536635#M1751389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to find the amount of memory allocated to individual workprocess proceed as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) goto tcode -&amp;gt;sm66&lt;/P&gt;&lt;P&gt;2)from the menu bar processlist-&amp;gt;display-&amp;gt;memoryusage &lt;/P&gt;&lt;P&gt;you can find out memory consumed by all workprocess globally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arjun Shenoy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 11:40:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-memory-allocation-to-the-current-work-process-during-report/m-p/9536635#M1751389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-23T11:40:40Z</dc:date>
    </item>
  </channel>
</rss>

