96
8/11/2019 CD160.pdf http://slidepdf.com/reader/full/cd160pdf 1/96 Carsten Ziegler, Alexander Held November 5, 2013 CD160 SAP NetWeaver Decision Service Managem A Paradigm Shift

CD160.pdf

Embed Size (px)

Citation preview

Page 1: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 1/96

Carsten Ziegler, Alexander Held

November 5, 2013

CD160 

SAP NetWeaver Decision Service ManagemA Paradigm Shift

Page 2: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 2/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Disclaimer

This presentation outlines our general product direction and should not be relied on

purchase decision. This presentation is not subject to your license agreement or anywith SAP. SAP has no obligation to pursue any course of business outlined in this prdevelop or release any functionality mentioned in this presentation. This presentationstrategy and possible future developments are subject to change and may be changtime for any reason without notice. This document is provided without a warranty of aexpress or implied, including but not limited to, the implied warranties of merchantabparticular purpose, or non-infringement. SAP assumes no responsibility for errors or

document, except if such damages were caused by SAP intentionally or grossly neg

Page 3: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 3/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Agenda

Operational Decisions

SAP NetWeaver Decision Service Management

Exercises

Page 4: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 4/96

Operational Decisions

Page 5: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 5/96© 2013 SAP AG or an SAP affiliate company. All rights reserved.

We all need to make decisions constantly.

So do our applications!

Should I go left or right?

What should I wear?

What tasks should I work on?

What should I watch on TV?

Who should I call?

… 

Is the invoice complete?

What’s the discount for this o

What’s the tax amount for th

Who should receive this prom

Which service provider shou

Page 6: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 6/96© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Decisions are ubiquitous

Banking: Relationship basedpricing, credit decisioning,

scorecards

Logistics and Shipping:

Parts management, dutiescalculations, pricingcalculations

Hea

monitor

Insura

claim

Education: Feecalculations, course

selections

Public Sector: Tax

calculations, customs duties,land regulations, license fee

calculations

Page 7: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 7/96© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Decisions are high change components

Decisions

Regulations change Change to keep eligibilitydecisions compliant

Policies change Change validation to track new data requirements

Consumer behavior changes Change to keep selecting the right

deal terms

Markets change Change the assessment

to manage risk

Competitors change Change the discount

to remain competitive

Fraudsters adaptChange the routing to

focus on new fraud

Source: Inspired by James Taylor of D

Page 8: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 8/96© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Suitable decisions to be managed

Operational decisions

Business decisions Micro decisions

High volume (high impact)

Continuous change

Examples

Determine if a customer is eligible fo Validate the completeness of an inv

Calculate the discount for an order

Assess the risk of a transaction

Select the terms for a loan

Choose which claims to Fast Track

The system gives an answer each time

Page 9: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 9/96© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Decision-making logic is typically being coded into appl

Example of decision-making logic coded into an application

Page 10: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 10/96© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Agility vs. Automation… or Business vs. IT 

 Automation: Full Semi No

Code/DB Documents

 Agility: Low Medium H

BusinessExpert

Business

Expert

BusinessAnalyst

Tacit knowledge

Businessexpert

Businessexpert

Businessanalyst

No transparency

Changes expensive

No compliance, no consistent operation

High costs for operations (no scale effe

Page 11: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 11/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

How to adapt decision-making logic in

Business Suite applications?

Page 12: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 12/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

How organizations implement decision-making logic todStep 1 

Business

domain

expert

Document

request

Business domain experts

document request, for example,on paper, word, spreadsheets

Page 13: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 13/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

How organizations implement decision-making logic todStep 2 

Document

request

Hand over

request

Business domain experts hand

over request to IT staff forimplementation

Business

domain

expert

Page 14: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 14/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

How organizations implement decision-making logic todStep 3 

Document

request

Hand over

request

Implement and

deploy changeIT

IT staff implements request, for

example, through Customizing orcustom coding and sets the change inproduction as part of next softwareupdate cycle

Page 15: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 15/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

SAP change management

DevelopmentSystem (DEV)

Quality AssuranceSystem (QAS)

ProSys

Change and Transport Management (CTS)

Set of tools

Methodology

Downtime required

Technical support required  Artificial separation of data types:

decisions (Customizing) based on master data

Works fine for cod

but not for decisio

Page 16: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 16/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Introducing a new approach Simplify management of decision logic across SAP Business Suite ap

Traditional approach

Time from request to implementation Weeks to months

Quality of implemented decision-makinglogic

Low as details lost intranslation

Costs to implement, for example, due toinvolved staff and system downtimes

High

Transparency of decision-making logicapplied across applications

Limited

 Ability to leverage latest innovationsthrough release upgrades

Difficult

New approach:With SAP NetWeaver DSM

Instantly

High - no translation, no details lost!

Low, no IT involvement, no downtimes!

Full

Easy

Page 17: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 17/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Decision (Service) Management

Authoring & Management

Business-user friendly modeling and management environment

Testing and validation

Repository

Externalization of decision logic from core application code

Lifecycle management (versioning, access control) and organization

 Auditing and reporting

Deployment & Execution

Deployment into target runtime containers

 API to invoke decision logic

Logging and tracing

Decision service A self-contained, callable service for making operational business decisions

Decision Service Management system  A software system used to define, deploy, execute, monitor and maintain the variety and complexity of deby operational systems

Page 18: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 18/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Decision Services implementation with business rules

Decision Service

SAP

Application

Custom

Application

Business Rules/Rulesets

Code Exit

BADI

call

use

Decision Service Purpose

Inputs and Output (vocabulary) Business Ownership

Rulesets Collections of rules

Business Rules

IF <condition(s)>

THEN <operation(s)

Expression types (D

Formulas..)

 Action Types (Email

Page 19: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 19/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Separating processes and decisions adds agilityExample: Loan Application 

Characteristics of decision services

Called from a process step with context data on which a result is determined

Process definitions are stable whereas decision services are high change components

 Application

• Completenesscheck

• Data validation• No-go criteria

Credit Score

• Calculation ofcredit score

• Enable/disablecontract terms

 Approval

• Automatapproval

• Complia• Risk man

All banks run the same processes… 

… differentiation occurs in the decisions 

Page 20: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 20/96

SAP NetWeaver Decision

Service Management

Page 21: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 21/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

SAP NetWeaver Decision Service ManagementExternalize decision-making logic from ABAP-based application code 

Decision ServiceRepository

Decision ServiceVersioning & Reporting

Decision ServiceModeling

Decision ServiceLifecycle Management

Model and changedecision services

Centrally storedecision services

Manage tecaspects of dservices

Gain full traanalysis an

SAP NetWeaver Decision Service Management

ITBusinessdomainexpert

SAP

ERP 1

SAP

ERP 2

SAP

CRM… 

Non-

SAP… 

Decision Service Distribution

Distribute dfor local exe

Page 22: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 22/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Decision Service ModelingEmpower business experts to control decision services 

Business-user friendly m

environment

 Allow business experts faster to changing busin

…while reducing the IT

workload

Page 23: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 23/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Decision Service RepositoryCentrally create & maintain decision-making logic 

View all available decision s

central place

Gain full visibility of decisionapplied across the organizat

Save costs through reuse ofservices instead of error-pro

Page 24: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 24/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Decision Service Lifecycle ManagementEmpower IT experts to manage technical aspects 

Manage connection to m

productive business ap

Overview of which systedecision services

 Avoid high integration e

Reduce software upgraof decision services is irelease number of conn

D i i S i V i i & R i

Page 25: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 25/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Decision Service Versioning & ReportingProvide full transparency for analysis and legal purposes 

Compare different ve

rule, view version his

 Activate any version

react to changing bu

Be prepared for lega

SAP N tW DSM l l d

Page 26: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 26/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

SAP NetWeaver DSM sample landscapeDecision services can be reused by multiple systems 

 C 

 onn e c t   or 

SAP ERP

SAP NetWeaver Decision

Service Management

 C  onn e c t   or 

SAP CRM

 C  onn e c t   or 

SAP SRM

 C  onn e c t   or 

Custom App

Non-SAPWeb Service

Page 27: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 27/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

SAP NW Decision Service Management: Landscape

 C  onn e c t   o

Managed System 1Such as Business Suite

Managed System 2Such as CRM

Decision Service Manager

 C  onn e c t   or 

Decision Service Man

Extremely low hardwrequirements

Requires NW 731

Managed System (CRM, ERP, …) 

No upgrade/SPs required,works with NetWeaver >= 6.40

 Any number of managed systems can beconnected with Decision Service Manager (RFC)

Page 28: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 28/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

BRFplus Business Rules

Design transparency

Execution transparency Performance and integration

 Agile compliance

Collaboration

Formula

Page 29: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 29/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

SAP NW Decision Service Management: Modeling

 C  onn e c t   o

Managed System 1

Managed System 2

Decision Service Manager

 C  onn e c t   or 

Modeling with BRFplus

Central creation, test and management of alldecision services

Decision service implementation in rulesets using decisiontables, trees, text rules, formulas (no code)

Access to all data in managed systems (for example, masterdata used in value help of decision table rules)

Page 30: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 30/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

SAP NW Decision Service Management: Deployment

 C  onn e c t   o

Managed System 1

Managed System 2

Decision Service Manager

 C  onn e c t   or 

Service deployment

Transfer of the decision service into one or manymanaged systems (for example, into test systems first)

Hot deployment and as-off deployment - immediate andplanned use with no downtime

Overview of all decision services in all systems,deployment and execution logs

Page 31: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 31/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

SAP NW Decision Service Management: Use

 C  onn e c t   o

Managed System 1

Managed System 2

Decision Service Manager

 C  onn e c t   or 

Service execution

Local execution of generated code, mass-enabled Best performance

No dependency on Decision Service Manager

Execution traces (inputs, results, decision paths for decisioninganalytics or legal compliance)

Page 32: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 32/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

SAP NW Decision Service Management: Continuous Imp

 C  onn e c t   o

Managed System 1

Managed System 2

Decision Service Manager

 C  onn e c t   or 

Service Optimization

Super-fast change cycles in the hand of the domain experts: Analyze, Optimize, Implement

 Automated business decisions with full transparency for betterdecision quality

Immediate ROI

Page 33: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 33/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Decisions vs. processes

 Accept low-riskapplicant

Decline higapplica

Process medium-risk applicant

 Age<21

21<=Age<50

 Age>50

Previous heart attack,existing cancer

Good medical record

New customer

Long-standing customer

1 or fewer claims Multiple claims

No class I or II sports

Class II sport

Class I sport

Embedding decisions causes process complexitySource: Inspired by James Taylor of D

Page 34: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 34/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Decisions vs. processes

Separate decision, simpler processLow ris

Medium ris

High ris

Determineapplicant type

Age 

Class I

sports 

Class II

sports  Heart Attack  Cancer  

New

Customer   # Claims Action 

<21  N  N  Low Risk 

<21  Y  High Risk 

<21 

Medium Risk 

21 - 50  Y  High Risk 

21 - 50  Y  High Risk 

21 - 50  N  N  Medium Risk 

>50  Y  High Risk 

>50  N  <2  Medium Risk 

>50  N  >1  High Risk 

Source: Inspired by James Taylor of D

Page 35: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 35/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

From missed opportunities… 

Traditional approach

Waterfall process with release cycles: specification, design, code

Same change management for all objects (DB, UI, decision logic) High costs also for small changes

Questions

How long will it take to get a requirement implemented when the cut-off date has passed?

Will there be another project for my requirements in the future?

What will the costs of the project be and who will have to pay them?

What will happen if the implemented decisions are outdated?

Delta scopeInitial scope

t li d t iti

Page 36: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 36/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

…to realized opportunities 

Decision Service Management

Clear separation of decisions from processes (agile but robust systems)

Domain experts own and change implemented decisions

Permanent and incremental decision optimizations

Better business results and >90% cost reduction are p

Delta scopeInitial scope

Page 37: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 37/96

Demo

Page 38: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 38/96

Exercises

E i

Page 39: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 39/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Exercises

In the exercises we want to

Set up to a connection to a managed system and create asample application (Exercise 1)

 – that derives the price of some product (Exercise 2),

 – adds shipping costs of 5%, but at least 2$, if the price is under$100 (Exercise 3)

 – and sends a notification mail if a product is not found in the pricelist (Exercise 3)

Then we will test the application (Exercise 4) Before we deploy it to the managed system (Exercise 5)

and implement the call of the decision service in the backend(Exercise 6)

Finally, we will perform a delta deployment and set the rulesvalidity to a future date (Exercise 7)

Login Information

Page 40: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 40/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Login Information

Please log on to system TDI, client 001

Your user is CD160_US (TechEd Las Vegas) or CD160(TechEd Amsterdam and Bangalore)

The password is “welcome” 

The system is a SAP NetWeaver 7.40 systemwith Support Package Level 3

System Information

Page 41: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 41/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

System Information

If system TDI is not yet available in SAP Logon, you needto create the connection

To do so choose the New  icon  Connection

Select User Specified System

Choose Next

Enter the following values

o Description: TDI

o Message Server: localhost

o Instance Number:00

o System ID: TDI

Choose Finish

Alternatively, you can access the BRFplus Workbench directly by enteringthe following URL to your internet browser:http://amsr9t08gdia.wdf.sap.corp:8080/sap/bc/webdynpro/sap/fdt_wd_dsm?sap-

client=001&sap-language=EN 

Exercise 1

Page 42: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 42/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Create a Managed System and a BRFplus Application 

Call the SAP NetWeaver Decision Service Management

Create a managed system

Check further properties of the managed system

Create a new BRFplus application

Exercise 1

Page 43: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 43/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Walktrough 1/4 

Call SAP NetWeaver Decision Service Management

 Call the transaction DSM  from SAP GUI

 A browser window will appear and Decision ServiceManager starts automatically

Exercise 1

Page 44: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 44/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Walktrough 2/4

Create a managed system

• Choose the New icon

•  A dialog box in which you can specify the SystemName (for example CD160_MS), Description (forexample: HandsOn lecture CD160 DSM), the RFC-

Connection to the Managed System (select theRFC_Destination TDI using the F4 Help ) and theDocumentation appears

• Choose Add to create the managed system

• Choose the Save button

Exercise 1

Page 45: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 45/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Walktrough 3/4

Check further properties of the

Managed System you created before

• Select the managed system you created before fromthe list shown in the table Managed Systems

• Check the properties in the Tabs Deployment,

 Applications and Technical Information.

Exercise 1

Page 46: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 46/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Walktrough 4/4

Create a new BRFplus application for

the managed system

• Navigate to the A pplications tab• Choose New

• In the Create Application dialog box, enter Name,

Short Text and Text , for example TechEd_<your

name> 

• Select the Create Local Application checkbox

• Choose Create. The BRFplus application will beautomatically assigned to the managed system

• Choose Save

• Change to Display  mode

Exercise 2

Page 47: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 47/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Create a Function and a Ruleset

Navigate from DSM to the BRFplus Workbench

Create a decision service (BRFplus function)

Define the signature of the function

Input parameter is the product name

Output parameter is the price

• Create a ruleset assigned to the function

Exercise 2

Page 48: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 48/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Walktrough 1/8

Navigate to the BRFplus Workbench

• Choose the Open BRFplus Workbench button to

start the BRFplus Workbench• Close the DSM browser window

Choose the Personalize icon at the upper right ofthe screen and select Show in Change Mode asViewing Mode

Select the Show Technical Aspects checkbox

Then choose Save. By doing so, you do not needto change to edit mode in every single screen

Exercise 2W lkt h 2/8

Page 49: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 49/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Walktrough 2/8

Create a BRFplus function

• Choose Search on the Repository tab

• Enter the name of the application created inExercise 1 and choose the Search button

• The application you’ve created will be

displayed on the Repository Tab

• Click on the application and selectContained Objects tab and choose CreateObject (make sure function is selected)

Enter Name (max. 30 characters), ShortText (max. 20 characters), and Text (max.80 characters),such as Product Price.Choose Create And Navigate To Object

Exercise 2W lkt h 3/8

Page 50: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 50/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Walktrough 3/8

Define the signature of the function

• Select the Signature tab

• Click Add New Data Object    Add New DataObject  

• Select Element Type 

• Enter Name, Short Text, Text , such as Product• For Length select a reasonable text length for

product names such as 40

• Choose Create And Navigate To Object  andchoose Yes to save your entries

Exercise 2W lkt h 4/8

Page 51: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 51/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Walktrough 4/8

• Select the Domain Values tab

• Choose Create Value 

• Enter Name. Short Text, Text and Value,for example Tennis Racket  and chooseCreate 

• Repeat that previous step for additional

products. When you are done, you willhave a value list of products that can beused in your decision service

Page 52: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 52/96

Exercise 2Walktrough 6/8

Page 53: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 53/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Walktrough 6/8

• Select Element Type

• Enter  Name, Short Text and Text, for example. Price

• Select element tpe Amount  • Select Positive Values (the price determination

should always return a positive amount that has tobe paid by the customer)

• Choose Create

• Now you have defined the decision service ProductPrice.

Exercise 2Walktrough 7/8

Page 54: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 54/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Walktrough 7/8

Create a ruleset assigned to

the function

• Select Assigned Ruleset tab• ChooseCreate Ruleset

• Enter Name, Short Text and Text , for exampleProduct_Price

• ChooseCreate And Navigate To Object  and thenchoose Yes to confirm 

Page 55: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 55/96

Exercise 3Define a simple Rule

Page 56: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 56/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Define a simple Rule

In the ruleset defined in Exercise 2, create a rule using a decisiontable

The decision table will return the price for a specific product If there are several entries for the same product, the first one is

taken into consideration

If no matching entry is available, an initial value is returned

Page 57: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 57/96

Page 58: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 58/96

Exercise 3Walktrough 3/5

Page 59: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 59/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Walktrough 3/5

• Choose Insert Column at Condition Columns  From Context Data Objects ...

• Select Product  and choose OK  

• ChooseOK  

Page 60: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 60/96

Exercise 3Walktrough 5/5

Page 61: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 61/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Walktrough 5/5

• Choose ... in the second column of the same new row

• Enter a price and a currency, for example USD for USDollars

• Repeat the last six steps for several products. Also includeat least on product more than once with different prices

• Choose Back and confirm by choosing Yes

• Choose OK to close the rule Look up product prices 

• Choose Save

Exercise 4Define more complex rules

Page 62: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 62/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

p

Add other rules to existing ruleset using formulas and actions (for

example sending an email)

• If the product was not found in the price list (price is set to initial value),trigger a notification email to a fixed email address

• If the product was found in the decision table, derive the shipping cost (5%,but at least $2, if the price is under $100, $0 if the price is 100$ or more)by using a formula and add the costs to the price

Page 63: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 63/96

Exercise 4Walktrough 2/8

Page 64: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 64/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

g

• Under the Then branch choose Add   Process

 Action  Create ...

• Select type Send Email (Action)

• Enter Name, Short Text and Text, for exampleNotification Mail

• Choose Create And Navigate To Object andconfirm by choosing Yes

Exercise 4Walktrough 3/8

Page 65: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 65/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

• In the Recipient(s) field enter an arbitrary emailaddress

• Enter some Subject , for example Notification:

Product not available • Enter the body text, where you can replace the

product name by &1, for example Hello

customer, product &1 does not exist. Regards,

Your Sales Team 

• Choose Refresh Message Placeholders 

• Choose the icon to the right of Placeholder 1 and select Context   Parameters 

• Choose Back and confirm by choosing with Yes

(the rule should now be selected)• Click Back  and confirm the popup window with

Yes ( now the Rule should be selected)

Choose OK again

Exercise 4Walktrough 4/8

Page 66: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 66/96

© 2013 SAP AG or an SAP affiliate company All rights reserved

Insert a exit rule to leave decision service if price

is initial

• In the ruleset on the right side of the rule that you created earlier, choose Options  Insert Next Exit Condition Use Value Range from  Context Price

• Select is initial as condition

Page 67: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 67/96

Exercise 4Walktrough 6/8

Page 68: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 68/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

In the THEN Part choose Add 

Process Expression  Create ...

• Select Formula type 

• Enter Name, Short Text  and Text , for

example Add Shipping Costs 

• Select Price as the result data object

• Choose Create And Navigate To Object  and confirm by choosing Yes 

Exercise 4Walktrough 7/8

Page 69: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 69/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

• By using the context elements, operators and formula function offered at the lowerpart of the screen enter the formula:

• Price + MAX( 2_USD, Price * 0,05 )• Choose the Check button to make sure that the formula is consistent

Exercise 4Walktrough 8/8

Page 70: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 70/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

• Choose Back  and confirm the dialog box by choosing Yes ( the rule should now beselected)

You have now finished modelling your business rules! The next exercise will guide youthrough activating and testing your rules on the managed system

Exercise 5Simulate the Rules on the Managed System

Page 71: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 71/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

 Activate all created objects

Run the function in simulation mode on the managed system

• Enter different products, including products that are not listed or are listedmore often than once, and watch the results

• Check the intermediate results of rules processing

Exercise 5Walktrough 1/4

Page 72: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 72/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Activate all of the created objects

• In case the repository tree is collapsed, expand it

• In the repository tree on the left select the rulesetyou created earlier

• Choose Activate 

Exercise 5Walktrough 2/4

Page 73: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 73/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

• Make sure that the Include Referenced Objects checkbox is selected

• Confirm the dialog box by choosing Yes  

• On the upper left of the screen, you should see the success message Objects activatedand all of the objects you created should show a green icon in the repository tree,indicating that they are active

Page 74: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 74/96

Exercise 5Walktrough 4/4

Page 75: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 75/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

• Enter a product

• Choose Execute and

Display Processing Steps

Notice the resulting price at the top of the screen

Exercise 6Deploy the Decision Service to the Managed System

Page 76: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 76/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Deploy the decision service into your managed system

• Select the managed system you created in Exercise 1

• Make a rest deployment and then deploy the decision service

Execute your decision service in the managed system

Implement an ABAP report that calls the before deployed decision Service

That exercise is intended for people who are familiar with ABAP programming

Exercise 6Walktrough 1/6

Page 77: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 77/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Deploy the decision service into your

managed system

• Navigate from the BRFplus Workbench directly to

the Decision Service Manager. Click in the toolbaron Workbench  Open Decision Service Manager

or enter the transaction DSM in the SAP Backendsystem. The DSM Workbench will now open in anew browser session

• Select the managed system you created in Exercise1 and on the Deployment tab, choose theDeployment Test  button

Exercise 6Walktrough 2/6

Page 78: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 78/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

• Select the BRFplus function you created in Exercise 2. Enter the name of your functionfor example Product* and choose the Search button

• Mark your function and choose Run Test . The DSM will now check wether your function

can be deployed to the managed system•  After the test deployment has been performed , the message Deployment test was

successful, do you want to deploy now? will appear. Choose Yes to start the deployment

Exercise 6Walktrough 3/6

Page 79: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 79/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

• In the dialog box, please enter some

form of documentation for example Initial

deployment of the Decision Service

Product Price • Select Intermediate Deployment  

as the activation time and click on Deploy

In the upper part of the screen ,two success messages are displayed. On theDeployment  tab, you will now see that your function has been deploy to the managedsystem. Click in the column Documentation and check the entries

Congratulations! You have deployed your f irst decision service into a managed system. Inthe next step, we will execute your decision service in the managed system

Exercise 6Walktrough 4/6

Page 80: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 80/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Execute your decision service in the managed system

• Go to the Deployment tab

• Select the decision service, for example Product Price. The BRFplus

Workbench will open

• Choose Create Code Template 

• Deselect the Show Comments checkbox  

• Choose Apply  

• Copy the text

Exercise 6Walktrough 5/6

Page 81: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 81/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

• Switch to the SAP GUI

• Call the ABAP Editor (transaction SE38)

• Create a local report with the following name ‘ZZ_CALL_TECHED_EX_CD160 ’ 

• Paste the copied text into the report• Insert the variable ‘lv_price’ of type if_fdt_types=>element_amount to the Data-

Statement

• Replace the Text ‘[INSERT CONTEXT VALUE HERE OR DELETE THE LINE].’  with one of the products

Exercise 6Walktrough 6/6

Page 82: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 82/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

•  At the end of the report include the following:

• Save, Activate and Run the Report

• LO_PROCESSOR  will find the deployed code of the decision service and execute it

• The result should be the same as in the simulation in Exercise 5

Exercise 7Change Rules in the Decision Service and make a Delta Deployment

Page 83: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 83/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Change the rules in the DSM System

• Go to the decision table PRODUCT_PRICES and adjust the price

• Simulate the function

• Execute the report you created in Exercise 6 again. What do think willhappen?

Perform a delta deployment

• Deploy the decision service to the managed system as future deployment(current time + 5 minutes)

• Execute the Report created in Exercise 6.

• Wait 5 minutes and run the report again

Exercise 7Walktrough 1/4

Page 84: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 84/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Change the rules in the DSM System

• Click on Open BRFplus Workbench in the Decision Service Manager

• The BRFplus Workbench appears in a new browser window. Choose Search and  enter

the name of the application you created in Exercise 1. Choose Application as ObjectType. Choose Search. On the left side ,in the navigation area, the application youcreated is displayed

• Expand the repository tree and navigate to Expression  Decision Table  ProductPrice

• Change the price for all products

•  Activate the decision table

Exercise 7Walktrough 2/4

Page 85: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 85/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

• In the repository tree, go to your function

• Choose Simulation and simulate the function as explained in Exercise 5. Select Remote(Current Version) for the simulation mode. Select the managed system you created in

Exercise 1 and choose continue• Enter a product whose price you change. The price should now be calculated based on

your change

• Go to the SAP GUI and navigate to the report you created in Exercise 6 and execute it.(Make sure the product is the same as in your simulation).

• The prices calculated in the simulation and by the report are different. Since we onlychanged the prices in the DSM system, the managed system will not be affected bythose changes. So it would be possible to test all changes in the rules before deployingthem to the productive environment

• In the next step we will perform a delta deployment and distribute the new decisionservice to the managed system

Exercise 7Walktrough 3/4

Page 86: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 86/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Perform a delta deployment

• Call transaction DSM from SAP GUI

• Select the managed system you created in Exercise 1 and click ion the Deployment   tab,

choose Deploy button• Select the BRFplus function you created in Exercise 2. Enter the name of your function

for example Price* and choose Search 

Page 87: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 87/96

Findings of the Exercises

Page 88: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 88/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Within one hour, we set up an application

• that is business driven and is based on a business model

• that checks for product prices and availability

• that applies context sensitive logic

• that triggers a follow up action

• that can be adapted or extended at any time

• that may have role based authorization

• that is fully integrated with the backend

• without one line of coding

• modification free

• without any previous training or upskilling

• that can easily be called from the backend

• that can be simulated in the productive system

• and that can be deployed at a date in the future

What partners say about SAP NetWeaver D

Page 89: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 89/96

“SAP NetWeaver DSM

simply opens up

opportunities forinnovation in the SAP

Business Suite in aconsistent, sustainablearchitectural approach. It’s

like opening up a window.“

Bernd Mosbrucker, GOPA IT

“SAP NetWeaver

DSM can offersignificant businessbenefits in regard to amore flexible and

manageable rulesmanagement” Mario Moors, Capgemini

“With S

DSM y

of costand tes

implementerprInsteadclevere

Matthias

What customers say about SAP NetWeaver DSMQuote from the white paper “The ROI of SAP NetWeaver DSM” 

Page 90: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 90/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Key Take Aways

Page 91: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 91/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Increase the speed and quality of operational decisions – by automatindecision via business-user maintained decision services1.

2.

3.

Become more agile – by adapting decision-making logic with your applications

Decrease IT cost – by empowering business experts to control decision-making

involvment and system downtimes 

SAP NetWeaver DSM allows organizations to…

Further Information

SAP P bli W b

Page 92: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 92/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Related TECHED Sessions & SAP Education

POP103 Business Rules and Decision Service Management with SAP Software

SPK9641/83 SAP NetWeaver Decision Service Management - Impact on custom developme

SPK9642/84 Preview of new features in SAP NetWeaver Decision Service Management

SAP Education: TZDSM –  SAP NetWeaver Decision Service Management 

Media

Carsten Ziegler, Thomas Albrecht: BRFplus – Business Rule Management for ABAP Applications, SAP Press, 2010, ISBN 978-1-59229-293-6http://www.sap-press.com/products/BRFplus-%E2%80%94-Business-Rule-Management-for-ABAP-Applications.html 

SAP Public Web

SAP NW Decision Service Management: http://www.sap.com/decision-service-managemSAP NW Decision Service Management in SCN: http://scn.sap.com/docs/DOC-29158 

Business Rules Management in SCN: http://scn.sap.com/community/brm 

SAP TechEd Virtual Hands-on Workshops and SAP TechContinue your SAP TechEd education after the event!

Page 93: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 93/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

SAP TechEd Virtual Hands-on Workshops

 Access hands-on workshops post-event

 Available January – March 2014

Complementary with your SAP TechEd registration

SAP TechEd Online

 Access replays of keynotes, DemoLIVE interviews, select lecture ses

View content only available online

http://saptechedhandson.sap.com/  http://sapteched.com/o

Page 94: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 94/96

FeedbackPlease complete your session evaluation for CD160.

Thanks for attending this SAP TechEd s

Page 95: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 95/96

© 2013 SAP AG or an SAP affiliate company. All rights reserved.

Thank You!

Carsten Ziegler

Chief Product Owner SAP NWDecision Service Management

SAP AG

Dietmar-Hopp-Allee 1669190 WalldorfGermany

T +49 6227 7-62733M +49 151 16810210E [email protected] 

Alexander Held

Supply D&T 2 Tech. IntegrationSAP Consulting

SAP Deutschland AG & Co. KG

Hasso-Plattner-Ring 769190 WalldorfGermany

T +49 6227 7 77712M +49 151 53859027E [email protected] 

 © 2013 SAP AG or an SAP affiliate company. All rights

Page 96: CD160.pdf

8/11/2019 CD160.pdf

http://slidepdf.com/reader/full/cd160pdf 96/96

© 2013 SAP AG or an SAP affiliate company. 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.

National product specifications may vary.

These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and servicesin the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an

SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAother countries.

Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.