Skip to Content

disable "Editing Status" filter in Fiori App

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 20, 2017 at 03:33 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded