<?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 help with passing values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-passing-values/m-p/2620483#M601737</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;The BDC code works fine when the value(3) or any value is hard coded. But it is not working if I use 'RMQAM-AKTIV(p_insty)' where p_insty is the parameter value entered at selection screen. Please let me know how to pass this value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform screen using: 'SAPLQPLS' '0100'.&lt;/P&gt;&lt;P&gt;perform field using: 'RMQAM-AKTIV(3)' w1_aktiv,&lt;/P&gt;&lt;P&gt;'BDC_OKCODE' '=WEIT',&lt;/P&gt;&lt;P&gt;'RMQAM-AKTIV(3)' 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;bindazme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2007 11:26:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-01T11:26:50Z</dc:date>
    <item>
      <title>help with passing values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-passing-values/m-p/2620483#M601737</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;The BDC code works fine when the value(3) or any value is hard coded. But it is not working if I use 'RMQAM-AKTIV(p_insty)' where p_insty is the parameter value entered at selection screen. Please let me know how to pass this value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform screen using: 'SAPLQPLS' '0100'.&lt;/P&gt;&lt;P&gt;perform field using: 'RMQAM-AKTIV(3)' w1_aktiv,&lt;/P&gt;&lt;P&gt;'BDC_OKCODE' '=WEIT',&lt;/P&gt;&lt;P&gt;'RMQAM-AKTIV(3)' 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;bindazme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 11:26:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-passing-values/m-p/2620483#M601737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T11:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: help with passing values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-passing-values/m-p/2620484#M601738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it 'RMQAM-AKTIV(3)' or 'RMQAM-AKTIV(&amp;lt;b&amp;gt;03&amp;lt;/b&amp;gt;)'??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 11:28:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-passing-values/m-p/2620484#M601738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T11:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: help with passing values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-passing-values/m-p/2620485#M601739</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 MEMORY ID and to store the value of the PARAMETER in SAP Memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else use GET/SET paramters by mentioning the PARAMTER ID at the data element level.&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;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 11:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-passing-values/m-p/2620485#M601739</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-01T11:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: help with passing values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-passing-values/m-p/2620486#M601740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to do this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Concatinate 'RMQAM-AKTIV(' P_INSTY ')' into L_FIELD.  " You need increase the P_INSTY based on the line item number.

Then you need to use this L_FIELD 

perform screen using: 'SAPLQPLS' '0100'.
perform field using: L_FIELD  w1_aktiv,    " here use the L_FIELD.
'BDC_OKCODE' '=WEIT',
'RMQAM-AKTIV(3)' 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 11:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-passing-values/m-p/2620486#M601740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T11:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: help with passing values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-passing-values/m-p/2620487#M601741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudheer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting value R for L_FIELD. Do you mind providing some sample working code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;bindazme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 04:22:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-passing-values/m-p/2620487#M601741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T04:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: help with passing values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-passing-values/m-p/2620488#M601742</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;Parameters in the SAP Memory &lt;/P&gt;&lt;P&gt;SPA/GPA parameters &lt;/P&gt;&lt;P&gt;The SAP Memory is a user-specific memory area of the current application server, which is accessed by all main sessions of a user session at once. ABAP programs have access to SPA/GPA parameters stored in the SAP Memory (also called SET/GET parameters). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each SPA/GPA parameter is identified by an ID of up to 20 characters. SPA/GPA parameters can either be created explicitly using the statement SET PARAMETER, or implicitly in a PAI event. They are then available to any programs and any sessions throughout the whole duration of a user session. SPA/GPA parameters are evaluated by the ABAP runtime environment. In ABAP programs, the parameters can be read using the statement GET PARAMETER. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One example of a program that uses SPA/GPA parameters is user maintenance (transaction SU01). In this transaction, on the Parameters tab page, you can enter user-specific parameters, which are then set when the user logs on to the ABAP-based SAP system, and are evaluated by other programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Administrating SPA/GPA parameters &lt;/P&gt;&lt;P&gt;The names of SPA/GPA parameters are administrated in the database table TPARA. In the Object Navigator of the ABAP Workbench, the names of SPA/GPA parameters are created in the database table TPARA in upper case, and are linked to packages. The database table TPARA acts as a reservation table for SPA/GPA parameters. If you use SPA/GPA parameters in a program, you should ensure that the name of the parameter is contained in the PARAMID column of the database table TPARA. The SPA/GPA parameters of other applications should not be unintentionally overwritten. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;If a name exists in the database table TPARA, this does not automatically mean that the corresponding parameter also exists in the SAP Memory. SPA/GPA parameters are exclusively created during execution of an ABAP program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPA/GPA parameters and screen errors &lt;/P&gt;&lt;P&gt;When defining input fields, you can link screen fields to SPA/GPA parameters by entering the name of an SPA/GPA parameter from the database table TPARA as an attribute PARAMETER ID. If the corresponding parameter GET PARAMETER is set and no other value is assigned to the input field, the input field is filled with the value of the SPA/GPA parameter when the screen is sent. If the corresponding attribute SET PARAMETER is set, the content of the input field is assigned to the SPA/GPA parameter at the PAI event. If the parameter does not yet exist in the SAP Memory, it is implicitly created at the PAI event. In selection screens, you can create this link by using the MEMORY ID addition to the statements PARAMETERS and SELECT-OPTIONS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;A data transport between a screen field and an SPA/GPA parameter in the SAP Memory only takes place if a global data object with the same name as the screen field is declared in the corresponding ABAP program. &lt;/P&gt;&lt;P&gt;If the PAI event is triggered using a function of type "E", no values are assigned to the SPA/GPA parameters that are linked with the screen, and no parameters are created in the SAP Memory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET PARAMETER&amp;lt;/b&amp;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;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;&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;&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;&amp;lt;b&amp;gt;GET PARAMETER&amp;lt;/b&amp;gt; &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;&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;&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 0-&amp;gt; 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;sy-subrc 4-&amp;gt; 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;&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;&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;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 08:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-passing-values/m-p/2620488#M601742</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-03T08:44:08Z</dc:date>
    </item>
  </channel>
</rss>

