on 12-21-2011 12:25 PM
I am not able to see my view element container containing my select options in the webpage although it shows in my view.
The code used by me in the doinit method is
METHOD wddoinit .
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_select_options( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
DATA lo_interfacecontroller TYPE REF TO iwci_wdr_select_options .
lo_interfacecontroller = wd_this->wd_cpifc_select_options( ).
DATA lo_r_helper_class TYPE REF TO if_wd_select_options.
lo_r_helper_class = lo_interfacecontroller->init_selection_screen(
).
DATA lo_r_helperclass TYPE REF TO if_wd_select_options.
lo_r_helperclass = lo_interfacecontroller->init_selection_screen(
).
DATA lt_range TYPE REF TO data.
CALL METHOD lo_r_helperclass->create_range_table
EXPORTING
i_typename = 'VBELN'
RECEIVING
rt_range_table = lt_range.
CALL METHOD lo_r_helperclass->set_global_options
EXPORTING
i_display_btn_cancel = ABAP_FALSE
i_display_btn_check = ABAP_FALSE
i_display_btn_reset = ABAP_FALSE
i_display_btn_execute = ABAP_FALSE.
CALL METHOD lo_r_helperclass->add_selection_field
EXPORTING
i_id = 'VBELN'
it_result = lt_range
i_obligatory = abap_true
i_value_help_type = if_wd_value_help_handler=>co_prefix_none
i_value_help_id = 'VMVA'.
ENDMETHOD.
Have you embededd teh view of the select option's comp respective WIND*view inside the view container element.
Edited by: Lekha on Dec 21, 2011 6:16 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.