Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Restricting Select Options to Multiple Single Entries

Hi All,

I have a requirement where we have two select options. I need to restrict only One of the select options to only accept multiple single entries. I have tried using the 'SELECT_OPTIONS_RESTRICT' Function module. But it provided little help to me.

Please check the below code.

*******************************************************************

gv_w_opt_list-name = 'A'.

gv_w_opt_list-options-eq = 'X'.

APPEND gv_w_opt_list TO gv_w_res-opt_list_tab.

gv_w_ass-kind = 'A'.

gv_w_ass-name = 'YTRADE_DESC'.

gv_w_ass-sg_main = '*'.

gv_w_ass-sg_addy = 'N'.

gv_w_ass-op_main = 'A'.

APPEND gv_w_ass TO gv_w_res-ass_tab.

  • It allows to restrict intervals for select-options in selection screen

CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'

EXPORTING

program = sy-repid

restriction = gv_w_res

EXCEPTIONS

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 <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

**********************************************************************

Please help me if you have any information related to this requirement. Relevant anwers will be surely rewarded.

Regards

Nagaraj

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question