Question: why odata is used in sap?
Answer: SAP Fiori - OData Services. OData is used to define best practices that are required to build and consume RESTful APIs. It helps you to find out changes, defining functions for reusable procedures and sending batch requests etc. OData provides facility for extension to fulfill any custom needs of your RESTful APIs.