‎2008 Apr 22 8:22 AM
Hi All,
I want to customise the select-options multiple selection dailog box. In standard there are 4 tabs in the multiple selection dailog box. I want to have only one tab in it. How do I do it.Please help me out.
Thanks in Advance.
‎2008 Apr 22 10:57 AM
Make a search in the forum for the FM SELECT_OPTIONS_RESTRICT and you will find answer for your question.
‎2008 Apr 22 10:57 AM
Make a search in the forum for the FM SELECT_OPTIONS_RESTRICT and you will find answer for your question.
‎2008 Apr 22 11:20 AM
tables: mara.
Type pools
type-pools: slis, sscr.
Selection Screen
select-options: s_date for sy-datum no intervals,
s_no for mara-matnr.
initialization.
data: restrict type sscr_restrict,
selopt type sscr_ass,
opt_list type sscr_opt_list. "BT,CP,EQ,GE,GT,LE,LT,NB,NE,NP
clear selopt.
selopt-kind = 'S'. " S-SELCT-OPTIONS, A-ALL, B-BLOCK
selopt-name = 'S_DATE'. " NAME OF THE SELECT-OPTIONS
selopt-sg_main = 'I'. " I-INCLUSIVE, SPACE-BOTH
selopt-op_main = 'OBJ_1'.
append selopt to restrict-ass_tab.
clear opt_list.
opt_list-name = 'OBJ_1'.
opt_list-options-eq = 'X'.
opt_list-options-ge = 'X'.
append opt_list to restrict-opt_list_tab.
clear selopt.
selopt-kind = 'S'.
selopt-name = 'S_NO'.
selopt-sg_main = 'I'.
selopt-op_main = 'OBJ_2'.
append selopt to restrict-ass_tab.
clear opt_list.
opt_list-name = 'OBJ_2'.
opt_list-options-ne = 'X'.
opt_list-options-bt = 'X'.
opt_list-options-le = 'X'.
append opt_list to restrict-opt_list_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.
reward is useful.
‎2008 Apr 22 11:23 AM
‎2008 Apr 22 11:24 AM
REPORT ZAK_SEL_OPT_RESTRICT .
tables: mara.
Type pools
type-pools: slis, sscr.
Selection Screen
select-options: s_date for sy-datum no intervals,
s_no for mara-matnr.
initialization.
data: restrict type sscr_restrict,
selopt type sscr_ass,
opt_list type sscr_opt_list. "BT,CP,EQ,GE,GT,LE,LT,NB,NE,NP
clear selopt.
selopt-kind = 'S'. " S-SELCT-OPTIONS, A-ALL, B-BLOCK
selopt-name = 'S_DATE'. " NAME OF THE SELECT-OPTIONS
selopt-sg_main = 'I'. " I-INCLUSIVE, SPACE-BOTH
selopt-op_main = 'OBJ_1'.
append selopt to restrict-ass_tab.
clear opt_list.
opt_list-name = 'OBJ_1'.
opt_list-options-eq = 'X'.
opt_list-options-ge = 'X'.
append opt_list to restrict-opt_list_tab.
clear selopt.
selopt-kind = 'S'.
selopt-name = 'S_NO'.
selopt-sg_main = 'I'.
selopt-op_main = 'OBJ_2'.
append selopt to restrict-ass_tab.
clear opt_list.
opt_list-name = 'OBJ_2'.
opt_list-options-ne = 'X'.
opt_list-options-bt = 'X'.
opt_list-options-le = 'X'.
append opt_list to restrict-opt_list_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.