<?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/1000624#M76348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below link might help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/d7/e21344408e11d1896b0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/d7/e21344408e11d1896b0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points and close the thread if your question is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2005 09:16:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-27T09:16:46Z</dc:date>
    <item>
      <title>set/get parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/1000621#M76345</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;can anybody explain about set/get parameters and when we use them. if possiable with an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 09:08:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/1000621#M76345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T09:08:03Z</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/1000622#M76346</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;in your report there is a field like matnr, when you click the matnr you want to drill down into material master screen in that case &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER ID OF MATNR IS MAT&lt;/P&gt;&lt;P&gt;MATNR = '293838383'&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'MAT' FIELD MATNR. &lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the screen populate material master screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like wise we can use get for retrieve the value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : REPID LIKE SY-REPID. &lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'RID' FIELD REPID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set/get is sap memory that is for global use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 09:13:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/1000622#M76346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T09:13:30Z</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/1000623#M76347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;report ztest.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'BLN' FIELD refbn.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'BUK' FIELD refbk.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'GJR' FIELD refgj.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can also set certain defalt value in ur profile&lt;/P&gt;&lt;P&gt;in tcode SU3, parameters tab.&lt;/P&gt;&lt;P&gt;this is basically refers to sap memory.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;gv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 09:15:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/1000623#M76347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T09:15:02Z</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/1000624#M76348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below link might help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/d7/e21344408e11d1896b0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/d7/e21344408e11d1896b0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points and close the thread if your question is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 09:16:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/1000624#M76348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T09:16:46Z</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/1000625#M76349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sentences GET and SET are used to share values &lt;/P&gt;&lt;P&gt;between transactions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Example for GET Parameter:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF LAST_LOGON, 
DATE LIKE SY-DATUM, 
TIME LIKE SY-UZEIT, 
DATE_NOW LIKE SY-DATUM, 
TIME_NOW LIKE SY-UZEIT, 
END OF LAST_LOGON. 

GET PARAMETER ID 'US2' FIELD LAST_LOGON. 

write:/ 'Previous logon: ', last_logon-date, last_logon-time,
/ 'Current logon: ', last_logon-date_now, last_logon-time_now&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GET PARAMETER ID key FIELD f.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Transfers the value stored under the key pid from the global user-related SAP memory memory to the field f . &lt;/P&gt;&lt;P&gt;The key pid must consist of three characters. For an overview of the keys (parameters) used, refer to the SAP system description or the appropriate function in the ABAP/4 Development Workbench. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code value is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 A value was read from SAP memory. &lt;/P&gt;&lt;P&gt;SY_SUBRC = 4 No value was found in SAP memory under the specified key .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Read the program name from SAP memory: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : REPID(8).
GET PARAMETER ID 'RID' FIELD REPID.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET PARAMETER ID pid FIELD f.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Writes the contents of the field f to the global SAP memory under the key pid . If the key already contains a value, it is overwritten. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key pid must consist of three characters. You can find a list of the keys (parameters) used in the SAP system description or in the ABAP/4 Development Workbench. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: REPID(8) VALUE 'RFSCHU01'.
SET PARAMETER ID '&amp;lt;b&amp;gt;RID&amp;lt;/b&amp;gt;' FIELD REPID.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Only three Char allowed&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points and close the thread or else get back with queries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 10:36:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/1000625#M76349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T10:36:10Z</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/1000626#M76350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to initialze the input fields of a transactions with some values , you use set&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, 27 Sep 2005 10:38:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/1000626#M76350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T10:38:02Z</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/1000627#M76351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; From the replies above I believe you would've got a clear idea of using SET/GET Parameter Ids.&lt;/P&gt;&lt;P&gt;In summary&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;&amp;lt;b&amp;gt;SET&amp;lt;/b&amp;gt; PARAMETER ID pid FIELD f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Writes the contents of the field f to the global user-specific SAP memory under the ID pid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;GET&amp;lt;/b&amp;gt; Parameter ID pid field f.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transfers the value stored under the key pid from the global user-related SAP memory to the field f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;A correction for one of the reply above&amp;lt;/b&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just wanted to make it clear that A parameter ID can be up to &amp;lt;b&amp;gt;20&amp;lt;/b&amp;gt; characters long.&lt;/P&gt;&lt;P&gt;It is not just limited to &amp;lt;b&amp;gt;3&amp;lt;/b&amp;gt; characters of length as specified in earlier explanations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if you find this explanation useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;  Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 11:03:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/1000627#M76351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T11:03:32Z</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/1000628#M76352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set parameter and Get Parameter are used to store and retrieve variables form SAP memory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET PARAMETER ID pid FIELD f.&amp;lt;/b&amp;gt; : Writes the contents of the field f to the global user-specific SAP memory under the ID pid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: &lt;/P&gt;&lt;P&gt;  DATA : post(1) TYPE c value 'X'.&lt;/P&gt;&lt;P&gt;  SET PARAMETER ID 'PST' FIELD  post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The contents of the variable post are stored in the SAP memory under the id 'PST'. If the id already exists, then it will be overwritten. The user can get its value even from another program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The global, user-specific SAP memory is available to a user for the duration of a single terminal session. Values written to it are retained even when the user exits a program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;GET PARAMETER ID pid FIELD f.&amp;lt;/b&amp;gt; : Transfers the value stored under the key pid from the global user-related SAP memory to the field f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. &lt;/P&gt;&lt;P&gt; DATA : post1(1) TYPE c value 'X'.&lt;/P&gt;&lt;P&gt; GET PARAMETER ID 'PST' FIELD  post1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value in the SAP memory variable 'PST' is read into the variable post1. If the read was successful, the return code will be 0. Else, due to reasons like SAP memory variable not found etc, sy-subrc = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should not use SAP memory for temporary storage because a user's parallel sessions use the same global memory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to give a simple example to show how two programs reads the same memory variable and thus communicate with each other, even when one of them has been terminated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A program zreport_all, performs many functionalities like posting document, viewing document, deleting document etc. Another report zreport_post(tcode : zpost), calls the second report zreport_all for posting the document. Second report calls a function module for posting the documents and automatically exits after executing that function. The control thus returns to the first report. In the first report, if the documents have been posted, the information message should be given as well as commit work should be done. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can the first report know whether the documents have been posted or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zreport_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;   case sy-tcode.&lt;/P&gt;&lt;P&gt; ...............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     when 'zpost'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select the document to be posted based on some selection criteria. If no documents have been selected or if the document was created by the same user, then document should not be posted, else the document will be posted. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          select single * from vbkpf where ....&lt;/P&gt;&lt;P&gt;          if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;               exit.&lt;/P&gt;&lt;P&gt;          elseif vbkpf-uname eq sy-uname.&lt;/P&gt;&lt;P&gt;               exit.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            SET PARAMETER ID 'PST' FIELD  post.&lt;/P&gt;&lt;P&gt;            CALL FUNCTION 'ZPRELIMINARY_POSTING_POST_ALL'&lt;/P&gt;&lt;P&gt;               EXPORTING&lt;/P&gt;&lt;P&gt;                    bupbi   = xbinp&lt;/P&gt;&lt;P&gt;               TABLES&lt;/P&gt;&lt;P&gt;                    t_vbkpf = tbkpf.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;         endif.          &lt;/P&gt;&lt;P&gt;      when 'zdel'.&lt;/P&gt;&lt;P&gt;       .............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endcase.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  report zreport_post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ..........&lt;/P&gt;&lt;P&gt;     SUBMIT zreport_all AND RETURN.&lt;/P&gt;&lt;P&gt;    ....&lt;/P&gt;&lt;P&gt;    GET PARAMETER ID 'PST' FIELD  post1.&lt;/P&gt;&lt;P&gt;    if post1 = 'X'.&lt;/P&gt;&lt;P&gt;       Commit Work.&lt;/P&gt;&lt;P&gt;       WAIT UP TO 3 SECONDS.&lt;/P&gt;&lt;P&gt;       Write : 'The document has been posted'.&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;Thus even though the other program was terminated, still, the first program is able to retrieve the value of a variable set by the other program in SAP memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 11:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-get-parameter/m-p/1000628#M76352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T11:35:57Z</dc:date>
    </item>
  </channel>
</rss>

