<?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: IMPORT AND EXPORT MEMORY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975207#M399644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if v_flag ne 'X'.
  IMPORT flag_linked FROM MEMORY ID 'ZLINKED_FLAG'.
  v_flag = 'X'.
endif.
if v_flag = 'X' .
IF flag_linked NE 'X'.
flag_linked = 'X'.
EXPORT flag_linked TO MEMORY ID 'ZLINKED_FLAG'.

.........code.....
endif.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Feb 2007 19:27:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-26T19:27:08Z</dc:date>
    <item>
      <title>IMPORT AND EXPORT MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975198#M399635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;Below is the code I am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IMPORT flag_linked FROM MEMORY ID 'ZLINKED_FLAG'.&lt;/P&gt;&lt;P&gt;      IF flag_linked NE 'X'.&lt;/P&gt;&lt;P&gt;        flag_linked = 'X'.&lt;/P&gt;&lt;P&gt;        EXPORT flag_linked TO MEMORY ID 'ZLINKED_FLAG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   .........code.....&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am execuing the program for the first time everything works fine and the Import statement fails. However when I am executing the program the second time the Import statement is successful in the first attempt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its a exit so will trigger couple iof times. So how would i clear the memory when the program is executed completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Madhu..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 18:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975198#M399635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T18:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT AND EXPORT MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975199#M399636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the statement FREE MEMORY ID  'ZLINKED_FLAG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 18:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975199#M399636</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-02-26T18:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT AND EXPORT MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975200#M399637</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;WHen the program is completed the memory values will automatically be erased..as these values are stored in the ABAP memory...And not in SAP memory..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also please check the documentation for detailed explanation of IMPORT and EXPORT statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 18:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975200#M399637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T18:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT AND EXPORT MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975201#M399638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;Please see link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3bf8358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3bf8358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To delete data clusters, you can use the following statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        FREE MEMORY deletes all data cluster from the ABAP memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        DELETE FROM ... ID id deletes a data cluster with the identification id, which was stored in the ABAP memory of a database table, or in an application buffer of an application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,Nishant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 18:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975201#M399638</guid>
      <dc:creator>former_member195032</dc:creator>
      <dc:date>2007-02-26T18:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT AND EXPORT MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975202#M399639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use FREE MEMORY statement to clear memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move space to flag_linked.&lt;/P&gt;&lt;P&gt;EXPORT flag_linked TO MEMORY ID 'ZLINKED_FLAG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 18:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975202#M399639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T18:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT AND EXPORT MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975203#M399640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;So Naren you mean to say once the program is completely executed the value in the field flag_linked will be blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also assumed so but i dont know why I see the value after the Import statement is triggered.&lt;/P&gt;&lt;P&gt;The exits trigger when a PO is created. However when i close the window and execute it it looks fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions.&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 18:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975203#M399640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T18:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT AND EXPORT MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975204#M399641</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;Yes..Once the program is completed..The value in the memory will be blank..But to make to sure..you can give FREE MEMORY ID 'xxxx'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this simple report...Execute the report more than once...It will show no memory...But you have to completely go out of the transaction SE38...To make it work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_value(2) VALUE '99'.&lt;/P&gt;&lt;P&gt;DATA: v_value_get(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT v_value = v_value_get FROM MEMORY ID 'ZTEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  WRITE: / v_value_get.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  WRITE: / 'No memory'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_value_get = '89'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT v_value = v_value_get TO MEMORY ID 'ZTEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also to be on the safer side...You can use FREE MEMORY ID 'ZTEST' to clear it immediately...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 19:13:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975204#M399641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T19:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT AND EXPORT MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975205#M399642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Naren.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant use free memory in my case because the exit is triggered many times and i cant free memory in between. If i need to i should free only when the exit would be triggered for the last time, but i dont know when would it trigger the last time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Madhu...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 19:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975205#M399642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T19:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT AND EXPORT MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975206#M399643</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;If we don't when exactly to free the memory...Then leave it as is..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned earlier..the memory will automatically get refreshed for new transactions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW...are you using IMPORT and EXPORT in the same user exit..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead you can use STATICS..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATICS: V_FLAG TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF V_FLAG IS INITIAL.    " First time..&lt;/P&gt;&lt;P&gt;  V_FLAG = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF V_FLAG = 'X'.   " Subsequent times.&lt;/P&gt;&lt;P&gt;  ..&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 19:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975206#M399643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T19:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT AND EXPORT MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975207#M399644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if v_flag ne 'X'.
  IMPORT flag_linked FROM MEMORY ID 'ZLINKED_FLAG'.
  v_flag = 'X'.
endif.
if v_flag = 'X' .
IF flag_linked NE 'X'.
flag_linked = 'X'.
EXPORT flag_linked TO MEMORY ID 'ZLINKED_FLAG'.

.........code.....
endif.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 19:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-and-export-memory/m-p/1975207#M399644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T19:27:08Z</dc:date>
    </item>
  </channel>
</rss>

