<?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 FROM / EXPORT TO MEMORY ID ... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628094#M280469</link>
    <description>&lt;P&gt;ABAP memory &lt;/P&gt;&lt;P&gt;
The contents of the ABAP memory are retained only during the lifetime of an external session (see also Organization of Modularization Units). 
You can retain or pass data across internal sessions. 
The &lt;STRONG&gt;EXPORT TO MEMORY&lt;/STRONG&gt; and &lt;STRONG&gt;IMPORT FROM MEMORY&lt;/STRONG&gt; statements allow you to write data to, or read data from, the ABAP memory.&lt;/P&gt;&lt;P&gt;For Example we have two program like this :-&lt;/P&gt;&lt;P&gt;Program 1 :- Send Data&lt;/P&gt;&lt;P&gt;Method :- IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      IF po_line-anfnr IS NOT INITIAL.
        SELECT SINGLE submi FROM ekko INTO @DATA(lv_submi)
          WHERE ebeln = @po_line-anfnr AND bsart IN ( 'AN', 'ZRFQ' ).
        IF lv_submi IS NOT INITIAL.
          EXPORT lv_submi FROM lv_submi TO MEMORY ID 'LV_SUBMI'.
        ENDIF.
      ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Program 2 :- Receive Data &lt;/P&gt;&lt;P&gt;Method :- IF_EX_ME_PROCESS_PO_CUST~PROCESS_HEADER&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:  lv_submi TYPE ekko-submi.
import lv_submi TO LV_SUBMI FROM  MEMORY ID 'LV_SUBMI'.
IF LV_SUBMI IS NOT INITIAL.
  RDATA-SUBMI = LV_SUBMI.
  FREE MEMORY ID 'LV_SUBMI'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;We can also Export Internal Table, following these steps :-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; You have to define an internal table ITAB in program ZINC_A.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; In the program ZINC_A you export your ITAB to the memory.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXPORT ITAB TO MEMORY ID 'TD'&lt;/STRONG&gt; (ID is the name of memory, you don't need to create it ).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt; In program ZINC_B you have to declare The same table (same table's name and same fields).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4.&lt;/STRONG&gt; In BBB you can import ITAB : &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IMPORT ITAB FROM MEMORY ID 'TD'&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Harshit Varshney&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jul 2021 05:27:26 GMT</pubDate>
    <dc:creator>former_member758368</dc:creator>
    <dc:date>2021-07-30T05:27:26Z</dc:date>
    <item>
      <title>IMPORT FROM / EXPORT TO MEMORY ID ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628088#M280463</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;I would like to know how to use these commands within ABAP. I referred the ABAP docu, I know the exact syntax, but it is never working that way I would like it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how can I check what is in the memory, how, can I check the value of the memory ids. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How long is visible a memory id?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example I would like to use import-export within a user-exit (MV45AFZZ) but if I exported a value to a memory id in a form, in the after the export I couldn't read any value from that memory id with an import command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And sadly I don't know how to track, what is the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 10:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628088#M280463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T10:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT FROM / EXPORT TO MEMORY ID ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628089#M280464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first check this &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ABAP memory 
The contents of the ABAP memory are retained only during the lifetime of an external session (see also Organization of Modularization Units). You can retain or pass data across internal sessions. The EXPORT TO MEMORY and IMPORT FROM MEMORY statements allow you to write data to, or read data from, the ABAP memory.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 10:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628089#M280464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T10:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT FROM / EXPORT TO MEMORY ID ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628090#M280465</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;Those command use ABAP memory so they can be used by several programs running in the same mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next step is EXPORT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT obj1 ... objn TO MEMORY ID 'ZID'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT obj1 ... objn FROM MEMORY ID 'ZID'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The objects used have to have the same name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 10:47:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628090#M280465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T10:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT FROM / EXPORT TO MEMORY ID ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628091#M280466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     export and import stores data in ABAP memory&lt;/P&gt;&lt;P&gt;     which is available in same LUW.&lt;/P&gt;&lt;P&gt;     data matnr like mara-matnr value 'TEST'&lt;/P&gt;&lt;P&gt;     export to memory ID 'test field matnr.&lt;/P&gt;&lt;P&gt;     import matnr from memory id 'TEST'&lt;/P&gt;&lt;P&gt;  here matnr in export and importv should be of same name &lt;/P&gt;&lt;P&gt;  and length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SAP global memory is used in SET,GET parameter id.&lt;/P&gt;&lt;P&gt;    they are stored in table tpara.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 10:56:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628091#M280466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T10:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT FROM / EXPORT TO MEMORY ID ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628092#M280467</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;&lt;/P&gt;&lt;P&gt;Passing data from one ABAP program to another &lt;/P&gt;&lt;P&gt;1. You have to define an internal table ITAB in program AAA.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the program AAA you export your ITAB to the memory.  &lt;/P&gt;&lt;P&gt;    EXPORT ITAB TO MEMORY ID 'TD' (ID is the name of memory, you don't need to create it ).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In program BBB you have to declare The same table (same table's name and same fields).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. In BBB you can import ITAB :  &lt;/P&gt;&lt;P&gt;    IMPORT ITAB FROM MEMORY ID 'TD'  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Now you can export it to AAA after modifications.  &lt;/P&gt;&lt;P&gt;    EXPORT ITAB TO MEMORY ID 'TD' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. In AAA :  &lt;/P&gt;&lt;P&gt;    IMPORT ITAB FROM MEMORY ID 'TD' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution is independant to SUBMIT.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 11:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628092#M280467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T11:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT FROM / EXPORT TO MEMORY ID ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628093#M280468</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 sample-abap DEMO_DATA_EXT_CLUSTER_IMPORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 11:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628093#M280468</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-09-12T11:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT FROM / EXPORT TO MEMORY ID ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628094#M280469</link>
      <description>&lt;P&gt;ABAP memory &lt;/P&gt;&lt;P&gt;
The contents of the ABAP memory are retained only during the lifetime of an external session (see also Organization of Modularization Units). 
You can retain or pass data across internal sessions. 
The &lt;STRONG&gt;EXPORT TO MEMORY&lt;/STRONG&gt; and &lt;STRONG&gt;IMPORT FROM MEMORY&lt;/STRONG&gt; statements allow you to write data to, or read data from, the ABAP memory.&lt;/P&gt;&lt;P&gt;For Example we have two program like this :-&lt;/P&gt;&lt;P&gt;Program 1 :- Send Data&lt;/P&gt;&lt;P&gt;Method :- IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      IF po_line-anfnr IS NOT INITIAL.
        SELECT SINGLE submi FROM ekko INTO @DATA(lv_submi)
          WHERE ebeln = @po_line-anfnr AND bsart IN ( 'AN', 'ZRFQ' ).
        IF lv_submi IS NOT INITIAL.
          EXPORT lv_submi FROM lv_submi TO MEMORY ID 'LV_SUBMI'.
        ENDIF.
      ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Program 2 :- Receive Data &lt;/P&gt;&lt;P&gt;Method :- IF_EX_ME_PROCESS_PO_CUST~PROCESS_HEADER&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:  lv_submi TYPE ekko-submi.
import lv_submi TO LV_SUBMI FROM  MEMORY ID 'LV_SUBMI'.
IF LV_SUBMI IS NOT INITIAL.
  RDATA-SUBMI = LV_SUBMI.
  FREE MEMORY ID 'LV_SUBMI'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;We can also Export Internal Table, following these steps :-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; You have to define an internal table ITAB in program ZINC_A.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; In the program ZINC_A you export your ITAB to the memory.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXPORT ITAB TO MEMORY ID 'TD'&lt;/STRONG&gt; (ID is the name of memory, you don't need to create it ).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt; In program ZINC_B you have to declare The same table (same table's name and same fields).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4.&lt;/STRONG&gt; In BBB you can import ITAB : &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IMPORT ITAB FROM MEMORY ID 'TD'&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Harshit Varshney&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 05:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-export-to-memory-id/m-p/1628094#M280469</guid>
      <dc:creator>former_member758368</dc:creator>
      <dc:date>2021-07-30T05:27:26Z</dc:date>
    </item>
  </channel>
</rss>

