on 03-10-2009 10:26 PM
Hello,
I need sample code to start values filled in the object selectoption.
Regards
Marcelo Macedo
DATA: LT_VALUE_SET TYPE WDY_KEY_VALUE_TABLE.
DATA: LS_VALUE_SET TYPE WDY_KEY_VALUE.
LS_VALUE_SET-KEY = 'ZENGASSET'.
LS_VALUE_SET-VALUE = 'ENGINEERING ASSETS'.
APPEND LS_VALUE_SET TO LT_VALUE_SET.
LS_VALUE_SET-KEY = 'ZPROASSET'.
LS_VALUE_SET-VALUE = 'PRODUCTION ASSETS'.
APPEND LS_VALUE_SET TO LT_VALUE_SET.
WD_THIS->LT_MATKL = WD_THIS->M_HELPER->CREATE_RANGE_TABLE(
I_TYPENAME = 'MATKL' ).
WD_THIS->M_HELPER->ADD_SELECTION_FIELD(
I_ID = 'MATKL'
I_NO_INTERVALS = ABAP_TRUE
IT_VALUE_SET = LT_VALUE_SET
IT_RESULT = WD_THIS->LT_MATKL ).
Opps this is actually a value set, input help for Select Options..
you can fill some initial values in LT_MATKL.
types: t_range type range of matkl.
field-symbols: <fs> type t_range.
data: ls_line type line of t_range
assign wd_this->lt_matkl->* to <fs>.
ls_line-sign = 'I'.
ls_line-option = 'EQ'.
ls_ilne-low = 'value'.
append initiall ine to <fs>.
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is an eLearning video on this very subject here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.