<?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 and get parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284572#M153561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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. 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;To fill one, use:&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;This statement saves the contents of field &amp;lt;f&amp;gt; under the ID &amp;lt;pid&amp;gt; in the SAP memory. The code &amp;lt;pid&amp;gt; can be up to 20 characters long. If there was already a value stored under &amp;lt;pid&amp;gt;, this statement overwrites it. If the ID &amp;lt;pid&amp;gt; does not exist, double-click &amp;lt;pid&amp;gt; in the ABAP Editor to create a new parameter object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read an SPA/GPA parameter, use:&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;This statement fills the value stored under the ID &amp;lt;pid&amp;gt; into the variable &amp;lt;f&amp;gt;. If the system does not find a value for &amp;lt;pid&amp;gt; in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relevant fields must each be linked to an SPA/GPA parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a screen, you link fields to parameters in the Screen Painter. When you define the field attributes of an input field, you can enter the name of an SPA/GPA parameter in the Parameter ID field in the screen attributes. The SET parameter and GET parameter checkboxes allow you to specify whether the field should be filled from the corresponding SPA/GPA parameter in the PBO event, and whether the SPA/GPA parameter should be filled with the value from the screen in the PAI event. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When an input field is linked to an SPA/GPA parameter, it is initialized with the current value of the parameter each time the screen is displayed. This is the reason why fields on screens in the R/3 System often already contain values when you call them more than once. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call programs, you can use SPA/GPA parameters with no additional programming overhead if, for example, you need to fill obligatory fields on the initial screen of the called program. The system simply transfers the values from the parameters into the input fields of the called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you can control the contents of the parameters from your program by using the SET PARAMETER statement before the actual program call. This technique is particularly useful if you want to skip the initial screen of the called program and that screen contains obligatory fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reading Data Objects from Memory&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read data objects from ABAP memory into an ABAP program, use the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT &amp;lt;f1&amp;gt; [TO &amp;lt;g 1&amp;gt;] &amp;lt;f 2&amp;gt; [TO &amp;lt;g 2&amp;gt;] ... FROM MEMORY ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO &amp;lt;g i &amp;gt; option, the data object &amp;lt;f i &amp;gt; in memory is assigned to the data object in the program with the same name. If you do use the option, the data object &amp;lt;f i &amp;gt; is read from memory into the field &amp;lt;g i &amp;gt;. The name &amp;lt;key&amp;gt; identifies the cluster in memory. It may be up to 32 characters long. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not have to read all of the objects stored under a particular name &amp;lt;key&amp;gt;. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name &amp;lt;key&amp;gt;, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name &amp;lt;key&amp;gt;, SY-SUBRC is always 0, regardless of whether it contained the data object &amp;lt;f i &amp;gt;. If the cluster does not contain the data object &amp;lt;f i &amp;gt;, the target field remains unchanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Saving Data Objects in Memory&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read data objects from an ABAP program into ABAP memory, use the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT &amp;lt;f1&amp;gt; [FROM &amp;lt;g 1&amp;gt;] &amp;lt;f 2&amp;gt; [FROM &amp;lt;g 2&amp;gt;] ... TO MEMORY ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement stores the data objects specified in the list as a cluster in memory. If you do not use the option FROM &amp;lt;f i &amp;gt;, the data object &amp;lt;f i &amp;gt; is saved under its own name. If you use the FROM &amp;lt;g i &amp;gt; option, the data objet &amp;lt;g i &amp;gt; is saved under the name &amp;lt;f i &amp;gt;. The name &amp;lt;key&amp;gt; identifies the cluster in memory. It may be up to 32 characters long. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Apr 2006 09:18:26 GMT</pubDate>
    <dc:creator>vinod_gunaware2</dc:creator>
    <dc:date>2006-04-10T09:18:26Z</dc:date>
    <item>
      <title>set and get parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284566#M153555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;    Can anybody clarify this doubt.&lt;/P&gt;&lt;P&gt;Why sometimes set and get parameter statement.&lt;/P&gt;&lt;P&gt;at the same time inport export will work.&lt;/P&gt;&lt;P&gt;where import export don't work set get will work&lt;/P&gt;&lt;P&gt;Plz clarify.&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 07:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284566#M153555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T07:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: set and get parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284567#M153556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;example........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: cac_kokrs like coas-kokrs,&lt;/P&gt;&lt;P&gt;get parameter id 'CAC' field cac_kokrs.WRITE CAC_KOKRS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter ID 'CAC' is checked in SAP MEMORY and if it is there, it is assigned to cac_kokrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameter id will be unique for a particular field in&lt;/P&gt;&lt;P&gt;SAP MEMORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U CAN ALSO USE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET parameter id 'CAC' field cac_kokrs. ABOVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT THE DIFFERENCE BETWEEN THE TWO IS AS FOLLOWS:&lt;/P&gt;&lt;P&gt;get parameter id&lt;/P&gt;&lt;P&gt;DATA: para TYPE tpara-paramid VALUE 'RID', &lt;/P&gt;&lt;P&gt;prog TYPE sy-repid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PARAMETER ID para FIELD prog. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;MESSAGE 'Parameter not found' TYPE 'I'. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;1.in the above syntax para is a variable for which parameter id is assigned.&lt;/P&gt;&lt;P&gt;2. get parameter id returns sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set parametr id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER ID: 'CAR' FIELD carrier, &lt;/P&gt;&lt;P&gt;'CON' FIELD connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. the parameter id 'CAR' is static , u cant use variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 07:56:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284567#M153556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T07:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: set and get parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284568#M153557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prashanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT and EXPORT are program specific (ABAP Memory) and it depends on what memory id the developer is giving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where SET / GET PARAMETER, there is a memory id associated with a field all the time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use IMPORT / EXPORT when you want to pass something to Standard programs, like for example CALL TRANSACTION tcode AND SKIP FIRST SCREEN. Here you will have to use the SET/GET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 07:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284568#M153557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T07:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: set and get parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284569#M153558</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;You should have particular problem with that stataments, only GET PARAMETER should fail if SET PARAMETER is not done before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see the actived PARAMETER in debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyeway the PARAMETER has to be defined by SE80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 07:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284569#M153558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T07:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: set and get parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284570#M153559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U CAN SEE THAT ABAP MEMORY IS SUBSET OF SAP MEMORY.&lt;/P&gt;&lt;P&gt;SO WHAT EVE WORKS IN SUBEST WILL WORK IN SUPERSET BUT NOT VICEVERSA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are three types of memories.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ABAP MEMORY&lt;/P&gt;&lt;P&gt;2. SAP MEMORY&lt;/P&gt;&lt;P&gt;3. EXTERNAL MEMORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.we will use EXPORT/ IMPORT TO/ FROM MEMORY-ID when we want to transfer between ABAP memory&lt;/P&gt;&lt;P&gt;2. we will use GET PARAMETER ID/ SET PARAMETER ID to transfer between SAP MEMORY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. we will use EXPORT/IMPORT TO/FROM SHARED BUFFER to transfer between external memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP MEMORY : we can say that two reports in the same session will be in ABAP MEMORY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP MEMORY: TWO DIFFERENT SESSIONS WILL BE IN SAP MEMORY.&lt;/P&gt;&lt;P&gt;for ex: IF WE CALL TWO DIFFERENT TRANSACTIONS SE38, SE11&lt;/P&gt;&lt;P&gt;then they both are in SAP MEMORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXTERNAL MEMORY: TWO different logons will be in EXTERNAL MEMORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Hymavathi Oruganti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 07:59:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284570#M153559</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-04-10T07:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: set and get parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284571#M153560</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;Chk this link for some infor on set &amp;amp; get params:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="733215"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 08:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284571#M153560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T08:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: set and get parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284572#M153561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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. 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;To fill one, use:&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;This statement saves the contents of field &amp;lt;f&amp;gt; under the ID &amp;lt;pid&amp;gt; in the SAP memory. The code &amp;lt;pid&amp;gt; can be up to 20 characters long. If there was already a value stored under &amp;lt;pid&amp;gt;, this statement overwrites it. If the ID &amp;lt;pid&amp;gt; does not exist, double-click &amp;lt;pid&amp;gt; in the ABAP Editor to create a new parameter object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read an SPA/GPA parameter, use:&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;This statement fills the value stored under the ID &amp;lt;pid&amp;gt; into the variable &amp;lt;f&amp;gt;. If the system does not find a value for &amp;lt;pid&amp;gt; in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relevant fields must each be linked to an SPA/GPA parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a screen, you link fields to parameters in the Screen Painter. When you define the field attributes of an input field, you can enter the name of an SPA/GPA parameter in the Parameter ID field in the screen attributes. The SET parameter and GET parameter checkboxes allow you to specify whether the field should be filled from the corresponding SPA/GPA parameter in the PBO event, and whether the SPA/GPA parameter should be filled with the value from the screen in the PAI event. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When an input field is linked to an SPA/GPA parameter, it is initialized with the current value of the parameter each time the screen is displayed. This is the reason why fields on screens in the R/3 System often already contain values when you call them more than once. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call programs, you can use SPA/GPA parameters with no additional programming overhead if, for example, you need to fill obligatory fields on the initial screen of the called program. The system simply transfers the values from the parameters into the input fields of the called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you can control the contents of the parameters from your program by using the SET PARAMETER statement before the actual program call. This technique is particularly useful if you want to skip the initial screen of the called program and that screen contains obligatory fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reading Data Objects from Memory&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read data objects from ABAP memory into an ABAP program, use the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT &amp;lt;f1&amp;gt; [TO &amp;lt;g 1&amp;gt;] &amp;lt;f 2&amp;gt; [TO &amp;lt;g 2&amp;gt;] ... FROM MEMORY ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO &amp;lt;g i &amp;gt; option, the data object &amp;lt;f i &amp;gt; in memory is assigned to the data object in the program with the same name. If you do use the option, the data object &amp;lt;f i &amp;gt; is read from memory into the field &amp;lt;g i &amp;gt;. The name &amp;lt;key&amp;gt; identifies the cluster in memory. It may be up to 32 characters long. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not have to read all of the objects stored under a particular name &amp;lt;key&amp;gt;. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name &amp;lt;key&amp;gt;, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name &amp;lt;key&amp;gt;, SY-SUBRC is always 0, regardless of whether it contained the data object &amp;lt;f i &amp;gt;. If the cluster does not contain the data object &amp;lt;f i &amp;gt;, the target field remains unchanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Saving Data Objects in Memory&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read data objects from an ABAP program into ABAP memory, use the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT &amp;lt;f1&amp;gt; [FROM &amp;lt;g 1&amp;gt;] &amp;lt;f 2&amp;gt; [FROM &amp;lt;g 2&amp;gt;] ... TO MEMORY ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement stores the data objects specified in the list as a cluster in memory. If you do not use the option FROM &amp;lt;f i &amp;gt;, the data object &amp;lt;f i &amp;gt; is saved under its own name. If you use the FROM &amp;lt;g i &amp;gt; option, the data objet &amp;lt;g i &amp;gt; is saved under the name &amp;lt;f i &amp;gt;. The name &amp;lt;key&amp;gt; identifies the cluster in memory. It may be up to 32 characters long. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 09:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-and-get-parameter/m-p/1284572#M153561</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-04-10T09:18:26Z</dc:date>
    </item>
  </channel>
</rss>

