on 02-05-2007 3:50 PM
Hello
how can I initialise Select-Options Input Fields with default values?
regards
Jürgen Bauer
Hi Juergen,
See BLOGS on Select option tool.
Once you have had a quick look at blog,
call INIT_SELECTION_SCREEN
You get handle to IF_WD_SELECT_OPTIONS object.
There are many methods here to control behaviour of tool.
Use the CREATE_RANGE_TABLE method,
if you are uncertain about working with DATA references.
Now See SET_RANGE_TABLE_OF_SEL_FIELD
gruss
Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Phil,
thanks for answer.
I have looked to the BLOGS, I haven't found an helpful notice.
Is there a description for Select_Options for WD4ABAP available?
I tried to use SET_RANGE_TABLE_OF_SEL_FIELD but I don't know how to fill in data
For Example:
METHOD wddoinit .
DATA:
lt_range_table TYPE REF TO data,
read_only TYPE abap_bool,
typename TYPE string.
DATA:
lr_componentcontroller TYPE REF TO ig_componentcontroller,
l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
DATA:
rt_supplier_id TYPE RANGE OF lifnr,
rs_supplier_id LIKE LINE OF rt_supplier_id.
create the used component
l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).
IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
l_ref_cmp_usage->create_component( ).
ENDIF.
get a pointer to the interface controller of the select options
*component
wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
init the select screen
wd_this->m_handler =
wd_this->m_wd_select_options->init_selection_screen( ).
*--->SUPPLIER_ID
create a range table that consists of this new data element
lt_range_table = wd_this->m_handler->create_range_table(
i_typename = 'LIFNR' ).
add a new field to the selection
wd_this->m_handler->add_selection_field(
i_id = 'SUPPLIER_ID'
it_result = lt_range_table
i_read_only = read_only ).
fill range for supplier_id
rs_supplier_id-low = '8888'.
rs_supplier_id-sign = 'I'.
rs_supplier_id-option = 'EQ'.
APPEND rs_supplier_id TO rt_supplier_id .
rs_supplier_id-low = '9999'.
APPEND rs_supplier_id TO rt_supplier_id .
*???????????
*--> how can I transfer the data to lt_range_table????
*???????????
wd_this->m_handler->set_range_table_of_sel_field(
i_id = 'SUPPLIER_ID'
it_range_table = lt_range_table ).
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.