Professional Documents
Culture Documents
SAP ABAP OData
SAP ABAP OData
SAP ABAP OData
OData Overview
www.zarantech.com
• Complying with all applicable copyrights laws is the responsibility of the user.
• Without limiting the rights under copyright, no part of this document may be
reproduced, stored or introduced into a retrieval system, or transmitted in
any form or by any means.
• Credits shall be given to the images taken from the open-source and cannot
be used for promotional activities.
4
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Explaining Representational State Transfer
5
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Six Architectural Constraints of REST
Client Server
Architecture
Cacheability
Statelessness
Layered System
Uniform Interface
Code on demand
6
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Explaining Open Data Protocol (OData)
7
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 JSON with Chrome or Firefox
8
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 JSON with Chrome or Firefox
9
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 JSON with Chrome or Firefox
10
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 JSON with Any Browser
11
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 ATOM Protocol with Query Option sap-ds-debug
12
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 ATOM Protocol with Query Option $format=xml
13
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Structure of an OData Service
14
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 OData Service Document Example
15
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 OData Service Document Resources
BusinessPartnerSet
SalesOrderSet
SalesOrderLineItemSet
ProductSet
ContactSet
16
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 OData Graphical Representation
17
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Entity Data Model Overview
18
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Performing OData Operations
19
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Read an Entity Set
20
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Sales Orders Navigation Properties
21
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Sales Orders Navigation Properties
22
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 CRUD Operations
23
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 CRUD Operations Called on Entity Sets
24
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Operation Can Be Called On Entity Sets
25
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Operation Can Be Called On Entities
26
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Performing OData Queries
27
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Patterns for UI-Centric Applications
• All of these query options can be used in patterns we frequently find in lightweight UIs.
Let’sfocus on the query option $count.
• The use case is to retrieve the number of entries of collection. This way the client develop can
show the user how many objects were found.
28
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 OData Query Options — $select
• $select is used to limit the result set for a consumer application by limiting the number of
columns that are retrieved by the consumer.
29
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 OData Query Options — $filter
30
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 OData Query Options $top
31
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 OData Query Options — $skip
32
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 OData Query Options — $inlinecount
33
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Paged Results
• Using the query options $skip, $top, and $inlinecount, the results of a query can be
displayed in several pages through which the consumer can navigate.
• This functionality is called client side paging since the client forces the server to respond in a
certain way.
34
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 $expand Example
35
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 OData Service Requirements
3 entity sets
2 associations
2 navigation properties
36
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Use Cases for Navigation Properties
37
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 Calls for Retrieve the data
38
© Copyright 2022, ZaranTech LLC. All rights reserved.
2 $expand Example
39
© Copyright 2022, ZaranTech LLC. All rights reserved.
2
Q&A Session
40
© Copyright 2022, ZaranTech LLC. All rights reserved.
© Copyright 2022, ZaranTech LLC. All rights reserved.
Thank you
Subscribe to our Channel for more Informative Videos.
https://www.youtube.com/user/ZaranTech