<?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: how to store selection parameter value in memory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933385#M691214</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;selection screen parameters values can be stored in variants &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enter the vlues in the selection screen &lt;/P&gt;&lt;P&gt;and click n the save button then it will ask you to enter variant name &lt;/P&gt;&lt;P&gt;after saving this variant &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in application tool bar one more button adds like variants if you click there you will find variants created for that selection screen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create anynumber of variants &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in feture you can select that variant that values will come automatically &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2007 07:19:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-16T07:19:09Z</dc:date>
    <item>
      <title>how to store selection parameter value in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933383#M691212</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 want to store selection parameter value in memory and than i want to use that value.&lt;/P&gt;&lt;P&gt;how i can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 07:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933383#M691212</guid>
      <dc:creator>laxman_sankhla3</dc:creator>
      <dc:date>2007-10-16T07:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to store selection parameter value in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933384#M691213</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;Try like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Default Values from SAP Memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MEMORY-ID option of the PARAMETERS statement allows you to use a default value from the global SAP memory (SPA/GPA parameters). The syntax is as follows: &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;PARAMETERS &amp;lt;p&amp;gt; ...... MEMORY ID &amp;lt;pid&amp;gt;...... &lt;/P&gt;&lt;P&gt;When you use this option, the value stored at that point under the name &amp;lt;pid&amp;gt; in the global user-related SAP memory appears as the default value for &amp;lt;p&amp;gt; on the selection screen.&lt;/P&gt;&lt;P&gt;&amp;lt;pid&amp;gt; can be up to 3 characters long and must not be enclosed in quotation marks.&lt;/P&gt;&lt;P&gt;You use the global SAP memory to pass values retained beyond transaction limits between programs. This memory is available to a user for the entire duration of a terminal session and any parallel sessions use the same memory. The SAP memory is thus more comprehensive than the transaction-bound ABAP/4 memory (see Data Clusters in ABAP/4 Memory). &lt;/P&gt;&lt;P&gt;Parameters can be set user specific in the user's master records with the name &amp;lt;pid&amp;gt;. For further information about the SAP memory, refer to the keyword documentation for SET/GET PARAMETER and to Passing Data Between Programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following report stores a value under the name "HK" in the global SAP memory:&lt;/P&gt;&lt;P&gt;REPORT SAPMZTS1.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'HK' FIELD 'Test Parameter'.&lt;/P&gt;&lt;P&gt;This value is used in the following report as a default value for the parameter TEST:&lt;/P&gt;&lt;P&gt;PROGRAM SAPMZTS2. &lt;/P&gt;&lt;P&gt;PARAMETERS TEST(16) MEMORY ID HK.&lt;/P&gt;&lt;P&gt;The selection screen of SAPMZTS2 looks as follows:&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;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 07:16:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933384#M691213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T07:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to store selection parameter value in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933385#M691214</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;selection screen parameters values can be stored in variants &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enter the vlues in the selection screen &lt;/P&gt;&lt;P&gt;and click n the save button then it will ask you to enter variant name &lt;/P&gt;&lt;P&gt;after saving this variant &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in application tool bar one more button adds like variants if you click there you will find variants created for that selection screen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create anynumber of variants &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in feture you can select that variant that values will come automatically &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 07:19:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933385#M691214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T07:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to store selection parameter value in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933386#M691215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi laxman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to store the value in ABAP memory then&lt;/P&gt;&lt;P&gt;use EXPORT &amp;lt;Parameter&amp;gt;    TO MEMORY ID id. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to retreive the value form ABAP memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use IMPORT &amp;lt;parameter&amp;gt; from MEMORY ID id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to store the value in SAP memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;OR&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want to store the values as variants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give the values in sel screen.&lt;/P&gt;&lt;P&gt;and save them as variants by providing a name to that variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use SET PARAMETER ID pid FIELD dobj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to retreive the value from SAP memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use GET PARAMETER ID pid FIELD dobj. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;Reward points if useful&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chandrasekhar Velpula&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 07:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933386#M691215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T07:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to store selection parameter value in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933387#M691216</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;use abap memory statements [IMPORT ...... FROM ........] and [EXPORT ........ TO ......] and sap gloabal memory statements [SET PARAMETER] and [GET PARAMETER] u can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f you want to store the value in ABAP memory then&lt;/P&gt;&lt;P&gt;use EXPORT &amp;lt;Parameter&amp;gt; TO MEMORY ID id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to retreive the value form ABAP memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use IMPORT &amp;lt;parameter&amp;gt; from MEMORY ID id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to store the value in SAP memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use SET PARAMETER ID pid FIELD dobj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to retreive the value from SAP memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use GET PARAMETER ID pid FIELD dobj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 07:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933387#M691216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T07:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to store selection parameter value in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933388#M691217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i want to store movement type value in memory and than i want to use that movement type,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TCODE - MB1A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 07:34:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933388#M691217</guid>
      <dc:creator>laxman_sankhla3</dc:creator>
      <dc:date>2007-10-16T07:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to store selection parameter value in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933389#M691218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP allows you to make use of SPA/GPA technique to fill the input fields of a called transaction with data from the calling program.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;If you want to set SPA/GPA parameters before a program call, you need to know which parameters are linked to which fields on the initial screen. A simple way of doing this is to start the program that you want to call, place the cursor on the input fields, and choose F1 followed by Technical info. The Parameter ID field contains the name of the corresponding SPA/GPA parameter. Alternatively, you can look at the screen definition in the Screen Painter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SPA/GPA parameter for the input field Company has the ID CAR. Use this method to find the IDs CON, DAY, and BOK for the other input fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following executable program is connected to the logical database F1S and calls an update transaction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT BOOKINGS NO STANDARD PAGE HEADING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES SBOOK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;WRITE: 'Select a booking',&lt;/P&gt;&lt;P&gt;/ '----&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;'.&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET SBOOK.&lt;/P&gt;&lt;P&gt;WRITE: SBOOK-CARRID, SBOOK-CONNID,&lt;/P&gt;&lt;P&gt;SBOOK-FLDATE, SBOOK-BOOKID.&lt;/P&gt;&lt;P&gt;HIDE: SBOOK-CARRID, SBOOK-CONNID,&lt;/P&gt;&lt;P&gt;SBOOK-FLDATE, SBOOK-BOOKID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,&lt;/P&gt;&lt;P&gt;'CON' FIELD SBOOK-CONNID,&lt;/P&gt;&lt;P&gt;'DAY' FIELD SBOOK-FLDATE,&lt;/P&gt;&lt;P&gt;'BOK' FIELD SBOOK-BOOKID.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'BOOK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basic list of the program shows fields from the database table SBOOK according to the user entries on the selection screen. These data are also stored in the HIDE areas of each line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward point if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 07:34:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-selection-parameter-value-in-memory/m-p/2933389#M691218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T07:34:38Z</dc:date>
    </item>
  </channel>
</rss>

