<?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: Parameter-id in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/2138675#M450215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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. 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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2007 04:23:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-17T04:23:17Z</dc:date>
    <item>
      <title>Parameter-id</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/2138673#M450213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the need of set parameter-id in reports ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 04:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/2138673#M450213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T04:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter-id</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/2138674#M450214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Parameter ID to put a value in SAP memory.&lt;/P&gt;&lt;P&gt;The global SAP memory remains available to the user during the entire terminal session. This means that set values are retained when you leave a program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 04:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/2138674#M450214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T04:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter-id</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/2138675#M450215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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. 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 04:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/2138675#M450215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T04:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter-id</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/2138676#M450216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tangirala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using set perameter-id only it save the value in sapmemory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u have doubt plz check this program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YINTERACTIVEREPORTING                   .&lt;/P&gt;&lt;P&gt;TABLES : KNA1,VBAK,VBAP,MARA.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : S_KUNNR FOR KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;       KUNNR LIKE KNA1-KUNNR,&lt;/P&gt;&lt;P&gt;       NAME1 LIKE KNA1-NAME1,&lt;/P&gt;&lt;P&gt;       END OF ITAB.&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF JTAB OCCURS 0,&lt;/P&gt;&lt;P&gt;       VBELN LIKE VBAK-VBELN ,&lt;/P&gt;&lt;P&gt;       NETWR LIKE VBAK-NETWR,&lt;/P&gt;&lt;P&gt;       END OF JTAB.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF KTAB OCCURS 0,&lt;/P&gt;&lt;P&gt;      POSNR LIKE VBAP-POSNR,&lt;/P&gt;&lt;P&gt;      MATNR LIKE VBAP-MATNR,&lt;/P&gt;&lt;P&gt;      END OF KTAB.&lt;/P&gt;&lt;P&gt;DATA: FNAME(10) , FVAL(10) TYPE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT KUNNR NAME1 FROM KNA1 INTO TABLE ITAB WHERE KUNNR IN S_KUNNR.&lt;/P&gt;&lt;P&gt;   LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;   WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; ITAB-KUNNR HOTSPOT , ITAB-NAME1.&lt;/P&gt;&lt;P&gt;   HIDE ITAB-KUNNR.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;   CASE SY-LSIND.&lt;/P&gt;&lt;P&gt;   WHEN 1.&lt;/P&gt;&lt;P&gt;   SELECT VBELN NETWR FROM VBAK INTO TABLE JTAB WHERE KUNNR = ITAB-KUNNR&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;LOOP AT JTAB.&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; JTAB-VBELN HOTSPOT , JTAB-NETWR.&lt;/P&gt;&lt;P&gt;HIDE JTAB-VBELN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;WHEN 2.&lt;/P&gt;&lt;P&gt;SELECT POSNR MATNR FROM VBAP INTO TABLE KTAB WHERE VBELN = JTAB-VBELN.&lt;/P&gt;&lt;P&gt;LOOP AT KTAB.&lt;/P&gt;&lt;P&gt;WRITE : / KTAB-POSNR, KTAB-MATNR HOTSPOT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;WHEN 3.&lt;/P&gt;&lt;P&gt;GET CURSOR FIELD FNAME VALUE FVAL.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'MAT' FIELD FVAL.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MM02' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; ' CUSTOMER DETAILS'.&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE DURING LINE-SELECTION.&lt;/P&gt;&lt;P&gt;CASE SY-LSIND.&lt;/P&gt;&lt;P&gt;WHEN 1.&lt;/P&gt;&lt;P&gt;WRITE : / 'SALES DETAILS'.&lt;/P&gt;&lt;P&gt;WHEN 2.&lt;/P&gt;&lt;P&gt;WRITE : / 'ITEM DETAILS'.&lt;/P&gt;&lt;P&gt;WHEN 3.&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; ' MATEREAL DETAILS'.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;P.Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 04:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/2138676#M450216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T04:28:10Z</dc:date>
    </item>
  </channel>
</rss>

