Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

disable ranges tab in select-options

Former Member
0 Kudos
1,979

Hi,

how can i disable ranges tab(s) in SELECT-OPTIONS

How to enable PARAMETER with MULTIPLE ENTRIES( is there any way ? )

Your help would be appreciated.

Thanks,

kranthi.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
264

Here is a sample program....



report zrich_0001.

* Type pools
type-pools: slis, sscr.

* Selection Screen
select-options: s_date for sy-datum no intervals.

initialization.
  perform initilization.


************************************************************************
*  INITILIZATION
************************************************************************
form initilization.

* Restrict the select options for S_DATE
* to just a date range
  data: selopt   type sscr_ass,
        opt_list type sscr_opt_list,
        restrict type sscr_restrict.

  clear opt_list.
  opt_list-name          = 'EQ'.
  opt_list-options-eq    = 'X'.
  append opt_list to restrict-opt_list_tab.

  clear selopt.
  selopt-kind            = 'S'.
  selopt-name            = 'S_DATE'.
  selopt-sg_main         = 'I'.
  selopt-sg_addy         = ' '.
  selopt-op_main         = 'EQ'.
  selopt-op_addy         = 'EQ'.
  append selopt  to restrict-ass_tab.

  call function 'SELECT_OPTIONS_RESTRICT'
       exporting
            restriction            = restrict
       exceptions
            too_late               = 1
            repeated               = 2
            selopt_without_options = 5
            selopt_without_signs   = 6
            invalid_sign           = 7
            empty_option_list      = 9
            invalid_kind           = 10
            repeated_kind_a        = 11
            others                 = 12.


endform.

REgards,

RIch Heilman

4 REPLIES 4

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
265

Here is a sample program....



report zrich_0001.

* Type pools
type-pools: slis, sscr.

* Selection Screen
select-options: s_date for sy-datum no intervals.

initialization.
  perform initilization.


************************************************************************
*  INITILIZATION
************************************************************************
form initilization.

* Restrict the select options for S_DATE
* to just a date range
  data: selopt   type sscr_ass,
        opt_list type sscr_opt_list,
        restrict type sscr_restrict.

  clear opt_list.
  opt_list-name          = 'EQ'.
  opt_list-options-eq    = 'X'.
  append opt_list to restrict-opt_list_tab.

  clear selopt.
  selopt-kind            = 'S'.
  selopt-name            = 'S_DATE'.
  selopt-sg_main         = 'I'.
  selopt-sg_addy         = ' '.
  selopt-op_main         = 'EQ'.
  selopt-op_addy         = 'EQ'.
  append selopt  to restrict-ass_tab.

  call function 'SELECT_OPTIONS_RESTRICT'
       exporting
            restriction            = restrict
       exceptions
            too_late               = 1
            repeated               = 2
            selopt_without_options = 5
            selopt_without_signs   = 6
            invalid_sign           = 7
            empty_option_list      = 9
            invalid_kind           = 10
            repeated_kind_a        = 11
            others                 = 12.


endform.

REgards,

RIch Heilman

Former Member
0 Kudos
264

Hi Kranthi,

To enable parameters with multiple entries use:

SELECT-OPTIONS: S_MANTR FOR MARA-MATNR <b>NO-EXTENSION NO INTERVALS.</b>

    • Give the extension in bold to your select-options.

Naveen.

Former Member
0 Kudos
264

Kranthi,

To disable Ranges option :

select-options: soKunnr for kna1-kunnr no extensions.

we cannot enable paramters to hold multiple values!!!

But we can have Select-option

select-options: soTest for kna1-kunnr no intervals.

Thanks

Kam

Former Member
0 Kudos
264

Hi,

To disable the Select-optins tabs use no-extension statement.

for example:

SELECT-OPTIONS: S_MATNR FOR MARA-MATNR NO-EXTENSION.

Will let you know regarding the parameter.