on 11-18-2017 12:38 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.
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.