cancel
Showing results for 
Search instead for 
Did you mean: 

disable "Editing Status" filter in Fiori App

0 Kudos

Please let me know how to disable below button in Fiori App.

In Gateway service, I could not find this field where I can make in filterable as false.

Accepted Solutions (1)

Accepted Solutions (1)

It got solved.

Using below code in MPC_EXT - Define method

DATA:
lo_entity_type TYPE REF TO /iwbep/if_mgw_odata_entity_typ,
lo_property TYPE REF TO /iwbep/if_mgw_odata_property,
lo_nav TYPE REF TO /iwbep/if_mgw_odata_nav_prop.

TRY.
lo_entity_type = model->get_entity_type( iv_entity_name = 'ZFOTE_C_SUB_ACCOUNTType' ).
lo_nav = lo_entity_type->get_navigation_property( iv_name = 'DraftAdministrativeData' ).


"Filtering with this navigation property is not possible
lo_nav->create_annotation( /iwbep/if_mgw_med_odata_types=>gc_sap_namespace )->add(
iv_key = 'filterable'
iv_value = 'false' ).

CATCH /iwbep/cx_mgw_med_exception.

ENDTRY.

Answers (0)