Posts

Showing posts from June, 2023

How To Master Media Handling with SAP OData Part 20

Image
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 :...
CRUD:- Create Read Update Delete Read -     /sap/opu/odata/sap/ZEMPLOYEE_002_SRV/EmployeeSet + GET =>  employeeset_get_entityset.     /sap/opu/odata/sap/ZEMPLOYEE_002_SRV/EmployeeSet(2) + GET => EMPLOYEESET_GET_ENTITY Create:-     /sap/opu/odata/sap/ZEMPLOYEE_002_SRV/EmployeeSet + POST => employeeset_create_entity Update     /sap/opu/odata/sap/ZEMPLOYEE_002_SRV/EmployeeSet(6) + PUT => 'EMPLOYEESET_UPDATE_ENTITY'  Delete    /sap/opu/odata/sap/ZEMPLOYEE_002_SRV/EmployeeSet(6) + DELETE => 'EMPLOYEESET_DELETE_ENTITY'  Access data through navigation    /sap/opu/odata/sap/ZSALESORDER_002_SRV/SalesOrderHeaders('4969')/Items    /sap/opu/odata/sap/ZSALESORDER_002_SRV/SalesOrderItems => salesorderitems_get_entityset Read with navigation path /sap/opu/odata/sap/ZSALESORDER_001_SRV/SalesOrderHeaderS + Get      =>salesorderheader_get_entityset /sap/opu/odata/sap/ZSALESORDER_001_SR...

Master Function Imports in SAP OData Part 19

Image
Function Import:- so_count_by_status Importing :-  Customer Exporting :-  Customer  NotProcesed  CompleteProcess  NotRelvent *******************************************************************     CASE  iv_action_name .       WHEN 'get_so_status'.         TYPES:BEGIN OF ty_tab,                vbeln TYPE vbeln,                kunnr TYPE kunnr,                rfstk TYPE rfstk,               END OF ty_tab.         DATA: it_tab TYPE TABLE OF ty_tab,               lv_kunnr TYPE kunnr,               ls_count TYPE zcl_zsalesorder_001_mpc=>ts_count,               lt_count TYPE zcl_zsalesorder_001_mpc=>tt_count.         D...