<?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 Memory Export/Import in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003746#M1165066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to modify some SAP code.  To make it easier for upgrades, I have decided to put this modification into a Z-include.  However, I need to pass some data into this include.  It tried the following but it is giving me an error in the include:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  export document to MEMORY ID 'RET'.
  include zretention_LRWCLF01.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code in the include is as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import document from MEMORY ID 'RET'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it is giving me an error saying that "Document is unknown".  What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jan 2009 17:16:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-19T17:16:30Z</dc:date>
    <item>
      <title>Memory Export/Import</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003746#M1165066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to modify some SAP code.  To make it easier for upgrades, I have decided to put this modification into a Z-include.  However, I need to pass some data into this include.  It tried the following but it is giving me an error in the include:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  export document to MEMORY ID 'RET'.
  include zretention_LRWCLF01.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code in the include is as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import document from MEMORY ID 'RET'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it is giving me an error saying that "Document is unknown".  What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 17:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003746#M1165066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T17:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Export/Import</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003747#M1165067</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;Check whether Document is globally declared or not. if not you need to decalre in the indclude .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 17:20:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003747#M1165067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T17:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Export/Import</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003748#M1165068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Davis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check whether your EXPORT command was successful first,  check SY-SUBRC when export is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT.. IMPORT works if program session is same,  make sure you are calling IMPORT.. EXPORT in the same session (sequence of programs in one go.. like batch program).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 17:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003748#M1165068</guid>
      <dc:creator>nkr1shna</dc:creator>
      <dc:date>2009-01-19T17:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Export/Import</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003749#M1165069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It isn't global to the include (SAP's include).  It is local to the form inside the include.  Is this the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 17:24:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003749#M1165069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T17:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Export/Import</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003750#M1165070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes...it should be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 17:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003750#M1165070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T17:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Export/Import</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003751#M1165071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Davis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know whether you are calling your local program from SAP standard program using any user-exit?.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 17:26:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003751#M1165071</guid>
      <dc:creator>nkr1shna</dc:creator>
      <dc:date>2009-01-19T17:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Export/Import</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003752#M1165072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing this call from a standard SAP include.  I am having to do this in order to get a user-exit to work as we need it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I added the data statements, it told me that "Document is already declared".  I am now in a loop with it as I can't declare it yet I can't "not declare it".  I also get an error saying: "Statement is not accessible" on the Import statement.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 17:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003752#M1165072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T17:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Export/Import</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003753#M1165073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your custom include and also note where you call it from the SAP include?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 17:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003753#M1165073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T17:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Export/Import</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003754#M1165074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When do you get this error ? Probably when you tried to do a syntax check or activate the include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the variable document is not global, the visibility of this variable will only be limited to the subroutine ( form ...endform) . Therefore you will need to declare a variable with the name document in the include zretention_LRWCLF01 in order to get this working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think an include is loaded only at runtime hence it is not recognizing the document variable which is why you get this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second option is to declare it in a global user exit include.&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;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 17:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003754#M1165074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T17:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Export/Import</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003755#M1165075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now my include only has a few lines:  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import document from MEMORY ID 'RET1'.
import t_accit from MEMORY ID 'RET2'.
t_accit[] = document-item[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This include is located in form Document_Change in include LRWCLF01 (line 1037) just after the BADI calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code I have added to the SAP Include:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Begin Modification for Retention
  export document to MEMORY ID 'RET1'.
  export t_accit to MEMORY ID 'RET2'.
  include zretention_LRWCLF01.
* End Modification for Retention&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Davis on Jan 19, 2009 12:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 17:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003755#M1165075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T17:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Export/Import</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003756#M1165076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather than just the three statements in your include, try making it a form with using and changing. Then call the form where you currently have the include. You can put the include statement at the top of the SAP include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 17:58:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003756#M1165076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T17:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Export/Import</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003757#M1165077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is such an obvious idea that I never thought of it.  That should fix the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 18:07:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-export-import/m-p/5003757#M1165077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T18:07:51Z</dc:date>
    </item>
  </channel>
</rss>

