Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1. What is SAP Gateway?

The short answer is that SAP Gateway is a technology that improves the reach of SAP business
applications. It increases the range of SAP business applications not only in terms of end users
but also with regard to the number of developers and addressable environments and devices.
With the help of SAP Gateway, SAP business applications, parts of those applications, or simply
SAP data can be used by an application developer without prior knowledge of SAP to build, for
example, mobile or cloud applications.

2. “bring your own device” (BYOD) strategy many companies are following today. This business
model can be supported by SAP Gateway
3. SAP Gateway provides an open, REST-based interface (Representational State Transfer) that
implements simple access to SAP systems via the OData protocol.
4. Check the chapter 8: How SAP Gateway is important for NEW PROGRAMMING MODEL?
5. REST is not a protocol, it is development paradigm/model
6. OData service carries – Service Document and Service Metadata Document
7. GWSAMPLE_BASIC is the sample service delivered as part of Gateway, So make use of this to
play around

8.
9. SAP Annotations for Odata V2:
http://scn.sap.com/docs/DOC-44986
10. SAP metadata will be visible in the service document and metadata document only if the value is
set to non-default value – page 79
11. Service document: <Root URI>/?sap-ds-debug=true
12. Service metadata document: <Root URI>/?metadata
13. Status code
Operation Status Code
Cerate Success 201
Read Success 200
Update (Put) – Response Success 204(No Content)
does not carry the entity
Update (Put) – Response Success 204(No Content)
does carry the entity

Unrestricted
Delete Success 204(No Content)

14. When you don’t want user to query/read the entity set directly and only via navigation property
we can make use of the SAP annotation – “sap:addressable”
15. Due to the size of the data, if you don’t want user to query the whole table, then you can mark
the “Requires Filter” flag in the entity set level. So that user cant run the URI without filter
condition – This is a metadata annotation, So it requires service implementation
16. Different types of annotation – SAP Annotation, Metadata annotation
17. Most Important Query Operations:

Unrestricted

You might also like