<?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: select-optionts  range as parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-optionts-range-as-parameter/m-p/1844368#M358471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would like to sent lower and upper limits of select-options to &lt;/P&gt;&lt;P&gt;a method call like this&lt;/P&gt;&lt;P&gt;CALL METHOD  OBJECT-&amp;gt;M1 EXPORTING&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jan 2007 11:37:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-09T11:37:50Z</dc:date>
    <item>
      <title>select-optionts  range as parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-optionts-range-as-parameter/m-p/1844366#M358469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts i have a doubt, i wish to send select-options rage as &lt;/P&gt;&lt;P&gt;parameter to class. is there any way for this, thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 11:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-optionts-range-as-parameter/m-p/1844366#M358469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T11:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: select-optionts  range as parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-optionts-range-as-parameter/m-p/1844367#M358470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select-options is a table and Parameter is a single value , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be u can restrict user to enter only  low value in select options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS : s_matnr for mara-matnr no intervals no-extension.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 11:31:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-optionts-range-as-parameter/m-p/1844367#M358470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T11:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: select-optionts  range as parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-optionts-range-as-parameter/m-p/1844368#M358471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would like to sent lower and upper limits of select-options to &lt;/P&gt;&lt;P&gt;a method call like this&lt;/P&gt;&lt;P&gt;CALL METHOD  OBJECT-&amp;gt;M1 EXPORTING&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 11:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-optionts-range-as-parameter/m-p/1844368#M358471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T11:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: select-optionts  range as parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-optionts-range-as-parameter/m-p/1844369#M358472</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 can restrict the select-option field using No-Extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : l_vbeln for vbeln no intervals no-extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the Below program to restrict the Select-options by programetically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;This report is describes how to restrict the select options. 
  
REPORT selectoptionsrestrict. 
* Include type pool SSCR 
TYPE-POOLS sscr. 
TABLES : 
  marc. 
* defining the selection-screen 
select-options : 
  s_matnr for marc-matnr, 
  s_werks for marc-werks. 
* Define the object to be passed to the RESTRICTION parameter 
DATA restrict TYPE sscr_restrict. 
* Auxiliary objects for filling RESTRICT 
DATA : optlist TYPE sscr_opt_list, 
           ass type sscr_ass. 
INITIALIZATION. 
* Restricting the MATNR selection to only EQ and 'BT'. 
  optlist-name = 'OBJECTKEY1'. 
  optlist-options-eq = 'X'. 
  optlist-options-bt = 'X'. 
  APPEND optlist TO restrict-opt_list_tab.  
  ass-kind = 'S'. 
  ass-name = 'S_MATNR'. 
  ass-sg_main = 'I'. 
  ass-sg_addy = space. 
  ass-op_main = 'OBJECTKEY1'. 
  APPEND ass TO restrict-ass_tab. 
* Restricting the WERKS selection to CP, GE, LT, NE. 
  optlist-name = 'OBJECTKEY2'. 
  optlist-options-cp = 'X'. 
  optlist-options-ge = 'X'. 
  optlist-options-lt = 'X'. 
  optlist-options-ne = 'X'. 
  APPEND optlist TO restrict-opt_list_tab. 
  ass-kind = 'S'. 
  ass-name = 'S_WERKS'. 
  ass-sg_main = 'I'. 
  ass-sg_addy = space. 
  ass-op_main = 'OBJECTKEY2'. 
  APPEND ass TO restrict-ass_tab. 
  CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' 
   EXPORTING 
    restriction                  = restrict 
   EXCEPTIONS 
   &amp;amp;nbs! p; TOO_LATE                     = 1 
     REPEATED                     = 2 
     SELOPT_WITHOUT_OPTIONS       = 3 
     SELOPT_WITHOUT_SIGNS         = 4 
     INVALID_SIGN                 = 5 
     EMPTY_OPTION_LIST            = 6 
     INVALID_KIND                 = 7 
     REPEATED_KIND_A              = 8 
     OTHERS                       = 9 
            . 
  IF sy-subrc &amp;lt;&amp;gt; 0. 
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO 
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. 
  ENDIF. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 11:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-optionts-range-as-parameter/m-p/1844369#M358472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T11:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: select-optionts  range as parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-optionts-range-as-parameter/m-p/1844370#M358473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in youru class method set the importing parameter to a varialbe of type RSELOPTION (its a table type) now you can pass your range table to this parameter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 11:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-optionts-range-as-parameter/m-p/1844370#M358473</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-01-09T11:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: select-optionts  range as parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-optionts-range-as-parameter/m-p/1844371#M358474</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;Refer sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_legcy  FOR temksv-oldkey MODIF ID rb1,&lt;/P&gt;&lt;P&gt;                 s_sap    FOR temksv-newkey MODIF ID rb1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:i_oldkey      type STANDARD TABLE OF selopt,&lt;/P&gt;&lt;P&gt;        i_newkey      type STANDARD TABLE OF selopt,&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;*-- Move Data Records&lt;/P&gt;&lt;P&gt;    PERFORM move_data_records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM move_data_records .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Move Select Option values&lt;/P&gt;&lt;P&gt;  IF NOT s_legcy IS INITIAL OR&lt;/P&gt;&lt;P&gt;     NOT s_sap IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE s_legcy[] TO i_oldkey[].&lt;/P&gt;&lt;P&gt;    MOVE s_sap[]   TO i_newkey[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF NOT i_input IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT i_input INTO wa_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      wa_selopt-sign    = 'I'.&lt;/P&gt;&lt;P&gt;      wa_selopt-option  = 'EQ'.&lt;/P&gt;&lt;P&gt;      wa_selopt1-sign   = 'I'.&lt;/P&gt;&lt;P&gt;      wa_selopt1-option = 'EQ'.&lt;/P&gt;&lt;P&gt;      wa_selopt-low     = wa_input-oldkey.&lt;/P&gt;&lt;P&gt;      wa_selopt1-low    = wa_input-newkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND wa_selopt TO i_oldkey.   " Legacy&lt;/P&gt;&lt;P&gt;      APPEND wa_selopt1 TO i_newkey.  " SAP Key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR:wa_selopt,wa_selopt1,wa_input.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " move_data_records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD o_delete-&amp;gt;temksv&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      firma    = p_comp&lt;/P&gt;&lt;P&gt;      object   = p_obj&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      i_oldkey = i_oldkey&lt;/P&gt;&lt;P&gt;      i_newkey = i_newkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this Helps.&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 12:04:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-optionts-range-as-parameter/m-p/1844371#M358474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T12:04:21Z</dc:date>
    </item>
  </channel>
</rss>

