<?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: set get parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412766#M819620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP Memory&lt;/P&gt;&lt;P&gt;SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another.  Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP/4 Memory&lt;/P&gt;&lt;P&gt;ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data&lt;/P&gt;&lt;P&gt;to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP memory &lt;/P&gt;&lt;P&gt;The SAP memory, otherwise known as the global memory, is available to a user during the entire duration of a terminal session. Its contents are retained across transaction boundaries as well as external and internal sessions. The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP/4 memory &lt;/P&gt;&lt;P&gt;The contents of the ABAP/4 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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Feb 2008 02:17:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-16T02:17:24Z</dc:date>
    <item>
      <title>set get parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412763#M819617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;what is the use of set ,get parameters and what is ABAP memory and SAP Memory difference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 14:37:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412763#M819617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T14:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412764#M819618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SAP memory, otherwise known as the global memory, is available to a user during the entire duration of a terminal session. Its contents are retained across transaction boundaries as well as external and internal sessions. The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAP Memory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another.  Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ABAP/4 Memory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data&lt;/P&gt;&lt;P&gt;to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 15:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412764#M819618</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-02-15T15:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412765#M819619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Functionality is same.&lt;/P&gt;&lt;P&gt;SAP Memory is global memory so it can be useful in any module in the SAP.&lt;/P&gt;&lt;P&gt;ABAP memory is local memory, that means it can be useful in the ABAP module only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using set we can store one value, by using get we can get the values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 19:44:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412765#M819619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T19:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412766#M819620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP Memory&lt;/P&gt;&lt;P&gt;SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another.  Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP/4 Memory&lt;/P&gt;&lt;P&gt;ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data&lt;/P&gt;&lt;P&gt;to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP memory &lt;/P&gt;&lt;P&gt;The SAP memory, otherwise known as the global memory, is available to a user during the entire duration of a terminal session. Its contents are retained across transaction boundaries as well as external and internal sessions. The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP/4 memory &lt;/P&gt;&lt;P&gt;The contents of the ABAP/4 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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2008 02:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412766#M819620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-16T02:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412767#M819621</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;ABAP memory: The data in the ABAP memory can be used with in session by using following staements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export &amp;lt;f1&amp;gt; [from&amp;lt;g1&amp;gt;] &amp;lt;f2&amp;gt; [from&amp;lt;g2&amp;gt;]... &amp;lt;fn&amp;gt; [from&amp;lt;gn&amp;gt;]   to&lt;/P&gt;&lt;P&gt;         memory id &amp;lt;name of memory location&amp;gt;.&lt;/P&gt;&lt;P&gt;import &amp;lt;f1&amp;gt; [to &amp;lt;g1&amp;gt;] &amp;lt;f2&amp;gt; [to &amp;lt;g2&amp;gt;]... &amp;lt;fn&amp;gt; [to&amp;lt;gn&amp;gt;] from      memory id &amp;lt;name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP memory:it is used to share the data across the session or in different transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER:&lt;/P&gt;&lt;P&gt;syntax:&lt;/P&gt;&lt;P&gt;SET PARAMETER ID &amp;lt;pid&amp;gt; FIELD &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;it is used to store a value of the field in sap memory and it is identified by parameter id(pid).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PARAMETER:&lt;/P&gt;&lt;P&gt;syntax:&lt;/P&gt;&lt;P&gt;GET PARAMETER ID&amp;lt;pid&amp;gt; FIELD &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;it is used to get data from memory location pid into the given field f.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 06:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412767#M819621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T06:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412768#M819622</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;set angd get parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Memory&lt;/P&gt;&lt;P&gt;SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP Memory &lt;/P&gt;&lt;P&gt;ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;pls reward if its useful&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 08:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412768#M819622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T08:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412769#M819623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;here is the simple answer for your Q.&lt;/P&gt;&lt;P&gt;these set/get parameter id's are basically for retriving the earlier data in your screen. suppose u r created an initial screen 100 where u need to enter some value QMNUM (QMEL-QMNUM) by executing the transaction code etc. first time you need to enter the value qmnum. next time if you execute the same transaction code, by default it will show the previous value. if you want to find the parameter id of qmnum go to table qmel. then double click on field type 'QMNUM' there you can find the parameter id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gv_fx_qmnum TYPE qmnum.&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'IQM' FIELD gv_fx_qmnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 06:16:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412769#M819623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T06:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412770#M819624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;SAP Memory &lt;/P&gt;&lt;P&gt;SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another.  Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP/4 Memory &lt;/P&gt;&lt;P&gt;ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data &lt;/P&gt;&lt;P&gt;to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP memory  &lt;/P&gt;&lt;P&gt;The SAP memory, otherwise known as the global memory, is available to a user during the entire duration of a terminal session. Its contents are retained across transaction boundaries as well as external and internal sessions. The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP/4 memory  &lt;/P&gt;&lt;P&gt;The contents of the ABAP/4 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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 09:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412770#M819624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T09:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412771#M819625</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;STRONG&gt;SET and get parameters&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAP AND ABAP MEMORY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Memory &lt;/P&gt;&lt;P&gt;SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP/4 Memory &lt;/P&gt;&lt;P&gt;ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data &lt;/P&gt;&lt;P&gt;to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP memory &lt;/P&gt;&lt;P&gt;The SAP memory, otherwise known as the global memory, is available to a user during the entire duration of a terminal session. Its contents are retained across transaction boundaries as well as external and internal sessions. The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP/4 memory &lt;/P&gt;&lt;P&gt;The contents of the ABAP/4 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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple example of ABAP memory is using the EXPORT/IMPORT statements.&lt;/P&gt;&lt;P&gt;Here in this program, I get the data, export it to memory,&lt;/P&gt;&lt;P&gt;clear out the internal table in my progam, then reimport the data into it and write out the data. &lt;/P&gt;&lt;P&gt;You probably wounldn't do this in a normal program,&lt;/P&gt;&lt;P&gt;but this is how you can pass data from program a to program b when A Submits program B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zxy_0002 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it001 type table of t001 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into table it001 from t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export it001 = it001 to memory id 'ZXY_TEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear it001. refresh it001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import it001 = it001 from memory id 'ZXY_TEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it001.&lt;/P&gt;&lt;P&gt;write:/ it001-bukrs, it001-butxt.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Memory &lt;/P&gt;&lt;P&gt;SAP memory is a memory area to which all main sessions within a SAPgui have access. &lt;/P&gt;&lt;P&gt;You can use SAP memory either to pass data from one program to another within a session, &lt;/P&gt;&lt;P&gt;or to pass data from one session to another. &lt;/P&gt;&lt;P&gt;Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters).&lt;/P&gt;&lt;P&gt;These parameters can be set either for a particular user &lt;/P&gt;&lt;P&gt;or for a particular program using the SET PARAMETER statement. &lt;/P&gt;&lt;P&gt;Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. &lt;/P&gt;&lt;P&gt;The most frequent use of SPA/GPA parameters is to fill input fields on screens &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP/4 Memory &lt;/P&gt;&lt;P&gt;ABAP memory is a memory area that all ABAP programs within the same internal session can access &lt;/P&gt;&lt;P&gt;using the EXPORT and IMPORT statements.&lt;/P&gt;&lt;P&gt;Data within this area remains intact during a whole sequence of program calls. To pass data &lt;/P&gt;&lt;P&gt;to a program which you are calling,&lt;/P&gt;&lt;P&gt;the data needs to be placed in ABAP memory before the call is made.&lt;/P&gt;&lt;P&gt;The internal session of the called program then replaces that of the calling program. &lt;/P&gt;&lt;P&gt;The program called can then read from the ABAP memory. &lt;/P&gt;&lt;P&gt;If control is then returned to the program which made the initial call, the same process operates in reverse. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP memory &lt;/P&gt;&lt;P&gt;The SAP memory, otherwise known as the global memory, &lt;/P&gt;&lt;P&gt;is available to a user during the entire duration of a terminal session. &lt;/P&gt;&lt;P&gt;Its contents are retained across transaction boundaries as well as external and internal sessions. &lt;/P&gt;&lt;P&gt;The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP/4 memory &lt;/P&gt;&lt;P&gt;The contents of the ABAP/4 memory are retained only during the lifetime of an external session &lt;/P&gt;&lt;P&gt;(see also Organization of Modularization Units).&lt;/P&gt;&lt;P&gt;You can retain or pass data across internal sessions.&lt;/P&gt;&lt;P&gt;The EXPORT TO MEMORY and IMPORT FROM MEMORY statements allow you to write data to, or read data from, the ABAP memory. &lt;/P&gt;&lt;P&gt;*************&lt;/P&gt;&lt;P&gt;SAP global memomy retains field value through out &lt;/P&gt;&lt;P&gt;session. &lt;/P&gt;&lt;P&gt;set parameter id 'MAT' field v_matnr.&lt;/P&gt;&lt;P&gt;get parameter id 'MAT' field v_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;they are stored in table TPARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP memory is temporary and values are retained&lt;/P&gt;&lt;P&gt;in same LUW.&lt;/P&gt;&lt;P&gt;export itab to memory id 'TeST'.&lt;/P&gt;&lt;P&gt;import itab from memory Id 'TEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here itab should be declared of same type and &lt;/P&gt;&lt;P&gt;length. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;progaram A&lt;/P&gt;&lt;P&gt;export itab to memory id 'TeST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program B&lt;/P&gt;&lt;P&gt;import itab from memory Id 'TEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value of itab is not retained in program b since&lt;/P&gt;&lt;P&gt;they are not in same LUW.&lt;/P&gt;&lt;P&gt;program A&lt;/P&gt;&lt;P&gt;export itab to memory id 'TeST'.&lt;/P&gt;&lt;P&gt;SUBMIT rep and return &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program B&lt;/P&gt;&lt;P&gt;import itab from memory Id 'TEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value of itab are retained in program b since&lt;/P&gt;&lt;P&gt;they are in same LUW.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="10" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 12:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412771#M819625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T12:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412772#M819626</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;STRONG&gt;SAP Memory&lt;/STRONG&gt; is global memory so it can be useful in any module in the SAP.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ABAP memory&lt;/STRONG&gt; is local memory, that means it can be useful in the ABAP module only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER:&lt;/P&gt;&lt;P&gt;syntax: SET PARAMETER ID &amp;lt;pid&amp;gt; FIELD &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;It is used to store the value of the field &amp;lt;f&amp;gt; under the id &amp;lt;pid&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PARAMETER:&lt;/P&gt;&lt;P&gt;syntax: GET PARAMETER ID&amp;lt;pid&amp;gt; FIELD &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;It is used to get data of the field &amp;lt;f&amp;gt;  stored under the id&amp;lt; pid&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;kavitha.k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 12:59:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412772#M819626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T12:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412773#M819627</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;STRONG&gt;SAP Memory&lt;/STRONG&gt; is global memory so it can be useful in any module in the SAP.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ABAP memory&lt;/STRONG&gt; is local memory, that means it can be useful in the ABAP module only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER:&lt;/P&gt;&lt;P&gt;syntax: SET PARAMETER ID &amp;lt;pid&amp;gt; FIELD &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;It is used to store the value of the field &amp;lt;f&amp;gt; under the id &amp;lt;pid&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PARAMETER:&lt;/P&gt;&lt;P&gt;syntax: GET PARAMETER ID&amp;lt;pid&amp;gt; FIELD &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;It is used to get data of the field &amp;lt;f&amp;gt;  stored under the id&amp;lt; pid&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;kavitha.k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 13:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameters/m-p/3412773#M819627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T13:00:15Z</dc:date>
    </item>
  </channel>
</rss>

