<?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: WHY WE USE IMPORT EXPORT PARAMETERS ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-we-use-import-export-parameters/m-p/2821094#M659825</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;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. &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;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2007 12:40:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-26T12:40:06Z</dc:date>
    <item>
      <title>WHY WE USE IMPORT EXPORT PARAMETERS ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-we-use-import-export-parameters/m-p/2821090#M659821</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;WHY WE USE IMPORT EXPORT PARAMETERS ?&lt;/P&gt;&lt;P&gt;Can any one give me example of that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurprit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 12:34:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-we-use-import-export-parameters/m-p/2821090#M659821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T12:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: WHY WE USE IMPORT EXPORT PARAMETERS ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-we-use-import-export-parameters/m-p/2821091#M659822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;         example first use &lt;/P&gt;&lt;P&gt;        export fieldname to memory id 'PRN'.&lt;/P&gt;&lt;P&gt;        memory id should be 3 charecter&lt;/P&gt;&lt;P&gt;    and then use import&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       import fieldname to memory id 'PRN'.&lt;/P&gt;&lt;P&gt;    memory id should be same and the fieldname should be of same data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Santosh Thorat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 12:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-we-use-import-export-parameters/m-p/2821091#M659822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T12:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: WHY WE USE IMPORT EXPORT PARAMETERS ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-we-use-import-export-parameters/m-p/2821092#M659823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurprit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to pass some data.. internal table or a global variable with some value from one program to another program/User Exit/Badi/FM within the same session then you need to use IMPORT/EXPORT parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program 1&lt;/P&gt;&lt;P&gt;Has itab1 data... with 100 records&lt;/P&gt;&lt;P&gt;It will export itab1 to program2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program 2 ..is based on the 100 records from program 1..&lt;/P&gt;&lt;P&gt;so program 2 will import those 100 records from itab1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 12:39:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-we-use-import-export-parameters/m-p/2821092#M659823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T12:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: WHY WE USE IMPORT EXPORT PARAMETERS ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-we-use-import-export-parameters/m-p/2821093#M659824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;It is used for Exporting and Importing data from memory&lt;/P&gt;&lt;P&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;SAP global memory retains field value through out session. &lt;/P&gt;&lt;P&gt;&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;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;ABAP memory is temporary and values are retained in same LUW.&lt;/P&gt;&lt;P&gt;&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 length. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm" target="test_blank"&gt;http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ABAP Memmory &amp;amp; SAP Memmory&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm" target="test_blank"&gt;http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm" target="test_blank"&gt;http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 12:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-we-use-import-export-parameters/m-p/2821093#M659824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T12:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: WHY WE USE IMPORT EXPORT PARAMETERS ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-we-use-import-export-parameters/m-p/2821094#M659825</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;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. &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;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 12:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-we-use-import-export-parameters/m-p/2821094#M659825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T12:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: WHY WE USE IMPORT EXPORT PARAMETERS ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-we-use-import-export-parameters/m-p/2821095#M659826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are guru....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import and export parameters are for print settings in smartforms...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points man...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 12:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-we-use-import-export-parameters/m-p/2821095#M659826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T12:49:50Z</dc:date>
    </item>
  </channel>
</rss>

