Professional Documents
Culture Documents
ABAP RESTful PDF
ABAP RESTful PDF
PUBLIC
Legal disclaimer
The information in this presentation is confidential and proprietary to SAP and may not be disclosed without the permission o f SAP.
This presentation is not subject to your license agreement or any other service or subscription agreement with SAP. SAP has n o obligation
to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality mentioned
therein. This document, or any related presentation, and SAP’s strategy and possible future developments, products, and platf orms, directions,
and functionality are all subject to change and may be changed by SAP at any time for any reason without notice. The information in this
document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. This document is provided without
a warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability, fi tness for a particular
purpose, or noninfringement. This document is for informational purposes and may not be incorporated into a contract. SAP assumes no
responsibility for errors or omissions in this document, except if such damages were caused by SAP’s willful misconduct or gr oss negligence.
All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ material ly from
expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, which speak only as of their dates,
and they should not be relied upon in making purchasing decisions.
For all recent and planned innovations, potential data protection and privacy features include simplified deletion of persona l data, reporting
of personal data to an identified data subject, restricted access to personal data, masking of personal data, read access log ging to special
categories of personal data, change logging of personal data, and consent management mechanisms.
… for customers and partners in SAP S/4HANA … supporting the product qualities
… for SAP internal development in SAP S/4HANA User experience: SAP Fiori and SAP HANA
… for customers and partners in Cloud: scalability
SAP Cloud Platform ABAP Environment ABAP assets: non-functional requirements
Business Objects
Definition, Demo, Roadmap
Business Services
Definition, Demo, Roadmap
EXISTING EXISTING
TECHNOLOGIES APPLICATION CODE
There is
… NO use of generic framework APIs
… NO code generation
… NO redundancy in transport-objects
Improved lifecycle (transport, patches,…)
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 8
ABAP RESTful Programming Model
SERVICE BINDING
BUSINESS Bind the service to OData protocol
SERVICES
PROVISIONING SERVICE DEFINITION
Define scope to be exposed
Behaviour implementation
CDS
SEGW - RDS SERVICE DEFINITION
Clear responsibilities
SERVICE
Code generation Eclipse based development
DEFINITION REF TO NON CDS Viewer
No generation of artefacts
CDS
CDS
consumption
views
today future
generate reference
BDL
Behaviour for BO in ABAP
BOPF business object implemented
Outline
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC today future 12
ABAP RESTful Programming Model
Big Picture
SERVICE BINDING
Service Fiori Elements Preview
viewer
SERVICE BINDING
PROTOCOL SPECIFIC
BUSINESS OBJECT
Business CDS editor: CDS entities Class editor BO Test-shell
object
DATA & BEHAVIOUR viewer View
DEFINITION entity
Table action,
entity determination,
ABAP validation
entity
ROOT
1 3
COMPOSITION BO RUNTIME
INTERACTION PHASE
TX buffer
SAVE SEQUENCE
BUSINESS
OBJECT
INTERACTION PHASE SAVE SEQUENCE RUNTIME
finalize
create_by_association
read_by_association
check_before_save
execute_function
execute_action adjust_numbers
update
save
create
delete
read
lock
TX buffer
SAP HANA
INTERACTION SAVE
PHASE SEQUENCE UNMANAGED
finalize
1 Application coding available
(e.g. Purchase Order, Sales Order,…)
check_before_save
MODIFY
adjust_numbers MANAGED
2
READ
LOCK
INTERACTION SAVE
PHASE SEQUENCE
Application coding
finalize
already available
checkBeforeSave
for interaction phase, transactional buffer and save sequence
MODIFY
LOCK
save
APPLICATION CODE
Examples
TX Buffer Sales Order, Purchase Order
Adapter
SAP HANA
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 18
Business Objects – Managed
INTERACTION SAVE
PHASE SEQUENCE
Application coding
finalize
not yet available or fine granular reusable code available
checkBeforeSave
technical implementation aspects taken over by BO
infrastructure
MODIFY
adjustNumbers
READ
LOCK
MANAGED RUNTIME
Examples
TX Buffer New applications in SAP Cloud Platform ABAP Environment
INTERACTION SAVE
PHASE SEQUENCE
Application coding
finalize
“update-task function module” available
checkBeforeSave
coding for interaction phase not available
(e.g. highly coupled in older UI technology: DYNP - PBO / PAI)
MODIFY
adjustNumbers
READ
LOCK
Examples
MANAGED RUNTIME
Function module Business Partner, Product
for UPDATE
TX Buffer TASK
SAP HANA
Application code in
determinations / validations / …
SAP HANA
SERVICE BINDING
BUSINESS Bind the service to OData protocol
SERVICES
PROVISIONING SERVICE DEFINITION
Define scope to be exposed
Behaviour implementation
ABAP
A2X UI Value help
A2X
A2X A2X
A2X PLATFORM
SERVICE SERVICE UI annotations Release / Whitelisting
SERVICE
SERVICE SERVICE
SERVICE Feature control Versioning
Compatibility check
expose OData V2 / V4
BUSINESS
SERVICE DEFINITION
SERVICE
SERVICES SERVICE MODEL
MODELDEFINITION
DEFINITION
Sort
Filter
Text search
project project
DATA & BOs Queries
BEHAVIOUR BOs
BOs BOs
BOs
Model Behaviour Runtime Model/ Behaviour Runtime
Model
Model Behaviour
Behaviour Runtime
Runtime Model
Model Behaviour
Behaviour Runtime
Runtime
Structure
Managed: SQL
Custom: ABAP queries
2 Versioning, release and compatibility check for A2X OData V2 and OData V4