<?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: Setting Parameter ID value for multiple users Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-parameter-id-value-for-multiple-users-problem/m-p/2253063#M487365</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;  u told u created a data element knoiw,u change it to the same data element of the field u have used here..&lt;/P&gt;&lt;P&gt; The data is not retieved from the memory properly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 May 2007 10:03:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-12T10:03:22Z</dc:date>
    <item>
      <title>Setting Parameter ID value for multiple users Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-parameter-id-value-for-multiple-users-problem/m-p/2253061#M487363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;can any one of you help me in the parameter ID setting because i am facing problem regarding teh PARAMTER ID setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Scenario:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;i took an existing iD from TPARA table and created my own dataelment ZS_LOCK&lt;/P&gt;&lt;P&gt; by placing the parameter ID in further characterics tab and activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in progam i declared a field ls_lock type zs_lock.&lt;/P&gt;&lt;P&gt;first i set it as ( set parameterid ' AUN'  field 'ls_lock)&lt;/P&gt;&lt;P&gt; and later getting as&lt;/P&gt;&lt;P&gt;( get parameterid ' AUN'  field 'ls_lock)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Problem&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for User X first i set as 100 and even abel to get the same, but for user Y i am unbale to get the value what i set in USER X login.( Sure that i didn't clear the  value and checked in debugging )&lt;/P&gt;&lt;P&gt;So ,please help how can i set global SAP memory value to all users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 09:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-parameter-id-value-for-multiple-users-problem/m-p/2253061#M487363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T09:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Parameter ID value for multiple users Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-parameter-id-value-for-multiple-users-problem/m-p/2253062#M487364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;See this doc , will be helpful&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 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;&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;Reward points if useful&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>Sat, 12 May 2007 09:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-parameter-id-value-for-multiple-users-problem/m-p/2253062#M487364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T09:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Parameter ID value for multiple users Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-parameter-id-value-for-multiple-users-problem/m-p/2253063#M487365</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;  u told u created a data element knoiw,u change it to the same data element of the field u have used here..&lt;/P&gt;&lt;P&gt; The data is not retieved from the memory properly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 10:03:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-parameter-id-value-for-multiple-users-problem/m-p/2253063#M487365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T10:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Parameter ID value for multiple users Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-parameter-id-value-for-multiple-users-problem/m-p/2253064#M487366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please tell me how can i allow two different users  in diiferernt logins to get the same global value that one has set .&lt;/P&gt;&lt;P&gt;but am unable to get the value i set in user x login f&lt;/P&gt;&lt;P&gt;or user Y login.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 10:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-parameter-id-value-for-multiple-users-problem/m-p/2253064#M487366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T10:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Parameter ID value for multiple users Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-parameter-id-value-for-multiple-users-problem/m-p/2253065#M487367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Using the SAP memory i.e SPA/GPA parameters (also known as SET/GET parameters) only we get this functionality&lt;/P&gt;&lt;P&gt;I don't know why it is not working for you.&lt;/P&gt;&lt;P&gt;but it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the doc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;SET PARAMETER ID pid FIELD dobj. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect: &lt;/P&gt;&lt;P&gt;This statement sets the content of the SPA/GPA parameter specified in pid to the content of the data object dobj. For &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pid, a flat character-type field is expected that can contain a maximum of 20 characters, which cannot be exclusively &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;blank characters. pid is case-sensitive. For dobj, a flat, (as of release 6.10 character-type) field is expected, whose &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;binary content is transferred in an unconverted format. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the SPA/GPA parameter specified for the current user in pid does not yet exist in the SAP memory, it is created. If &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the SPA/GPA parameter has already been created for the current user, its value is overwritten. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a program, SPA/GPA parameters can only be created or assigned values if a name exists for them in the table TPARA. The &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;extended program check reports an error if it can statically determine that a name specified in pid is not contained in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the database table TPARA. ist. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &lt;/P&gt;&lt;P&gt;For a SPA/GPA parameter specified in pid to match a name in the database table TPARA, it must be entered in upper case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;If the user selects a flight displayed in the basic list, when the event ATLINE-SELECTION takes place, the SPA/GPA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters CAR and CON are set to the ID of the airline and the connection number. The names of both parameters are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;defined in the table TPARA for this purpose. In the initial screen of the transaction DEMO_TRANSACTION, two input fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are linked with SPA/GPA these parameters and are displayed with the selected values as start values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: carrier     TYPE spfli-carrid, &lt;/P&gt;&lt;P&gt;      connection  TYPE spfli-connid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;  SELECT carrid connid &lt;/P&gt;&lt;P&gt;         FROM spfli &lt;/P&gt;&lt;P&gt;         INTO (carrier, connection). &lt;/P&gt;&lt;P&gt;    WRITE: / carrier HOTSPOT, connection HOTSPOT. &lt;/P&gt;&lt;P&gt;    HIDE:  carrier, connection. &lt;/P&gt;&lt;P&gt;  ENDSELECT. &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 carrier, &lt;/P&gt;&lt;P&gt;                    'CON' FIELD connection. &lt;/P&gt;&lt;P&gt;  CALL TRANSACTION 'DEMO_TRANSACTION'. &lt;/P&gt;&lt;P&gt;*******************************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PARAMETER &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;GET PARAMETER ID pid FIELD dobj. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This statement sets the content of the data object dobj to the content of the SPA/GPA parameter specified in pid. pid &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;must be a flat character-type field that contains no more than 20 characters and does not consist solely of blanks; it is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also case-sensitive. dobj must be a flat and (as of Release 6.10) character-type field into which the binary content of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the SPA/GPA parameter is transferred unconverted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the SPA/GPA parameter specified in pid was not yet created in the SAP Memory for the current user, the data object &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dobj is initialized and sy-subrc is set to 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a program, only those SPA/GPA parameters can be read for which there is a name in the table TPARA. The extended &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program check reports an error, if it can be statically determined that an ID specified in pid is not in the table TPARA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc Meaning &lt;/P&gt;&lt;P&gt;0 The SPA/GPA parameter specified in pid exists for the current user in the SAP Memory and its value was transferred to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the target field. &lt;/P&gt;&lt;P&gt;4 The SPA/GPA parameter specified in pid does not exist for the current user in the SAP Memory. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;An SPA/GPA parameter that is readable with GET PARAMETER can previously have been created in the SAP Memory using the SET &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER statement or automatically during the event PAI of a screen or selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For an SPA/GPA parameter specified in pid to match a name in the database table TPARA, it must be specified in uppercase. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;In this example, the current value of the SPA/GPA parameter RID is read from the SAP Memory to the data object prog. In &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the screens of the ABAP Workbench, this parameter is linked with the input fields for a program name. When an ABAP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workbench tool, in which an ABAP program is processed, is first called, the parameter is created at the event PAI and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assigned the name of the program specified there. If in the same user session, no screen is processed that set the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter RID and no corresponding SET PARAMETER statement was executed beforehand, RID is not found in the SAP Memory. &lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&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>Sat, 12 May 2007 10:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-parameter-id-value-for-multiple-users-problem/m-p/2253065#M487367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T10:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Parameter ID value for multiple users Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-parameter-id-value-for-multiple-users-problem/m-p/2253066#M487368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;i found they are only for a specific user .i am getting every thing for teh same users but not to idfferent user.&lt;/P&gt;&lt;P&gt;so ,pls give me the solution for different users to access same value in SAP global memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2007 03:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-parameter-id-value-for-multiple-users-problem/m-p/2253066#M487368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-13T03:32:24Z</dc:date>
    </item>
  </channel>
</rss>

