<?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: How to pass select options range value to another program? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-range-value-to-another-program/m-p/4888838#M1142224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose we have such screen parameters defined in program#1.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: molga type t500l-molga.
select-options so for molga.
parameters pa type ...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..and such in program#1&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: molga type t500l-molga.
select-options so2 for molga.
parameters pa2 type ...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Too pass &lt;STRONG&gt;pa&lt;/STRONG&gt; and &lt;STRONG&gt;so&lt;/STRONG&gt; from program#1 to &lt;STRONG&gt;pa2&lt;/STRONG&gt; and &lt;STRONG&gt;so2&lt;/STRONG&gt; in program#2 use below procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Define rsparams table&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: rsparams_tab type table of rsparams.
        rsparams_wa type rsparams.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Append parameters + select_options to this table&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  "select options
Loop at so.
  rsparams_wa-selname = 'SO2'.
  rsparams_wa-kind = 'S'.  "select options to be passed
  rsparams_wa-sign = so-sign.    
  rsparams_wa-option = so-option.
  rsparams_wa-low = so-low.
  rsparams_wa-high = so-high.
  append rsparams_wa to rsparams_tab.
endloop.

  "parameters
  rsparams_wa-selname = 'PA2'.
  rsparams_wa-kind = 'P'.  "parameters to be passed
  rsparams_wa-sign = 'I'.    
  rsparams_wa-option = 'EQ'.
  rsparams_wa-low = pa.
  append rsparams_wa to rsparams_tab.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Now simply pass this table to program#2&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
SUBMIT program#2 WITH SELECTION-TABLE rsparams_tab AND RETURN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Dec 2008 22:57:06 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2008-12-10T22:57:06Z</dc:date>
    <item>
      <title>How to pass select options range value to another program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-range-value-to-another-program/m-p/4888835#M1142221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to submit program #2 from my program #1, I have no problem passing Parameter since they are single value.  But when I pass the select-option data, let say company code 1000 to 2000, then the data range is incorrect.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I remember I have to assign the Sign and Option to the input value range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone give me an example code of how to define the Select Option field in program #2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 21:40:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-range-value-to-another-program/m-p/4888835#M1142221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T21:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select options range value to another program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-range-value-to-another-program/m-p/4888836#M1142222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the documentation for submit, you can use either&lt;/P&gt;&lt;P&gt;WITH p BETWEEN f1 AND f2 SIGN s  if you want a simple single entry or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WITH SELECTION-TABLE seltab if you want the full possibilities&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 22:12:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-range-value-to-another-program/m-p/4888836#M1142222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T22:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select options range value to another program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-range-value-to-another-program/m-p/4888837#M1142223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Karen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please try SUBMIT PROGRAM in following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT program VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;   with parameter  eq   &amp;lt;any varaible&amp;gt;&lt;/P&gt;&lt;P&gt;   with selecto      in   seltab  &lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seltab declaration is similar to select-options field in Program 1&lt;/P&gt;&lt;P&gt;( seltab can be declared as  table-field or any standard data type as may be the case in Program 1)  &lt;/P&gt;&lt;P&gt;     for Example : &lt;/P&gt;&lt;P&gt;                     (select-options  s_var1  for vbak-vbeln&lt;/P&gt;&lt;P&gt;                                            s_var1  for i .. so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Add values to the select-options variables&lt;/P&gt;&lt;P&gt;                      You had to add values with below logic&lt;/P&gt;&lt;P&gt;                                   seltab-sign = 'I'. seltab-option = 'BT'.&lt;/P&gt;&lt;P&gt;                                   seltab-low  = 1.   seltab-high   = 5.&lt;/P&gt;&lt;P&gt;                                   APPEND seltab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to implement logic similar to shown above.  Let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 22:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-range-value-to-another-program/m-p/4888837#M1142223</guid>
      <dc:creator>nkr1shna</dc:creator>
      <dc:date>2008-12-10T22:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass select options range value to another program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-range-value-to-another-program/m-p/4888838#M1142224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose we have such screen parameters defined in program#1.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: molga type t500l-molga.
select-options so for molga.
parameters pa type ...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..and such in program#1&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: molga type t500l-molga.
select-options so2 for molga.
parameters pa2 type ...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Too pass &lt;STRONG&gt;pa&lt;/STRONG&gt; and &lt;STRONG&gt;so&lt;/STRONG&gt; from program#1 to &lt;STRONG&gt;pa2&lt;/STRONG&gt; and &lt;STRONG&gt;so2&lt;/STRONG&gt; in program#2 use below procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Define rsparams table&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: rsparams_tab type table of rsparams.
        rsparams_wa type rsparams.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Append parameters + select_options to this table&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  "select options
Loop at so.
  rsparams_wa-selname = 'SO2'.
  rsparams_wa-kind = 'S'.  "select options to be passed
  rsparams_wa-sign = so-sign.    
  rsparams_wa-option = so-option.
  rsparams_wa-low = so-low.
  rsparams_wa-high = so-high.
  append rsparams_wa to rsparams_tab.
endloop.

  "parameters
  rsparams_wa-selname = 'PA2'.
  rsparams_wa-kind = 'P'.  "parameters to be passed
  rsparams_wa-sign = 'I'.    
  rsparams_wa-option = 'EQ'.
  rsparams_wa-low = pa.
  append rsparams_wa to rsparams_tab.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Now simply pass this table to program#2&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
SUBMIT program#2 WITH SELECTION-TABLE rsparams_tab AND RETURN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 22:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-select-options-range-value-to-another-program/m-p/4888838#M1142224</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2008-12-10T22:57:06Z</dc:date>
    </item>
  </channel>
</rss>

