API CostCenter

Transaction SAP

/IWFND/MAINT_SERVICE --> ZAPI_COSTCENTER_SRV --> Client SAP Gateway

SAP Notes

1574568 - SAP Gateway Foundation and SAP Gateway 2.0 - Known Constraints

2330688 - How to Use Methods And Filters in OData Services

OData Exemples

/sap/opu/odata/sap/API_COSTCENTER_SRV/A_CostCenter?$format=json&$filter=CompanyCode eq 'AERO'

/sap/opu/odata/sap/API_COSTCENTER_SRV/A_CostCenter?$format=json&$filter=CostCenter eq '628314'

/sap/opu/odata/sap/API_COSTCENTER_SRV/A_CostCenter?$format=json&$filter=startswith(CostCenter, '628')

/sap/opu/odata/sap/API_COSTCENTER_SRV/A_CostCenter?$format=json&$filter=startswith(CostCenter, '628')&$select=ControllingArea,CostCenter,CompanyCode

/sap/opu/odata/sap/API_COSTCENTER_SRV/A_CostCenter?$format=xml&$filter=startswith(CostCenter, '628') and ValidityEndDate ge datetime'2020-06-26T00:00:00' and ValidityStartDate le datetime'2020-06-26T23:59:59.999'

/sap/opu/odata/sap/API_COSTCENTER_SRV/A_CostCenter(ControllingArea='LHOT',CostCenter='628314',ValidityEndDate=datetime'9999-12-31T00:00:00')/to_Text