2005 Nov 17 5:17 PM
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.
2005 Nov 17 5:18 PM
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
2005 Nov 17 5:18 PM
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
2005 Nov 17 5:25 PM
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.
2005 Nov 17 5:25 PM
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
2005 Nov 17 5:33 PM
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.