<?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: How to avoid memory freeing in dynamic programs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-memory-freeing-in-dynamic-programs/m-p/1205989#M132245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply and your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately i have a reference in this structure and i cannot use "export" and/or "import" statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I get an error: "Cannot export references")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Apr 2006 11:35:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-10T11:35:48Z</dc:date>
    <item>
      <title>How to avoid memory freeing in dynamic programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-memory-freeing-in-dynamic-programs/m-p/1205987#M132243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written a abap code statement which dynamically generates a transient abap program!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This dynamic generated program has a return structure, which will be filled inside the dynamic program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After calling the program from a normal abap program, the return structure has the status "freed stack".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason is clear: the resources of the program are "freed" after completion of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to avoid this process and use the data received from the dynamic generated program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance...&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 10:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-memory-freeing-in-dynamic-programs/m-p/1205987#M132243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T10:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid memory freeing in dynamic programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-memory-freeing-in-dynamic-programs/m-p/1205988#M132244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your dynamic generated program, you can use EXPORT itab = itab TO MEMORY. and in you main program you can receive that data by IMPORT from memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will slove your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points, if it is useful..!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 11:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-memory-freeing-in-dynamic-programs/m-p/1205988#M132244</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-04-10T11:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid memory freeing in dynamic programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-memory-freeing-in-dynamic-programs/m-p/1205989#M132245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply and your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately i have a reference in this structure and i cannot use "export" and/or "import" statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I get an error: "Cannot export references")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 11:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-memory-freeing-in-dynamic-programs/m-p/1205989#M132245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T11:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid memory freeing in dynamic programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-memory-freeing-in-dynamic-programs/m-p/1205990#M132246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you been able to solve your problem?&lt;/P&gt;&lt;P&gt;I have a similar problem, loosing a reference&lt;/P&gt;&lt;P&gt;to a class. Would be interested how you&lt;/P&gt;&lt;P&gt;solved this problem.&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;Rolf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 02:25:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-memory-freeing-in-dynamic-programs/m-p/1205990#M132246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T02:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid memory freeing in dynamic programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-memory-freeing-in-dynamic-programs/m-p/1205991#M132247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;I solved the Problem by copying the old reference variable in a global new referrence variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;data&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lo_data_ref &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;CL_ABAP_DATADESCR&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;lo_data_ref ?= CL_ABAP_DATADESCR&lt;SPAN class="L0S70"&gt;=&amp;gt;describe_by_data_ref&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&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; p_data_ref &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;ADD_EVENT_DATA &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CREATE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;wd_this&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;mr_bo_data &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;HANDLE lo_data_ref&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;assign&amp;nbsp; &lt;/SPAN&gt;wd_this&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;mr_bo_data&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;&amp;lt;ls_add_event_data&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;assign &lt;/SPAN&gt;ADD_EVENT_DATA&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;&amp;lt;ls_add_event_data_copy&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ls_add_event_data&amp;gt; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&amp;lt;ls_add_event_data_copy&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADD_EVENT_DATA is the local old refernce variable which was ´freed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 23:13:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-memory-freeing-in-dynamic-programs/m-p/1205991#M132247</guid>
      <dc:creator>edemey</dc:creator>
      <dc:date>2013-10-30T23:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid memory freeing in dynamic programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-memory-freeing-in-dynamic-programs/m-p/1205992#M132248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edgar, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sounds correct but I have not tested it.... 7 years is a long time and I can't remember the project&lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1925/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 11:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-memory-freeing-in-dynamic-programs/m-p/1205992#M132248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-31T11:00:58Z</dc:date>
    </item>
  </channel>
</rss>

