Skip to content

Instantly share code, notes, and snippets.

@gb20
Created August 30, 2018 09:09
Show Gist options
  • Save gb20/a274c1832b1e8e196567af37aeb08282 to your computer and use it in GitHub Desktop.
Save gb20/a274c1832b1e8e196567af37aeb08282 to your computer and use it in GitHub Desktop.
FIORI SearchHelp
class ZCL_ZTEST_TBL_DPC_EXT implementation.
method /iwbep/if_mgw_appl_srv_runtime~get_entity.
data: lv_done.
cl_fis_shlp_processor=>get_entity(
exporting
io_tech_request_context = io_tech_request_context
ir_request_details = me->mr_request_details
importing
ev_done = lv_done
er_entity = er_entity ).
check lv_done = abap_false.
call method super->/iwbep/if_mgw_appl_srv_runtime~get_entity
exporting
iv_entity_name = iv_entity_name
iv_entity_set_name = iv_entity_set_name
iv_source_name = iv_source_name
it_key_tab = it_key_tab
it_navigation_path = it_navigation_path
io_tech_request_context = io_tech_request_context
importing
er_entity = er_entity
es_response_context = es_response_context.
endmethod.
method /iwbep/if_mgw_appl_srv_runtime~get_entityset.
data: lv_done.
cl_fis_shlp_processor=>get_entityset(
exporting
io_tech_request_context = io_tech_request_context
ir_request_details = mr_request_details
importing
ev_done = lv_done
er_entityset = er_entityset
es_response_context = es_response_context ).
check lv_done = abap_false.
call method super->/iwbep/if_mgw_appl_srv_runtime~get_entityset
exporting
iv_entity_name = iv_entity_name
iv_entity_set_name = iv_entity_set_name
iv_source_name = iv_source_name
it_filter_select_options = it_filter_select_options
it_order = it_order
is_paging = is_paging
it_navigation_path = it_navigation_path
it_key_tab = it_key_tab
iv_filter_string = iv_filter_string
iv_search_string = iv_search_string
io_tech_request_context = io_tech_request_context
importing
er_entityset = er_entityset
es_response_context = es_response_context.
endmethod.
endclass.
class ZCL_ZTEST_TBL_MPC_EXT implementation.
method DEFINE.
super->define( ).
cl_fis_shlp_annotation=>create_for_all(
io_odata_model = model
io_vocan_model = vocab_anno_model
iv_namespace = 'ZTEST_TBL_SRV'
iv_language_dependent_labels = 'X' ).
endmethod.
method get_vocan_provider_texts.
try.
call method cl_fis_shlp_annotation=>get_vocan_provider_texts
exporting
iv_language = iv_language
it_vocan_text_keys = it_vocan_text_keys
changing
ct_vocan_texts_obj = ct_vocan_texts_obj.
endtry.
endmethod.
endclass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment