on 05-20-2014 11:38 AM
Hi,
i've done select_options for one field and implemented OVS for it. but in that Phase-1 this follwoing code is giving dump.
i refered all documents but there all are comented this phase.
WHEN IF_WD_OVS=>CO_PHASE_1. "Search option
* if I_OVS_DATA-M_OVS_CALLBACK_OBJECT->CONTEXT_ELEMENT IS NOT INITIAL.
* I_OVS_DATA-M_OVS_CALLBACK_OBJECT->CONTEXT_ELEMENT->GET_STATIC_ATTRIBUTES(
* IMPORTING
* STATIC_ATTRIBUTES = ls_input_search ).
* endif.
Regards,
Jack.
Hi,
To display search structure simply use,
i_ovs_data-m_ovs_callback_object->set_input_structure(
input = ls_search_input ).
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Search option is came but search action how it will work.
What do you mean by how it will work?
If you mean to get the result based on the values entered in search structure, In Phase 2, <ls_query_params> contains the entered input value
write the below code in Phase 2,
ASSIGN i_ovs_data-m_ovs_callback_object->query_parameters->*
TO <ls_query_params>.
IF NOT <ls_query_params> IS ASSIGNED.
* raise error
ENDIF.
replace all occurrences of '*' in <ls_query_params>-FIELD with '%'. " here FIELD is name of field in "search structure
select FIELD from <DB_TAB> into table lt_select_list where FIELD like <ls_query_params>-FIELD.
ovs_callback_object->set_output_table( output = lt_select_list ).
hope this helps,
Regards,
Kiran
Thanks Kiran.
Problem solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.