<?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: re: variants in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-variants/m-p/1307645#M160563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi paluri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Submit statement has an extension of&lt;/P&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;2. use this extension to do what u require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Please see F1 help on submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. ==== from help&lt;/P&gt;&lt;P&gt;&lt;/P&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;&lt;/P&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;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 May 2006 09:11:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-03T09:11:29Z</dc:date>
    <item>
      <title>re: variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-variants/m-p/1307644#M160562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Iam using one logical databse to retrieve the data from bsis table. I have to run this program by using submit by using another program along with the parameters.&lt;/P&gt;&lt;P&gt;I could able to send the parameters on the selection screen values. But i could not able to send the dynamic selection-screen values. How it is possible to give the values for the dynamic selection-screen. Any idea.&lt;/P&gt;&lt;P&gt;        I appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;p. krishna prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 09:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-variants/m-p/1307644#M160562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T09:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: re: variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-variants/m-p/1307645#M160563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi paluri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Submit statement has an extension of&lt;/P&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;2. use this extension to do what u require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Please see F1 help on submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. ==== from help&lt;/P&gt;&lt;P&gt;&lt;/P&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;&lt;/P&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;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 09:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-variants/m-p/1307645#M160563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T09:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: re: variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-variants/m-p/1307646#M160564</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;This an extract of my old report where I call a std report with free selections, I hope it can be usefull for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES: dd_augdt FOR sy-datum,&lt;/P&gt;&lt;P&gt;        dd_budat FOR sy-datum,&lt;/P&gt;&lt;P&gt;        kd_budat FOR sy-datum,&lt;/P&gt;&lt;P&gt;        dd_faedt FOR sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: trange  TYPE rsds_trange,&lt;/P&gt;&lt;P&gt;      range   TYPE rsds_range,&lt;/P&gt;&lt;P&gt;      frange  TYPE rsds_frange,&lt;/P&gt;&lt;P&gt;      selopt  LIKE rsdsselopt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: texpr   TYPE rsds_texpr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: x_aisel TYPE c,&lt;/P&gt;&lt;P&gt;      x_clsel TYPE c,&lt;/P&gt;&lt;P&gt;      x_opsel TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES ro_augdt FOR bsik-augdt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data di registrazione&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF NOT budat IS INITIAL.&lt;/P&gt;&lt;P&gt;  dd_budat(3) = 'ILE'.&lt;/P&gt;&lt;P&gt;  dd_budat-low = budat.&lt;/P&gt;&lt;P&gt;  APPEND dd_budat.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Co.Ge. speciale&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT so_umskz.&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING so_umskz TO selopt.&lt;/P&gt;&lt;P&gt;  APPEND selopt  TO frange-selopt_t.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  frange-fieldname = 'UMSKZ'.&lt;/P&gt;&lt;P&gt;  APPEND frange TO range-frange_t.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modalità di pagamento&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  REFRESH frange-selopt_t.&lt;/P&gt;&lt;P&gt;LOOP AT so_zlsch.&lt;/P&gt;&lt;P&gt; MOVE-CORRESPONDING so_zlsch TO selopt.&lt;/P&gt;&lt;P&gt; APPEND selopt  TO frange-selopt_t.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  frange-fieldname = 'ZLSCH'.&lt;/P&gt;&lt;P&gt;  APPEND frange TO range-frange_t.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_now = space.&lt;/P&gt;&lt;P&gt;  dd_augdt(3)  = 'IEQ'.&lt;/P&gt;&lt;P&gt;  dd_augdt-low = '00000000'.&lt;/P&gt;&lt;P&gt;  APPEND dd_augdt.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  dd_augdt(3)  = 'IBT'.&lt;/P&gt;&lt;P&gt;  dd_augdt-low    = budat.&lt;/P&gt;&lt;P&gt;  dd_augdt-high   = '99991231'.&lt;/P&gt;&lt;P&gt;  APPEND dd_augdt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  x_opsel = space.&lt;/P&gt;&lt;P&gt;  x_clsel = space.&lt;/P&gt;&lt;P&gt;  x_aisel = 'X'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  x_opsel = 'X'.&lt;/P&gt;&lt;P&gt;  x_clsel = space.&lt;/P&gt;&lt;P&gt;  x_aisel = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  kd_budat[] = dd_budat[].&lt;/P&gt;&lt;P&gt;  REFRESH dd_budat.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT range-frange_t[] IS INITIAL.&lt;/P&gt;&lt;P&gt;  range-tablename = 'BSIK'.&lt;/P&gt;&lt;P&gt;  APPEND range TO trange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        field_ranges = trange&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        expressions  = texpr.&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;SUBMIT rfitemap&lt;/P&gt;&lt;P&gt;          WITH kd_augdt IN dd_augdt&lt;/P&gt;&lt;P&gt;          WITH kd_blart IN so_blart&lt;/P&gt;&lt;P&gt;          WITH kd_budat IN kd_budat&lt;/P&gt;&lt;P&gt;          WITH kd_bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;          WITH kd_lifnr = l_total-lifnr&lt;/P&gt;&lt;P&gt;          WITH so_budat IN dd_budat&lt;/P&gt;&lt;P&gt;          WITH so_faedt IN dd_faedt&lt;/P&gt;&lt;P&gt;          WITH x_aisel  = x_aisel&lt;/P&gt;&lt;P&gt;          WITH x_apar   = space&lt;/P&gt;&lt;P&gt;          WITH x_clsel  = x_clsel&lt;/P&gt;&lt;P&gt;          WITH x_merk   = space&lt;/P&gt;&lt;P&gt;          WITH x_norm   = 'X'&lt;/P&gt;&lt;P&gt;          WITH x_opsel  = x_opsel&lt;/P&gt;&lt;P&gt;          WITH x_park   = space&lt;/P&gt;&lt;P&gt;          WITH x_shbv   = 'X'&lt;/P&gt;&lt;P&gt;          WITH FREE SELECTIONS texpr AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 09:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-variants/m-p/1307646#M160564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T09:18:31Z</dc:date>
    </item>
  </channel>
</rss>

