<?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 Passing parameters and select options values to called program? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters-and-select-options-values-to-called-program/m-p/2290858#M499757</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;&lt;/P&gt;&lt;P&gt;i have a requirement in which i need to pass the values from one selection screen to another.   I have done the same using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SUBMIT &amp;lt;PROGRAMNAME&amp;gt; WITH P_Accnt = P_Accnt&lt;/P&gt;&lt;P&gt;                                                  WITH P_MON     = P_MON&lt;/P&gt;&lt;P&gt;                                                  WITH  P_YR       = P_YR AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to run the same.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the requirement has changed and i need to pass multiple accounts(ie my account field have got to be select-options).   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i pass the select options directly to the called program i am able to get only one value(first one ) to the called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me on how to pass the select option values to the called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Gowri Shankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2007 06:24:51 GMT</pubDate>
    <dc:creator>former_member873340</dc:creator>
    <dc:date>2007-05-23T06:24:51Z</dc:date>
    <item>
      <title>Passing parameters and select options values to called program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters-and-select-options-values-to-called-program/m-p/2290858#M499757</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;&lt;/P&gt;&lt;P&gt;i have a requirement in which i need to pass the values from one selection screen to another.   I have done the same using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SUBMIT &amp;lt;PROGRAMNAME&amp;gt; WITH P_Accnt = P_Accnt&lt;/P&gt;&lt;P&gt;                                                  WITH P_MON     = P_MON&lt;/P&gt;&lt;P&gt;                                                  WITH  P_YR       = P_YR AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to run the same.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the requirement has changed and i need to pass multiple accounts(ie my account field have got to be select-options).   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i pass the select options directly to the called program i am able to get only one value(first one ) to the called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me on how to pass the select option values to the called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Gowri Shankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 06:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters-and-select-options-values-to-called-program/m-p/2290858#M499757</guid>
      <dc:creator>former_member873340</dc:creator>
      <dc:date>2007-05-23T06:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameters and select options values to called program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters-and-select-options-values-to-called-program/m-p/2290859#M499758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Just use IN  for select-options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT &amp;lt;PROGRAMNAME&amp;gt; WITH &amp;lt;b&amp;gt;S_Accnt IN  P_Accnt&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;WITH P_MON = P_MON&lt;/P&gt;&lt;P&gt;WITH P_YR = P_YR AND RETURN.&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>Wed, 23 May 2007 06:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters-and-select-options-values-to-called-program/m-p/2290859#M499758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T06:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameters and select options values to called program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters-and-select-options-values-to-called-program/m-p/2290860#M499759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... WITH SELECTION-TABLE rspar &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;If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELNAME (length 8), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KIND (length 1), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN (length 1), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTION (length 2), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOW (length 45), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIGH (length 45). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KIND must contain the type of selection screen component (P for parameters, S for selection criteria) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter. &lt;/P&gt;&lt;P&gt;The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT report2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: text(10)   TYPE c, &lt;/P&gt;&lt;P&gt;      rspar_tab  TYPE TABLE OF rsparams, &lt;/P&gt;&lt;P&gt;      rspar_line LIKE LINE OF rspar_tab, &lt;/P&gt;&lt;P&gt;      range_tab  LIKE RANGE OF text, &lt;/P&gt;&lt;P&gt;      range_line LIKE LINE OF range_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rspar_line-selname = 'SELCRIT1'. &lt;/P&gt;&lt;P&gt;rspar_line-kind    = 'S'. &lt;/P&gt;&lt;P&gt;rspar_line-sign    = 'I'. &lt;/P&gt;&lt;P&gt;rspar_line-option  = 'EQ'. &lt;/P&gt;&lt;P&gt;rspar_line-low     = 'ABAP'. &lt;/P&gt;&lt;P&gt;APPEND rspar_line TO rspar_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;range_line-sign   = 'E'. &lt;/P&gt;&lt;P&gt;range_line-option = 'EQ'. &lt;/P&gt;&lt;P&gt;range_line-low    = 'H'. &lt;/P&gt;&lt;P&gt;APPEND range_line TO range_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;range_line-sign   = 'E'. &lt;/P&gt;&lt;P&gt;range_line-option = 'EQ'. &lt;/P&gt;&lt;P&gt;range_line-low    = 'K'. &lt;/P&gt;&lt;P&gt;APPEND range_line TO range_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT report1 USING SELECTION-SCREEN '1100' &lt;/P&gt;&lt;P&gt;               WITH SELECTION-TABLE rspar_tab &lt;/P&gt;&lt;P&gt;               WITH selcrit2 BETWEEN 'H' AND 'K' &lt;/P&gt;&lt;P&gt;               WITH selcrit2 IN range_tab &lt;/P&gt;&lt;P&gt;               AND RETURN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 06:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters-and-select-options-values-to-called-program/m-p/2290860#M499759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T06:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameters and select options values to called program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters-and-select-options-values-to-called-program/m-p/2290861#M499760</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;look this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*Code used to populate 'select-options' &amp;amp; execute report  
DATA: seltab type table of rsparams,
      seltab_wa like line of seltab.

  seltab_wa-selname = 'PNPPERNR'.
  seltab_wa-sign    = 'I'.
  seltab_wa-option  = 'EQ'.

* load each personnel number accessed from the structure into
* parameters to be used in the report
  loop at pnppernr.
    seltab_wa-low = pnppernr-low.
    append seltab_wa to seltab.
  endloop.
  SUBMIT zreport with selection-table seltab
                                via selection-screen.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anversha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 06:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters-and-select-options-values-to-called-program/m-p/2290861#M499760</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2007-05-23T06:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameters and select options values to called program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters-and-select-options-values-to-called-program/m-p/2290862#M499761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was sinple solution man.&lt;/P&gt;&lt;P&gt;Thanks i tried it is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I havent tried ur reply.  &lt;/P&gt;&lt;P&gt;Tried the first one as it was very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gowri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 06:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters-and-select-options-values-to-called-program/m-p/2290862#M499761</guid>
      <dc:creator>former_member873340</dc:creator>
      <dc:date>2007-05-23T06:39:56Z</dc:date>
    </item>
  </channel>
</rss>

