Short Presentation Title

triangledriprockInternet και Εφαρμογές Web

7 Αυγ 2012 (πριν από 5 χρόνια και 13 μέρες)

388 εμφανίσεις

SAP
NetWeaver

Gateway 2.0 Overview

August, 2011

©
2011 SAP AG. All rights reserved.

2

At the end of this module, you will be able to:


Understand the basics of SAP
NetWeaver

Gateway


Understand OData Channel API basic concept


Know the types of SAP Business Content that we can expose as Gateway
Services


Know the Development Environment’s that SAP developed Gateway plug
-
ins
for

Objectives

©
2011 SAP AG. All rights reserved.

3

Agenda

Overview

Service Modeling

OData

Channel API

Summary


©
2011 SAP AG. All rights reserved.

4

Agenda

Overview

Service Modeling

OData

Channel API

Summary


©
2011 SAP AG. All rights reserved.

5

SAP
NetWeaver

Gateway

Devices

Enterprise
Software

Web


SRM

SCM

ERP


PLM

CRM

SAP Business Suite

SAP
NetWeaver

Gateway

Open

Any Device, Any Experience, Any
Platform

People

Optimized for user interaction scenarios

Timeless

Non
-
disruptive, any SAP Business Suite
version

Developers

Simple APIs, no SAP knowledge
required

Standards

Based on
the OData protocol (Atom)

REST

Social

Experienc
es

©
2011 SAP AG. All rights reserved.

6

SAP NetWeaver Gateway Architecture

Gateway Core

Technology

OData with SAP Annotations

Network
Standards

Data Source

Providers

Tools

SAP NetWeaver

SAP NetWeaver
Gateway

Service
Adaptation

Supportability

Monitoring

Security

SAP Business Suite [ERP,CRM,SRM…]

BAPI / RFC

Dynpro

Data Conn.

IDEs

Plug
-
ins

Events /
Worflow

Metadata Repository

Consumer

Consumer

Consumer

Generators

BOR/SCR/

RFC

Custom
Dev

OData


Channel API

©
2011 SAP AG. All rights reserved.

7

OData + SAP Extensions

OData

Atom Publishing Protocol

Atom Syndication Format

What is
OData
?

Based on industry standards


http://www.odata.org


REST
-
based architecture

Uses the standard GET, PUT, POST

& DELETE
HTTP Verbs for CRUD operations

Stateless apps

OData

APIs Offer
database like access

to business data


“ODBC for the Web”

No
knowledge of SAP structures required:
Supports object navigation

Dynamic binding takes place

at run
time

Gateway Core

Technology

OData

with SAP Annotations

REST

Service
Adaptation

Metadata
Repository

Service
Adaptation

Supportability

Monitoring

Security

HTTP

XML

©
2011 SAP AG. All rights reserved.

8

SAP NetWeaver Gateway Tools

Gateway Core

Technology

OData with SAP Annotations

Network
Standards

Tools

SAP NetWeaver

SAP
NetWeaver
Gateway

Service
Adaptation

REST

Supportability

Monitoring

Security

SAP Business Suite [ERP,CRM,SRM…]

Data Source

Providers

BAPI

RFC

WS

Data Conn.

IDEs

Plug
-
ins

Events

Metadata
Repository

Consumer

Consumer

Consumer

Generators

BOR/SCR/

RFC

Custom

Dev.

Tools

BOR
Generator

SCR
Generator

Generate new Gateway objects
from existing BAPIs, RFCs or
Dynpros

Build custom

Gateway object

RFC
Generator

Custom

Dev.


Benefits


Capabilities

Does not require coding

Well
-
suited for
tweakers

and non
-
ABAP
developers

Enables rapid prototyping

Create new Gateway objects from existing BOR

Objects
, RFMs & ABAP
Dynpro

screens

Supports multiple object aggregation

Supports adaptation based on client application requirements

Generate structures based on underlying data source

Support CRUD operations + QUERY Operation

Simplification

of Service Interface so that no SAP skills required

©
2011 SAP AG. All rights reserved.

9

IDE Plug
-
Ins [optional]

IDE Plug
-
in tools

IDEs

Plug
-
ins


Benefits


Capabilities

Developers require no SAP Knowledge

Applicable to client developers

In their native [IDE] environment

Increase productivity

Simplify SAP service consumption

IDE plug
-
In available for Visual Studio,
xCode

& Eclipse

Provide ease of consumption thru search and exploration
capabilities on Gateway services

Enable proxy generation of Gateway services

Application starter kit

Support all CRUD operations on Gateway services

Push support for
xCode
, Visual Studio

Provide out
-
of
-
box security and supportability capability

Not Mandatory! Many
Open Source APIs for
OData
/REST!

©
2011 SAP AG. All rights reserved.

10

Gateway Model Types

(simplified view)

Data Source Model

Unmodified model of existing SAP
Business Suite services in a Gateway
-
internal representation

User
-
Centric Exposure Model

Consumable model, derived from a PSM
and optimized for an specific use case
(mobile, web, embedded)

Public Solution Model

Service model that is adapted (reduced)
for lightweight consumption via Gateway

1000

100

15

PCEM

Service Adaptation

ServiceAdjustment

Client
Developer

ABAP
Developer

UC

DSM

PS

Relative Complexity

©
2011 SAP AG. All rights reserved.

11

Gateway Development

Background

Gateway Service
Development

Adaptation in
Gateway

BOR / RFC
Generator

Screen Scraping

Model &
Implement
Skeleton Class

Adaptation in the
Backend

Create Data
Provider & Model
Providers

Generation Channel

OData Channel

©
2011 SAP AG. All rights reserved.

12

Agenda

Overview

Service Modeling

OData

Channel API

Summary


©
2011 SAP AG. All rights reserved.

13

Remote Function Modules

Remote Function Modules (RFMs) are based
on Function Modules that are enabled for
being called Remotely

Based on the Remote Function Call (RFC)
Protocol

All BAPIs are RFC enabled

Easy to create RFC enabled Function Modules



©
2011 SAP AG. All rights reserved.

14

Business Object Repository (BOR)

The BOR organizes SAP business APIs as
Business Objects.

Objects contain methods, events, key fields, and
attributes


Methods are often mapped to BAPIs


Key fields are mandatory fields instantiating the
object


Events are used to notify others of some business
event

View the BOR via transaction SWO2 (O not zero).

Create your own BOR objects or extend existing
BOR objects via transaction SWO1




©
2011 SAP AG. All rights reserved.

15

Dynpro

User Interfaces

There are thousands of
Dynpro

User
Interfaces on SAP Systems

User Interfaces for all aspects of SAP Business
Applications


For Reading, Updating, and Creating Business Data


For marking Business Data for deletion/archiving


Integrated Search Helps available making data input
easier

Screen Scraping technology has been available for
years (BDC sessions)



©
2011 SAP AG. All rights reserved.

16

Gateway Services Based on RFMs or BOR Objects Overview

Gateway Data Models can be created based on
RFMs or BOR Objects.

Gateway Objects are created in the ABAP
Development Workbench


transaction SE80

Once you create the object you will be navigated
to the Gateway Object Modeler


transaction
/IWFND/GWO_GEN.

The Gateway Object Modeler is where you model
your service.

Browse BOR or search for RFMs.

Each Operation can be mapped to an individual
RFM or BOR Object.


©
2011 SAP AG. All rights reserved.

17

Gateway Services Based on Screen Scraping Overview

Gateway Services can be modeled based on
Screen Scraping
Dynpro

User Interfaces.

Gateway Objects are created in the ABAP
Development Workbench


transaction SE80

Once you create the object you will be navigated
to the Gateway Object Modeler


transaction
/IWFND/GWO_GEN.

The Gateway Object Modeler is where you:


Record the Screen


Map Operations to Screen Recordings


Access Search Helps for QUERY operations



©
2011 SAP AG. All rights reserved.

18

Screen Scraping


When to Use

When should you use Screen Scraping?

For quick proto
-
typing

For exposing Search Helps as QUERY operations

When there is no appropriate BOR Object or
Remote Function Module available



©
2011 SAP AG. All rights reserved.

19

Gateway Service Mapping Tool

The Mapping Tool allows you to do the following:


Select Data Model operation type being mapped.


Flatten structures


Rename attributes


Simplify the interface


Assign constant values to import attributes


Assign attributes as key values

Change Mapping Route


used to flatten structures, rename attributes, and assign attributes as keys (S_COR_ID
-
VALUE)

Set Constant Value


used to assign a constant value an input attribute


©
2011 SAP AG. All rights reserved.

20

S_COR_ID
-
VALUE = Primary Key

S_COR_ID
-
VALUE is the Primary Key of
Data Models

Each operation must have the same attributes
mapped to S_COR_ID
-
VALUE

S_COR_ID
-
VALUE is a 72 character string,
the combined length of mapped attributes can
not exceed this

Attributes mapped to S_COR_ID
-
VALUE are
ordered alphabetically by default, this can be
overridden if need be


©
2011 SAP AG. All rights reserved.

21

Agenda

Overview

Service Modeling

OData

Channel API

Summary


©
2011 SAP AG. All rights reserved.

22

Configuration

Configuration

Browser

Code





OData Channel

Development Overview


1.
Pre
-
Requisites

2.
Define Model Class

3.
Define Runtime Class

4.
Register Model Class

5.
Define Model Group

6.
Assign Runtime Class to Model Group

7.
Register Objects in Gateway

8.
Test Service



Consumer

Gateway

SAP Business Suite

©
2011 SAP AG. All rights reserved.

23

Sample Application!

Look at Package
/IWBEP/MGW

SFLIGHT Model and Runtime sample classes demonstrate complete API


Embedded Package :
/IWBEP/MGW_APPLICATION & /IWBEP/MGW_SAMPLE_SFLIGHT


Meta Data Class :
/IWBEP/CL_MGW_MED_SFLIGHT


Runtime Class
:
/IWBEP/CL_MGW_RT_SFLIGHT

SAP Business Suite

©
2011 SAP AG. All rights reserved.

24

Agenda

Overview

Service Modeling

OData

Channel API

Summary


©
2011 SAP AG. All rights reserved.

25

You should now be able to
:


Understand the basics of SAP
NetWeaver

Gateway


Understand OData Channel API basic concept


Know the types of SAP Business Content that we can expose as Gateway
Services


Know the Development Environment’s that SAP developed Gateway plug
-
ins for.

Summary