How To Master Media Handling with SAP OData Part 20
Code detail :- class ZCL_ZMEDIA_MPC_EXT definition public inheriting from ZCL_ZMEDIA_MPC create public . public section. METHODS: define REDEFINITION. protected section. private section. ENDCLASS . CLASS ZCL_ZMEDIA_MPC_EXT IMPLEMENTATION. METHOD DEFINE . super -> define ( ). * CATCH / iwbep /cx_mgw_med_exception. model -> get_entity_type ( iv_entity_name = 'Media' )-> get_property ( iv_property_name = 'Mimetype' )-> set_as_content_type ( ). * CATCH / iwbep /cx_mgw_med_exception.. * CATCH / iwbep /cx_mgw_med_exception.. * CATCH / iwbep /cx_mgw_med_exception. ENDMETHOD. ENDCLASS. ************************************************************** CLASS zcl_zmedia_dpc_ext DEFINITION PUBLIC INHERITING FROM zcl_zmedia_dpc CREATE PUBLIC . PUBLIC SECTION. METHODS : /iwbep/if_mgw_appl_srv_runtime ~ create_stream REDEFINITION. METHODS : /iwbep/if_mgw_appl_srv_runtime ~ get_stream REDEFINITION. METHODS :...