<?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 parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/3863127#M928516</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;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if help.&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 pid, a flat character-type field is expected that can contain a maximum of 20 characters, which cannot be exclusively blank characters. pid is case-sensitive. For dobj, a flat, (as of release 6.10 character-type) field is expected, whose 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 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 extended program check reports an error if it can statically determine that a name specified in pid is not contained in 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 parameters CAR and CON are set to the ID of the airline and the connection number. The names of both parameters are defined in the table TPARA for this purpose. In the initial screen of the transaction DEMO_TRANSACTION, two input fields 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 must be a flat character-type field that contains no more than 20 characters and does not consist solely of blanks; it is also case-sensitive. dobj must be a flat and (as of Release 6.10) character-type field into which the binary content of 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 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 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 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 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 the screens of the ABAP Workbench, this parameter is linked with the input fields for a program name. When an ABAP Workbench tool, in which an ABAP program is processed, is first called, the parameter is created at the event PAI and assigned the name of the program specified there. If in the same user session, no screen is processed that set the 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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2008 12:44:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-12T12:44:06Z</dc:date>
    <item>
      <title>set get parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/3863126#M928515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;       I have written code for locking a field, the  code is as below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM LOCK-RECORD.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'ENQUEUE_EZHEAT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    MODE_YHEAT           = 'E'&lt;/P&gt;&lt;P&gt;    MANDT                = SY-MANDT&lt;/P&gt;&lt;P&gt;    ZHEAT                = YHEAT-ZHEAT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   X_ZHEAT              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   _SCOPE               = '2'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   _WAIT                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   _COLLECT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    FOREIGN_LOCK         = 1&lt;/P&gt;&lt;P&gt;    SYSTEM_FAILURE       = 2&lt;/P&gt;&lt;P&gt;    OTHERS               = 3&lt;/P&gt;&lt;P&gt;           .&lt;/P&gt;&lt;P&gt; IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      V_USER = SY-UNAME.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SET PARAMETER ID 'USER' FIELD SY-UNAME.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  GET PARAMETER ID 'USER' FIELD V_USER.&lt;/P&gt;&lt;P&gt; MESSAGE E010(ZMSG) WITH 'This Transaction is Locked by' V_USER.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           when I am going to tcode for first time Iam locking the field and using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;IF SY-SUBRC EQ 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;      V_USER = SY-UNAME.*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  &lt;STRONG&gt;SET PARAMETER ID 'USER' FIELD SY-UNAME.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; when I open other session and try to modify I am getting the user name from get parameter as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;GET PARAMETER ID 'USER' FIELD V_USER.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;MESSAGE E010(ZMSG) WITH 'This Transaction is Locked by' V_USER.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but second time it is not getting the user name into v_user. I am getting same problem when I am opening screen in oher client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please solve my problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 12:41:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/3863126#M928515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T12:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/3863127#M928516</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;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if help.&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 pid, a flat character-type field is expected that can contain a maximum of 20 characters, which cannot be exclusively blank characters. pid is case-sensitive. For dobj, a flat, (as of release 6.10 character-type) field is expected, whose 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 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 extended program check reports an error if it can statically determine that a name specified in pid is not contained in 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 parameters CAR and CON are set to the ID of the airline and the connection number. The names of both parameters are defined in the table TPARA for this purpose. In the initial screen of the transaction DEMO_TRANSACTION, two input fields 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 must be a flat character-type field that contains no more than 20 characters and does not consist solely of blanks; it is also case-sensitive. dobj must be a flat and (as of Release 6.10) character-type field into which the binary content of 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 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 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 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 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 the screens of the ABAP Workbench, this parameter is linked with the input fields for a program name. When an ABAP Workbench tool, in which an ABAP program is processed, is first called, the parameter is created at the event PAI and assigned the name of the program specified there. If in the same user session, no screen is processed that set the 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 12:44:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/3863127#M928516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T12:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/3863128#M928517</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 exactly happening is that you are setting the memory&lt;/P&gt;&lt;P&gt;with some value and you are not clearing the memory before starting of the second session . So it is not getting the user name into v_user. What you can do is try to free the memory id through this statement&lt;/P&gt;&lt;P&gt; FREE memory id 'USER' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your problem will be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Anomitro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 12:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/3863128#M928517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T12:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/3863129#M928518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not clear, can you please explain clearly,  As I modified the code as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM LOCK-RECORD.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'ENQUEUE_EZHEAT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    MODE_YHEAT           = 'E'&lt;/P&gt;&lt;P&gt;    MANDT                = SY-MANDT&lt;/P&gt;&lt;P&gt;    ZHEAT                = YHEAT-ZHEAT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   X_ZHEAT              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   _SCOPE               = '2'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   _WAIT                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   _COLLECT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    FOREIGN_LOCK         = 1&lt;/P&gt;&lt;P&gt;    SYSTEM_FAILURE       = 2&lt;/P&gt;&lt;P&gt;    OTHERS               = 3&lt;/P&gt;&lt;P&gt;           .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      V_USER = SY-UNAME.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SET PARAMETER ID 'USER' FIELD SY-UNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDIF.&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;  FREE memory id 'USER'.&lt;/P&gt;&lt;P&gt;  GET PARAMETER ID 'USER' FIELD V_USER.&lt;/P&gt;&lt;P&gt; MESSAGE E010(ZMSG) WITH 'This Transaction is Locked by' V_USER.&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;ENDFORM.                    " LOCK-RECORD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not working, as If we clear the memory how can we retrieve back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 13:18:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/3863129#M928518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T13:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/3863130#M928519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this without using PARMETER ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  enqueue_zlmlead
*&amp;amp;---------------------------------------------------------------------*
FORM enqueue_zlmlead.

  CHECK sy-tcode = 'ZLM02'.

  CALL FUNCTION 'ENQUEUE_EZLMLEAD'
   EXPORTING
     mode_zlmlead         = 'X'
     mandt                = sy-mandt
     leadid               = zlmlead-leadid
   EXCEPTIONS
     foreign_lock         = 1
     system_failure       = 2
     OTHERS               = 3.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno "&amp;lt;== This message will handle who has it locked.
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
*
ENDFORM.                    " enqueue_zlmlead
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 13:23:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/3863130#M928519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T13:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: set get parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/3863131#M928520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;Can you please explain me clearly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How you are getting as I think you have taken that field &lt;STRONG&gt;leadid               = zlmlead-leadid&lt;/STRONG&gt;  in lock object. but my purpose is different, I want to diplay message as below " MESSAGE E010(ZMSG) WITH 'This Transaction is Locked by' V_USER." &lt;/P&gt;&lt;P&gt;System should dynamically display the message dynamically when this is called from other client (that Tcode is locked by previous user).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 13:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/3863131#M928520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T13:46:05Z</dc:date>
    </item>
  </channel>
</rss>

