More Related Content Similar to Autodesk Technical Webinar: SAP NetWeaver Gateway Part 1 (20) More from SAP PartnerEdge program for Application Development (20) Autodesk Technical Webinar: SAP NetWeaver Gateway Part 12. Agenda
Data Model Definition
– Declarative model definition
– Import data model (EDMX)
– Import DDIC
– Import RFC/BOR Interface
Service implementation
– Code based implementation
– Code based extenstions
– Mapping of RFC/BOR operations
Service registration
– Gateway Hub
– Gateway Backend
© 2012 SAP AG. All rights reserved.
2
4. SAP NetWeaver Gateway Service Builder
The SAP NetWeaver Gateway
Service Builder provides a tool to
centrally display and create the
definition of an OData Service.
Runtime artifacts (model provider
class, data provider class, model and
service)
OData artifacts (entity set, entity type
and properties)
Used data sources and models
Models can be created based on
EDMX-Modeling.
The modeling environment follows
a project based approach, all
relevant data is consolidated in
this projects.
© 2012 SAP AG. All rights reserved.
4
5. Gateway Service Builder - development flow
Service
Definition
Gateway
Backend
Data Model Definition
(SEGW)
Service Generation
Service Implementation
(Code based or mapping)
Gateway Server
(/IWFND/MAINT_SERVICE)
© 2012 SAP AG. All rights reserved.
Service Registration
and Hub Activation
5
6. Gateway Service Builder - development flow in detail
OData Service
Definition in
SEGW
Data Model
Definition
(MPC)
Service
Implementation
(DPC)
Service
Maintenance
© 2012 SAP AG. All rights reserved.
Declarative
Model Data
Definition*
Import
Import DDIC/
Data Model
Model Definition RFC/BOR
(EDMX)
Interface*
Service Implementation RFC/BOR
Code-Based Implementation*
Map
Code-Based Extensions* mapping)
Operation*
(Code based or
Service Registration
and Hub Activation
Redefine
Data Source
Include
Service
Gateway
Service
(GenIL, SPI, Generation
Service*
BW Easy
Query, MDX)
* Repeatable
within
one service
6
7. Entity Data Model – Overview
An Entity Data Model (EDM) describes the organisation and relationship of the data resources within a
particular business scenario.
Entity Sets are instances of entity types and can be accessed as follows:
•
http://<host>/<ServiceRoot>/SalesOrderItems
•
http://<host>/<ServiceRoot>/<Products
At least one property must
be nominated as a key field
Entity Type: EDM basic
building block. Represents
specific business object
An Entity Type is built from
one or more properties
Navigation implements an
association
© 2012 SAP AG. All rights reserved.
Association: Relationship
between two entity types
7
9. Gateway Service Builder – Modeling
OData Service
Definition in
SEGW
Data Model
Definition
(MPC)
Service
Implementation
(DPC)
Service
Maintenance
© 2012 SAP AG. All rights reserved.
Declarative
Model
Definition*
Import
Data Model
(EDMX)
Code-Based Implementation*
Code-Based Extensions*
Import DDIC/
RFC/BOR
Interface*
Map RFC/BOR
Operation*
Service Registration
and Hub Activation
Redefine
Data Source
Service
(GenIL, BOL,
SPI, BW Easy
Query, MDX)
Include
Gateway
Service*
* Repeatable
within
one service
9
10. Gateway Service Builder – outside in approach
OData Service
Definition in
SEGW
Data Model
Definition
(MPC)
Service
Implementation
(DPC)
Service
Maintenance
© 2012 SAP AG. All rights reserved.
Declarative
Model
Definition*
Import
Data Model
(EDMX)
Code-Based Implementation*
Code-Based Extensions*
Import DDIC/
RFC/BOR
Interface*
Map RFC/BOR
Operation*
Service Registration
and Hub Activation
Redefine
Data Source
Service
(GenIL, BOL,
SPI, BW Easy
Query, MDX)
Include
Gateway
Service*
* Repeatable
within
one service
10
11. Gateway Service Builder – Leveraging Data Dictionary
OData Service
Definition in
SEGW
Data Model
Definition
(MPC)
Service
Implementation
(DPC)
Service
Maintenance
© 2012 SAP AG. All rights reserved.
Declarative
Model
Definition*
Import
Data Model
(EDMX)
Code-Based Implementation*
Code-Based Extensions*
Import DDIC/
RFC/BOR
Interface*
Map RFC/BOR
Operation*
Service Registration
and Hub Activation
Redefine
Data Source
Service
(GenIL, BOL,
SPI, BW Easy
Query, MDX)
Include
Gateway
Service*
* Repeatable
within
one service
11
12. Gateway Service Builder – Leverage RFC/BOR interfaces
OData Service
Definition in
SEGW
Data Model
Definition
(MPC)
Service
Implementation
(DPC)
Service
Maintenance
© 2012 SAP AG. All rights reserved.
Declarative
Model
Definition*
Import
Data Model
(EDMX)
Code-Based Implementation*
Code-Based Extensions*
Import DDIC/
RFC/BOR
Interface*
Map RFC/BOR
Operation*
Service Registration
and Hub Activation
Redefine
Data Source
Service
(GenIL, BOL,
SPI, BW Easy
Query, MDX)
Include
Gateway
Service*
* Repeatable
within
one service
12
14. Service Builder – Result
ERP or Business Suite
External
Service Name
Registered Service
Name
Data
Provider
Class
Extension
Class
Registered Model
Name
Model
Provider
Class
Extension
Class
Gateway Service
© 2012 SAP AG. All rights reserved.
14
16. Gateway Service Catalogue (Hub Deployment)
A custom Gateway Service is always developed on top of the Gateway backend AddOns.
In order to expose our new Gateway Service to the outside world, we must create an entry in the
Service Catalogue on the Gateway Hub server.
Gateway Hub
External
Name
External
Name
Gateway Service Catalogue
Gateway
Server
AddOns
© 2012 SAP AG. All rights reserved.
ERP or Business Suite
Registered
Service
Data
Provider
Class
Registered
Model
Model
Provider
Class
Gateway Service
Gateway
Backend
AddOns
17
17. Gateway service registration on the hub
Demo
SEGW has created a
•
Data Provider Class and a
•
Model Provider Class
•
plus extension classes
These classes must be
•
registered and
•
activated
in the Hub system
© 2012 SAP AG. All rights reserved.
18
21. Gateway Service Builder – Code generation based on
existing business objects in SAP PLM, EAM, …
OData Service
Definition in
SEGW
Data Model
Definition
(MPC)
Service
Implementation
(DPC)
Service
Maintenance
© 2012 SAP AG. All rights reserved.
Declarative
Model
Definition*
Import
Data Model
(EDMX)
Code-Based Implementation*
Code-Based Extensions*
Import DDIC/
RFC/BOR
Interface*
Map RFC/BOR
Operation*
Service Registration
and Hub Activation
Redefine
Data Source
Service
(GenIL, BOL,
SPI, BW Easy
Query, MDX)
Include
Gateway
Service*
* Repeatable
within
one service
22
22. Gateway Service Builder – redefine existing services
Subtitle
Step1:
Generate a “technical” service which calls the
BW
Step2
Beautification” of the external names
Example
Generate services from existing business
objects from (for example)
PLM and EAM
CRM
BW
HANA
Generate services based on existing Gateway
services
© 2012 SAP AG. All rights reserved.
23
23. SAP NetWeaver Gateway – Analytical Integration
Consumer / Channel specific infrastructure
OData
SAP NetWeaver Gateway
Easy Query
MDX
SAP NetWeaver BW
SAP Business Suite
Sync
HANA
CRM
© 2012 SAP AG. All rights reserved.
SRM
SCM
PLM
ERP
24
24. Service generation – SAP Business Warehouse
SAP NetWeaver Gateway
enables SAP BW content for
light weight consumption via
OData. This happens by
providing generators for
- Easy Query
- MultiDimensional
eXpresions (MDX)
© 2012 SAP AG. All rights reserved.
25
25. Service generation – based on SAP HANA
Via the new SAP NetWeaver
Gateway with SAP HANA
integration capability it is now
possible to connect to SAP
HANA.
Currently only Read-Only access
is supported.
The following information models
can be exposed as an OData
Service:
Attribute Views
Analytic Views
Calculation Views
© 2012 SAP AG. All rights reserved.
26
27. What is the Service Provider Interface – SPI ?
© 2012 SAP AG. All rights reserved.
28
29. Gateway Service Builder – Gateway service mashup
OData Service
Definition in
SEGW
Data Model
Definition
(MPC)
Service
Implementation
(DPC)
Service
Maintenance
© 2012 SAP AG. All rights reserved.
Declarative
Model
Definition*
Import
Data Model
(EDMX)
Code-Based Implementation*
Code-Based Extensions*
Import DDIC/
RFC/BOR
Interface*
Map RFC/BOR
Operation*
Service Registration
and Hub Activation
Redefine
Data Source
Service
(GenIL, BOL,
SPI, BW Easy
Query, MDX)
Include
Gateway
Service*
* Repeatable
within
one service
30
30. Mashup Gateway services
Example
To create a sales order you need two types
of master data “Customer” and “Products”.
Reuse of existing Gateway services for
Customer and
Products
Leverage analytical read-only services from
BW and Hana in CRUD-style service
© 2012 SAP AG. All rights reserved.
31