on 01-30-2009 9:04 PM
Hello ,
I have created select options in WDR with
IF_WD_SELECT_OPTIONS's method ADD_SELECTION_FIELD in View A.
I am navigating from View A to View B.In View B I have kept a BACK button to return back to View A.
While navigating back it is giving me Dump in the View A
Information on where terminated
Termination occurred in the ABAP program "CL_WDR_SELECT_OPTIONS=========CP" -
in "IF_WD_SELECT_OPTIONS~ADD_SELECTION_FIELD".*
The main program was "SAPMHTTP ".
In the source code you have the termination point in line 25
of the (Include) program "CL_WDR_SELECT_OPTIONS=========CM00Q".
Regards,
Sachin
Hi,
Please delete the instance of the usage selection screen in the calling component and recreate it again .
Please find the peace of code which need to be provided in the calling component .
DATA : lo_cmp_usage_sel_screen TYPE REF TO if_wd_component_usage .
lo_cmp_usage_sel_screen = wd_this->wd_cpuse_gc_sel_screen( ).
IF lo_cmp_usage_sel_screen->has_active_component( ) IS INITIAL.
lo_cmp_usage_sel_screen->create_component( ).
ELSE.
lo_cmp_usage_sel_screen->delete_component( ).
lo_cmp_usage_sel_screen->create_component( ).
ENDIF.
Thanks,
OM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello All,
Thanks a Lot for your replies.
I have removed the problem by adding the below line
wd_this->m_handler->REMOVE_ALL_SEL_SCREEN_ITEMS( )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sachin,
Just check the navigation between two views has be done properly,run the application without entering any data.
Check the method ADD_SELECTION_FIELD which you have added to the view A in the debugging mode whether this method is getting triggered .
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I suggest you to take a look at this [wiki|https://wiki.sdn.sap.com/wiki/x/ZQJXAg] that shows step by step how to use complex select-options.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sachin,
Define the attribute in the attribute tab with associated type IF_WD_SELECT_OPTIONS and IWCI_WDR_SELECT_OPTIONS. Use these attributes for calling the methods of IF_WD_SELECT_OPTIONS. Please refer the below coding in the initialization part of first view.
METHOD wddoinit .
DATA : it_flights TYPE REF TO data.
DATA : read_only TYPE abap_bool.
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 .
wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
DATA lv_r_helper_class TYPE REF TO if_wd_select_options.*
wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen(
).
it_flights = wd_this->m_handler->create_range_table(
EXPORTING*
i_typename = 'S_CARR_ID'
i_length =*
i_decimals =*
receiving*
rt_range_table =*
).
wd_this->m_handler->add_selection_field(
EXPORTING
i_id = 'S_CARR_ID'
i_within_block = MC_ID_MAIN_BLOCK*
i_description =*
i_is_auto_description = ABAP_TRUE*
it_result = it_flights
i_obligatory = ABAP_FALSE*
i_complex_restrictions =*
i_use_complex_restriction = ABAP_FALSE*
i_no_complex_restrictions = 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 = read_only
i_dont_care_value =*
i_explanation =*
i_tooltip =*
).
ENDMETHOD.
Regards,
Ragu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
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.