Dear Gurus,
I have searched the form for this but couldn't find the particular solution.
my scenario is i need to enter only 5 plants in the select options it should not exceed it, for this i have done like
select options :S_PLANT FOR G_PLANT NO INTERVALS.
CONSTANTS: LC_OPT_LIST TYPE RSREST_OPL VALUE 'OPT_LIST',
LC_S TYPE RSSCR_KIND VALUE 'S',
LC_MAT TYPE BLOCKNAME VALUE 'S_PLANT',
LC_INC TYPE C VALUE 'I'.
DATA: LW_OPT_LIST TYPE SSCR_OPT_LIST,
LW_RESTRICT TYPE SSCR_RESTRICT,
LW_*** TYPE SSCR_***.
LW_OPT_LIST-NAME = LC_OPT_LIST.
LW_OPT_LIST-OPTIONS-BT = SPACE.
LW_OPT_LIST-OPTIONS-EQ = 'X'.
APPEND LW_OPT_LIST TO LW_RESTRICT-OPT_LIST_TAB.
LW_***-KIND = LC_S.
LW_***-NAME = LC_MAT.
LW_***-SG_MAIN = LC_INC.
LW_***-OP_MAIN = LC_OPT_LIST.
APPEND LW_*** TO LW_RESTRICT-***_TAB.
CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
EXPORTING
RESTRICTION = LW_RESTRICT
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.
now when i click the extension button i will be getting the popup window with ' SELECT SINGLE VALUES' sub screen now in this i need only 5 rows
I don't know weather this is possible or not.
If yes . can any one explain this ?
Thanks in advance .
Regards
Rakesh S.