Skip to Content
0

disable "Editing Status" filter in Fiori App

Nov 18, 2017 at 12:38 PM

59

avatar image
Former Member

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.

capture.png (24.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member
Nov 20, 2017 at 03:33 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded