Unit 2: Detailed Architecture and Runtime: Lesson: Business Example
Unit 2: Detailed Architecture and Runtime: Lesson: Business Example
Unit 2: Detailed Architecture and Runtime Lesson: Business Example Lesson: Data Staging Lesson: Data Retrieval and Extraction Lesson: Client Interaction Lesson: Device Rollout
SAP AG 2006
Architecture Intro
Mobile Device App1 App2 Mobile Client JVM DB
HTTPS File
SAP NetWeaver AS
Device queue
Device Inventory
RFC
RFC
HTTPS
Backend A
SAP AG 2006
Backend B
Backend C
Customers are distributed via their region assignment If customer goes to device, assigned order should follow Certain attributes of Service Orders are changed by end user
CUSTOMERS
SERVICEORDERS
SAP AG 2006
Unit 2: Detailed Architecture and Runtime Lesson: Business Example Lesson: Data Staging Lesson: Data Retrieval and Extraction Lesson: Client Interaction Lesson: Device Rollout
SAP AG 2006
Central cache of mobile-relevant information CDS reduces load on back-end systems during
SAP NetWeaver AS
Device rollout
Device queue
Data re-alignment
Device Inventory
RFC
RFC
HTTPS
Backend A
SAP AG 2006
Backend B
Backend C
A data object represents a business object that is relevant for a mobile scenario A data object has a hierarchical structure, each level in the hierarchy is called as node
Each node will be mapped to a schema, each field is called node attribute Links between nodes are called node associations A data object is assignedMobile to Business a software component version (SWCV) Object
Root Node
Child Node 3
Child Node 2
SAP AG 2006
SAP AG 2006
Instance Instance
SAP AG 2006
Unit 2: Detailed Architecture and Runtime Lesson: Business Example Lesson: Data Staging Lesson: Data Retrieval and Extraction Lesson: Client Interaction Lesson: Device Rollout
SAP AG 2006
Backend Adapters
Backend Adapters retrieves and updates back-end data Currently only BAPI Wrappers are supported (more will follow) Backend Adapters connect data object node attributes with interface fields
SAP AG 2006
Three options:
Triggered by DOE: periodic pull of data Triggered by backend system: back-end system provides keys of changed object instances to DOE Back-end pushes instance or update to DOE
SAP NetWeaver AS
Device queue
Device Inventory
RFC
RFC
HTTPS
Backend A
SAP AG 2006
Backend B
Backend C
CDS changes are tracked Extract service fills outbound queues with updates Three options for triggering extract service:
SAP NetWeaver AS
Device queue
Device Inventory
RFC
RFC
HTTPS
Backend A
SAP AG 2006
Backend B
Backend C
Demonstration - Outbound
Mobile Device App1 App2 Mobile Client JVM DB
HTTPS File
SAP NetWeaver AS
U
Device queue Device queue
Device queue
U
Mobile Administrator Integration Engine
RFC
RFC
HTTPS
Backend A
SAP AG 2006
Backend B
Backend C
Unit 2: Detailed Architecture and Runtime Lesson: Business Example Lesson: Data Staging Lesson: Data Retrieval and Extraction Lesson: Client Interaction Lesson: Device Rollout
SAP AG 2006
Mobile Client
Runtime environment for mobile components Manages mobile component registry Manages data access to local data base Tracks local data object instance changes Exchanges data with the DOE
SAP AG 2006
Demonstration - Inbound
Mobile Device App1 App2 Mobile Client JVM DB
HTTPS File
SAP NetWeaver AS
U
Device queue Device queue
C
Device queue
U
Mobile Administrator Integration Engine
RFC
RFC
HTTPS
Backend A
SAP AG 2006
Backend B
Backend C
Unit 2: Detailed Architecture and Runtime Lesson: Business Example Lesson: Data Staging Lesson: Data Retrieval and Extraction Lesson: Client Interaction Lesson: Device Rollout
SAP AG 2006
Users (Our future end users on devices) Devices (Logical and physical ones) Mobile components (software on devices) Application data
Goal:
Highest possible automation to rollout a high number of devices in a given time frame Only few steps required by end user to have software and application data ready
SAP AG 2006
These attributes are modeled in the receiver meta model (RMM), each attribute can have one or multiple values Standard RMM can be enhanced
SAP AG 2006
SAP NetWeaver AS Device Device ID Mobile Components Physical ID Device Queue Number User(s) Distribution Model(s)
Enabled
Device queue
Device Inventory
RFC
RFC
HTTPS
Backend A
SAP AG 2006
Backend B
Backend C
Manually Automatically using back-end information via Receiver Generation data object Initial load Updates
EMPLOYEES
. .
SAP AG 2006
Distribution models
Setup Packages (with or without device relevant data) speed up device rollout
Mobile component archives, deployment status information and client logs are exchanged using data objects (Meta data is included in NW AS ABAP installation)
SAP AG 2006
Unit 2: Detailed Architecture and Runtime Lesson: Business Example Lesson: Data Staging Lesson: Data Retrieval and Extraction Lesson: Client Interaction Lesson: Device Rollout
SAP AG 2006
Data Distribution
Mobile Device App1 App2 Mobile Client JVM DB
HTTPS File
Goal: Restrict data volume on mobile devices Decides which data object instances are relevant for which mobile device
SAP NetWeaver AS
Device queue
Data Distribution
Device Inventory
Further information from backend can be integrated (e.g. territorial assignments of sales force representatives)
Manual assignments are also possible, but not recommended for large deployments
RFC
RFC
HTTPS
Backend A
SAP AG 2006
Backend B
Backend C
EMPLOYEES
WORKCENTERS
CUSTOMERS
SERVICEORDERS
SAP AG 2006
Data distributed to devices is modeled as standard data object Data for automatic creation of devices in the device inventory is modeled as receiver generation (RecGen) data object Data relevant for data distribution is modeled as subscription generation (SubGen) data object
Service Order
Association
Customer
Customer ID Name City . Region
Work Center
Work Center ID Region
Employees
Device Name User ID Work Center ID . Employee ID
Order ID Customer ID
. . .
SAP AG 2006
. .
. . .
. .
Customers should be distributed according to region assignments Distribution Rule for Customer data object
Criteria field: Region Region = Work Center.Region Device Attribute Mapping: DI.Work Center ID = Work Center.Work Center ID
Service Order
Association
Customer
Customer ID Name City Address Region
. . .
. . .
. .
SAP AG 2006
If a customer is distributed, the assigned orders should also go Distribution Dependency for Customer data object
Service Order
Association
Customer
+ Dependency
Order ID Customer ID
. . .
Following Data Object
.
Leading Data Object
. . .
. .
SAP AG 2006
Distribution Models
Once a distribution model is assigned to one or many devices, device subscriptions (runtime data for data distribution) are created The process of creating/updating device subscriptions is called rule evaluation
SAP AG 2006
Service Order
Association
Customer
Customer ID Name City Address Region
. . .
. . .
. .
SAP AG 2006
Demonstration - Realignment
Mobile Device App1 App2 Mobile Client JVM DB
HTTPS File
Distribution-relevant information is updated in back-end system DOE re-aligns business data accordingly
I D
SAP NetWeaver AS
I D
Device queue Device queue
I D
Device queue
U
Mobile Administrator Integration Engine
RFC
RFC
HTTPS
Backend A
SAP AG 2006
Backend B
Backend C
Distribution Model(s) assigned to device Referenced SubGen data object instances Device Inventory attribute values
Important: Same data object instances can be distributed using different Distribution Models
SAP AG 2006
Unit 2: Detailed Architecture and Runtime Lesson: Business Example Lesson: Data Staging Lesson: Data Retrieval and Extraction Lesson: Client Interaction Lesson: Device Rollout
SAP AG 2006
SAP NetWeaver AS
Mobile components still run
Device queue
Data Distribution
SyncBO meta data can be imported + Generic Sync can be configured
RFC
RFC
HTTPS
Backend A
SAP AG 2006
Backend B
Backend C
Mobile Client
Data base contains data objects
JVM
DB
Data Object
SAP AG 2006
Unit Summary
Explain how information is staged in the consolidated data store and forwarded to device queues
Describe how information is retrieved from backend systems Name the role of the mobile client Tell the main tasks of device rollout
SAP AG 2006