Date post: | 21-Apr-2015 |
Category: |
Documents |
Upload: | sean-turner |
View: | 27 times |
Download: | 4 times |
SAP Forum 2012
CD263Developing and Consuming OData Services Using SAP NetWeaver® Gateway
2012 SAP AG. All rights reserved.
Disclaimer
This presentation outlines our general product direction and should not be relied on in making a purchase decision. This presentation is not subject to your license agreement or any other agreement with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or to develop or release any functionality mentioned in this presentation. This presentation and SAP's strategy and possible future developments are subject to change and may be changed by SAP at any time for any reason without notice. This document is provided without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this document, except if such damages were caused by SAP being intentionally or grossly negligent.
2012 SAP AG. All rights reserved.
Agenda
IntroductionDevelopment Paradigms in SAP NetWeaver® GatewayDevelopment using the OData Channel
IntroductionSetting the scene
2012 SAP AG. All rights reserved.
SAP NetWeaver Gateway
Sybase Unwired Platform
Enterprise Software
Web
SRM SCM ERPPLMCRM
SAP Business Suite
SAP NetWeaver Gateway
OpenAny Device, Any Experience, Any Platform
PeopleOptimized for user interaction scenarios
TimelessNon-disruptive, any SAP Business Suite version
DevelopersSimple APIs, no SAP knowledge required
StandardsBased on REST and OData/ATOM
Social
2012 SAP AG. All rights reserved.
OData + SAP Annotations
OData
Atom Publishing Protocol
Atom Syndication Format
Open Data Protocol – OData
Based on a non-proprietary, license free protocolOffers database like access to business data (“ODBC for the Web”)No prior knowledge of SAP requiredSupports object navigationDynamic binding takes place at run timeConforms to the constraints of a REST-based architecture
Uses the standard GET, PUT, POST & DELETE methodsStateless interface
Development Paradigms inSAP NetWeaver ® Gateway
2012 SAP AG. All rights reserved.
Adaptation – Reduction of Data Model Complexity
Data Source Model(Standard SAP Object)
Public Solution Model(Adapted for People Centric Use)
Red
uced
Com
plex
ity
Content Adaptation
PSM
DSM
An SAP Data Source Model (DSM) is complex because it is designed to account for all the permutations and combinations that exist within a real-life business process. However, such an interface is not suitable for the vast majority of users.
A Public Solution Model (PSM) on the other hand, provides a simplified interface to the SAP Data Source Model.
It is created by adapting the DSM leaving only those fields needed for the simplified business scenario.
2012 SAP AG. All rights reserved.
SAP
Net
Wea
ver
Gat
eway
DesignTime
Development in the Gateway Server
Generators
CustomDev.
Gateway CoreRuntime &OData Library
SAP Business Suite
[ERP,CRM,SRM…]
IW_BEP
CustomDev.
Data Source Prov.Data Conn.
BAPI RFC Scr.
Life Cycle ManagementDevelopment on Gateway ServerService generators for specific data sources (BAPI/RFC/Dynpro Screens*)
RequirementsScreen Scraping:Backends must be based on NW 7.00 SP14 or higher + AddOn: IW_SCSRFC/BAPI & Custom Dev:Backends must be based on 4.6C or higher
RecommendationPartners/Customers with Backend < ECC 6.0 EHP 0Gateway AddOns not installed in Backend SystemsUse of code generators preferred over custom coding
IW_SCS
Web Sybase Unwired Platform Enterprise Software Social
2012 SAP AG. All rights reserved.
SAP
Net
Wea
ver
Gat
eway
DesignTime
Development in the Backend System – OData Channel
Generators
CustomDev.
Gateway CoreRuntime & OData Library
SAP Business Suite
[ERP,CRM,SRM…]
IW_BEP
CustomDev.
Data Source Prov.Data Conn.
BAPI RFC Scr.
Life Cycle ManagementDevelopment in the SAP BackendGateway Server: Configuration only
RequirementsBackends must be based on NW 7.00 SP18 or higher and need AddOn: IW_BEP
RecommendationUsed by SAP for Standard Software DevelopmentMost flexible since it allows access to all backend resources and not only to remote enabled interfaces.
IW_SCS
Web Sybase Unwired Platform Enterprise Software Social
2012 SAP AG. All rights reserved.
SAP NetWeaver Gateway CertificationsNW-GW-INT
Gateway Consumption CertificationVerifies the functionality offered in partners’ consumption applications
Gateway Content CertificationVerifies the correctness of the Gateway content delivered by partners
Information on Solution Certifications in SAP, go to
http://www.sdn.sap.com/irj/sdn/certification-and-partnership
For more information, go to
http://www.sdn.sap.com/irj/sdn/gateway
Development using the ODataChannel
2012 SAP AG. All rights reserved.
How to develop
UI first
Model second
… then Coding
2012 SAP AG. All rights reserved.
UI first (A Flight Booking App)
From
Select the departure Airport
Select the destination Airport
Date and Time
Select the Date and Time of departure
List of Flights
Provide a list of flights based on the selction criteria
2012 SAP AG. All rights reserved.
Model second
FeedsAirports
Flights
Bookings
Navigation PropertiesAirports Airports
Airports Flights
Flights Bookings
Complex TypesLocation
GeoCoordinates
2012 SAP AG. All rights reserved.
OData Channel Generation Tool
InputEDMX-File or
Metadata File of an existing OData Service
OutputMain Metadata Provider Super Class
Metadata Provider Subclass
Main Data Provider Class
Data Provider Class per Entity Set
2012 SAP AG. All rights reserved.
Local Classes of user CD263-xx
Structure
Main Metadata Provider Class
Main Data Provider Class
Data Provider Class per Entity Type
Airport
Booking
Flight
2012 SAP AG. All rights reserved.
Prerequisites for the Hands-On Part
Please use system M17 that should be available in your SAP Logon
User: CD263-xx (xx is your group number)
Password: Initial
Service name: ZCD263_ICF_SERVICE_0xx (xx is your group number)
Hands-On
2012 SAP AG. All rights reserved.
Further Information
SAP Public Web:SAP Developer Network (SDN): http://www.sdn.sap.com/irj/sdn/gateway
Related SAP Education and Certification Opportunitieshttp://www.sap.com/education/http://www.sdn.sap.com/irj/sdn/interface-certifications?rid=/webcontent/uuid/800df3d3-a823-2f10-adb4-bbf870257d54
Thank You!
Ronildo SantosPartner Integration ExpertCo-Innovation Lab São [email protected]
Visit us coil.sap.comFollow us twitter.com/sapcoilsp
Yuri BokaleffSAP [email protected]
2012 SAP AG. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries.Oracle and Java are registered trademarks of Oracle and/or its affiliates.UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc.
© 2012 SAP AG. All rights reserved.
HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology.
SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer, StreamWork, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.
Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects Software Ltd. Business Objects is an SAP company.
Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL Anywhere, and other Sybase products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Sybase, Inc. Sybase is an SAP company.
All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
The information in this document is proprietary to SAP. No part of this document may be reproduced, copied, or transmitted in any form or for any purpose without the express prior written permission of SAP AG.