on 03-30-2007 10:43 AM
HI ,
I have the following code in the WdDOINIT method of my view for viewing a field as a select option...
DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
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.
DATA: l_ref_interfacecontroller1 TYPE REF TO iwci_wdr_select_options .
l_ref_interfacecontroller1 = wd_this->wd_cpifc_select_options( ).
DATA:
l_r_helper_class TYPE REF TO if_wd_select_options.
l_r_helper_class = l_ref_interfacecontroller1->init_selection_screen(
).
data lt_range_table type ref to data.
CALL METHOD l_r_helper_class->create_range_table
EXPORTING
i_typename = 'BUKRS'
i_length =
i_decimals =
receiving
rt_range_table = lt_range_table
.
CALL METHOD l_r_helper_class->add_selection_field
EXPORTING
i_id = 'BUKRS'
i_within_block = mc_id_main_block
i_description = 'Empresa'
i_is_auto_description = abap_true
it_result = lt_range_table
i_obligatory = abap_false
i_complex_restrictions =
i_use_complex_restriction = abap_false
i_value_help_type = if_wd_value_help_handler=>co_prefix_none
i_value_help_id =
i_value_help_mode =
i_value_help_structure =
i_value_help_structure_field =
i_help_request_handler =
i_lower_case =
i_memory_id =
i_no_extension = abap_false
i_no_intervals = abap_false
i_as_checkbox = abap_false
i_as_dropdown = abap_false
it_value_set =
i_read_only = abap_false
i_dont_care_value =
.
Besides this, the WND_SELECTION_SCREEN view is embedded in the respective container as follows...
Tray - >Container - this container has the WND_SELECTION_SCREEN.
I can see the tray in the view cannot see any field (expectation was to see a select-option for BUKRS.
Any hints? Am i missing something. I have followed the tutorial for select options in webdynpro abap.
regards,
Priyank
Hi Priyank.
Do you see the buttons of the selection view (copy, reset, ...) ?
The view is embedded in the respective VIEW_CONTAINER_UIELEMENT?
Cheers,
Sascha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pri.
I do not have a clue at the moment. Seems that something is not set up proberly.
I just could guess. Maybe you did not embedd the view correctly in the window or
forgot to activate the window after embedding the view ? Thats the only thing I
could imagine. What SP are u using?
Cheers,
Sascha
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.