Application Development and Automation 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: 
Read only

select-option

Former Member
0 Likes
629

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
563

Make a search in the forum for the FM SELECT_OPTIONS_RESTRICT and you will find answer for your question.

4 REPLIES 4
Read only

Former Member
0 Likes
564

Make a search in the forum for the FM SELECT_OPTIONS_RESTRICT and you will find answer for your question.

Read only

Former Member
0 Likes
563

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.

Read only

Former Member
0 Likes
563

need more help

Read only

Former Member
0 Likes
563

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.