46
 mySAP SRM RKT Value Added Session SRM 6.0 New Workflow Configuration Markus Frieske & Masayuki Sekihara SRM RIG Please note that we are recording this session! Welcome to your RKT Live Expert Session

Brf Wf Config

Embed Size (px)

DESCRIPTION

Config for Business Rules Framework

Citation preview

  • mySAP SRM RKTValue Added Session

    SRM 6.0 New Workflow ConfigurationMarkus Frieske & Masayuki Sekihara

    SRM RIGPlease note that we are recording this session!

    Welcome to your RKT Live Expert Session

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 2

    Target Audience: SAP SRM consultants Partner SRM consultants

    Prerequisites Knowledge: SRM implementation experiences SRM 6.0 overview

    Objectives: Explain Workflow changes in SRM 6.0 Configure new SRM 6.0 Workflow

  • General Overview

    Migration steps from old to the new Workflow

    SRM Workflow Configuration- SRM Workflow settings

    - Business Rule Framework (BRF) settings

    Agent BADI

    Transitions and Limitations

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 4

    Workflow Changes

    WF

    SC.SavedStart Condition

    WF

    PO.SavedStart Condition

    WF

    Conf.SavedStart Condition

    WF

    BUS*.SavedStart Condition

    SRM 5.0SAP Business Workflow+ Start Conditions+ N-step BADI

    SRM 6.0SAP Business Workflow+ Process Schema Evaluation+ Process Level Definition+ Business Rule Framework+ BADI Responsible Agent

    WF

    Process Level Definition

    Business Rule Framework

    Process Schema Evaluation

    EvalID

    Result

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 5

    Easier to configure Reduced complexity of implementation options

    through standardization Complete new user interface and Combined

    document completion (purchaser and specialists) and financial approval (manager) processes

    Out-of-the-box, multilevel approval (without having to code) capabilities

    Introduction of new business rule framework (BRF)

    Offline approval via Duet Dont need in depth workflow knowledge

    Enhancements and Business Benefits

    Enhancements in mySAP SRM 6.0

    Standardized approval processes to reduce complexity

    Reduced total cost of ownership

    Faster implementation cycles

    Compliance with regulations (Sarbanes-Oxley Act, accessibility, and audit requirements)

    Business Benefits

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 6

    Business Rule Framework

    Easy maintenance of business/technical rules Reduces coding and thereby potential for errors ExtensibilityWhere Used List for BRF Objects Trace functionality helps development to easily test the rules

    An SAP Application using BRF raises BRF-Events To each BRF-Event, an arbitrary number of Rules can be assigned. A Rule works like: If then An Expression is an object that returns a result

    BRF is to offer freely configurable rules being processed withoutprograming at certain business events.

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 7

    Back & Forth function, Inquiry and Recall

    New workflow with combined specialist completion and financial approval processes. Completion process must precede approval process.

    Approver has Inquire and Edit option in Completion Process.When Requester need to change the SC, you can recall by clicking the Change/Edit button or access the SC directly (via the POWL) and edit it.

    Approval

    Process

    Completion

    Process

    z Approvez Reject

    z Approvez Rejectz Inquirez Edit

    z Change/Recall

    Requester Approver

    z Accept/Adjustz Accept/Adjust

    Special

    ist

    Financia

    lz Change/Recall

    z Accept/Adjust

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 8

    Approval Preview and Recall Popup

    Approval Preview

    Recall Popup

    when you edit a document which is

    in approval

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 9

    Portal Inbox and New UI

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 10

    General guideline

    New customer SRM60 Define Process Level table with BRF

    Upgrade customer who use SAP standard workflow Migration program is available

    Upgrade customer who developed custom workflow template Manually migrate it to Process Level table and BRF

    Upgrade customer who developed N-step BADI Manually migrate it to Process Level table and BRFOr BADI Adapter is planned in later SP

  • General Overview

    Migration steps from old to the new Workflow

    SRM Workflow Configuration- SRM Workflow settings

    - Business Rule Framework (BRF) settings

    Agent BADI

    Transitions and Limitations

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 12

    Configuration Blocks

    Application

    SAP Business Workflow

    SRM Process

    Level Definition

    BRF

    Process Level

    Process ControlWS40000014

    Process LevelWS40000015

    ApprovalWS40000016

    Event Event

    APL

    WF

    PL

    BRF

    CompletionWS40000017

    Approve/RejectApprove/Reject

    Responsible

    Decision Type

    Expression ExpressionExpression Expression

    Adjust (w. pot. Restart)

    Accept/Recall

    S

    h

    o

    u

    l

    d

    n

    o

    t

    c

    h

    a

    n

    g

    e

    M

    a

    i

    n

    C

    o

    n

    f

    i

    g

    u

    r

    a

    t

    i

    o

    n

    Create SC

    Process Scheme

    Event /SAPSRM/CL_WF_PDO. READY_FOR_WORKFLOW

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 13

    Process Level Definition table (Example)

    Item-Based Decisionfor Partial Document

    Item-Based Decisionfor Partial Document

    Item-Based Decisions for Entire Document

    Item-Based Decisions for Entire Document

    Approval decision type

    Exception handling

    Automatic RejectionAutomatic90

    Next director in PD-OrgTotal Value exceeds Euro 2000,-

    Director approvalApproval40

    Next line manager in PD-Org

    Total Value exceeds Euro 400,-

    Line manager approval

    Approval30

    Users with role BBP_STALIT_DEPARTMENT

    Product category 012exists (IT Equipment)

    IT Department completion (of IT equipment)

    Completion20

    Purchasers of purchasing group 500000002

    Free text item exists

    Purchaser completion (of free text requirements)

    Completion10

    Responsible agentsBusiness RuleDescriptionProcess (type)LevelPL

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 14

    Approval implementation steps

    1. Define Process Scheme Evaluation

    2. Configure Process Level Definition Level, Responsible, Decision Type

    3. Configure BRF Expression Events, Expressions, Formula Editor

    4. Implement Agent BADI (option) Definition: /SAPSRM/BD_WF_RESP_RESOLVER Enhancement spot: /SAPSRM/BD_WF_AGENTS

    PL

    BRF

    PL

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 15

    Solution Manager -> IMG Configuration

    WF

    BRF

    PL

    Solution Manager

    IMG

    IMG Path: Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> SAP Business Workflow (New)

    See Appendix for Basic Workflow settings. Nothing new.

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 16

    Copy BRF Objects

    Program:

    BRF_TRANSPORT_SIMPLE

    Application Class:

    SRM_WF

    BRFIMG Path: Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> SAP Business Workflow (New) -> Basis Workflow Settings -> Copy BRF Objects

    The report copies BRF Objectsfrom client 000 to your currentclient

    Run this report once for each clientin your SRM system (except client000)

  • General Overview

    Migration steps from old to the new Workflow

    SRM Workflow Configuration- SRM Workflow settings

    - Business Rule Framework (BRF) settings

    Agent BADI

    Transitions and Limitations

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 18

    WF1. Activate Workflow

    Activate the event link: WS40000014IMG Path: Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> SAP Business Workflow (New) -> SRM Workflow Settings -> Workflow Settings -> Activate Workflow

    WF

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 19

    WF2. General Task

    Set general task:

    TS 40007936 Revise Document

    TS 40007943 Basic SRM Decision Task

    TS 40007944 Adjust Document

    TS 40007945 Review Document

    TS 40007952 SRM Shopping Cart Completion

    TS 40007953 SRM Shopping Cart Approval (1)

    TS 40007954 SRM Shopping Cart Approval (2)

    WF

    IMG Path: Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> SAP Business Workflow (New) -> SRM Workflow Settings -> Workflow Settings -> Activate Workflow

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 20

    PL1. Define Process Scheme Business Object

    Business Objects BUS2121 - Shopping Cart PL

    System demo - iTutor

    IMG Path: Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> SAP Business Workflow (New) -> SRM Workflow Settings -> Workflow Settings -> Define Process Levels

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 21

    PL2. Define Process Levels Evaluation ID

    BUS2121 -> Evaluation ID, 0EVS01 (Predefined) PL

    BRF:Event

    0EVS01 (Predefined)

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 22

    PL3. Define Process Levels Scheme

    Process Scheme Definition PL

    BRF: Event

    0EVS01 (Predefined)

    BRF: Expression Result

    BUS2121_EX01

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 23

    PL4. Define Process Levels

    Process Level Configuration (SPRO customizing) Level Type (Completion, Approval) Responsibility Resolver name (User, Role, Manager, ManOfManager, Purchaser

    OR customer dev.) Business Rule Framework (level validation) Task ID (predefined OR customer own) Decision Type

    PL

  • General Overview

    Migration steps from old to the new Workflow

    SRM Workflow Configuration- SRM Workflow settings

    - Business Rule Framework (BRF) settings

    Agent BADI

    Transitions and Limitations

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 25

    BRF at Runtime An Example

    Actions

    AusdruckAusdruck

    Program Flow

    Event

    RegelRegel

    RegelRule

    Expression Expression

    AktionAktion

    AktionAction

    Expression

    To each event, a number of

    rules is assigned

    A Rule works like,if then

    An Application using BRFraises Events

    Not used in SRM WF

    BRF

    In SRM, the boolean expression result (True/False)is given back to the calling ABAP class in the application

    Expression

    SRM: Event callsexpression directly

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 26

    BRF Expressions

    Expressions are BRF objects that return a definite result Boolean Expressions form the IF part of the Rule Expressions can be of the following types:

    Constant - (0CN001)

    Field of a Structure (Data Source)

    Field of a line of an Internal table (Data Source) - (0TB001)

    Call Function Module / Method - (0CF001)

    Boolean Three-operand Arithmetic - (03O001)

    Simple Formula Interpreter - (0FR001)

    SAP Formula (as used in BADI implementations) - (0FB001)

    Truth Table Pattern Matching - (0PM001)

    Random Number Generator - (0RV001)

    Date Interval - (0DI001)

    Case expression - (0CE001)

    help.sap.com

    BRF

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 27

    BRF3. Define Events

    Predefined event:0EVS01

    BRFPL:Evaluation ID

    0EVS01 (Predefined)

    IMG Path: Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> SAP Business Workflow (New) -> BRF Settings -> Define Events

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 28

    BRF2. Define Expression Scheme level

    Predefined Expression: 0V_RF_C_SCHEME BRF

    IMG Path: Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> SAP Business Workflow (New) -> BRF Settings -> Define Expressions

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 29

    BRF3. Define Expression Process level

    Pre-defined Expression: 0V_LV_B_CONSTRAIN3 BRF

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 30

    BRF3. Expression - Formula Editor

    BRF

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 31

    Demo

    You can download iTutor file from Recorded Live Expert session page.

    System demo - iTutor

  • General Overview

    Migration steps from old to the new Workflow

    SRM Workflow Configuration- SRM Workflow settings

    - Business Rule Framework (BRF) settings

    Agent BADI

    Transitions and Limitations

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 33

    Agent BADI methods

    Item 1 Product Category 1100

    Item 2 Product Category 1200

    Item 3 Product Category 1120

    item 4 Product Category 2000

    item 5 Product Category 2010

    item 6 Product Category 3020

    Responsible P-Group 001

    Responsible P-Group 002

    Responsible P-Group 003

    Area 1

    Area 2

    Area 3

    Example for Responsible Purchasing Group

  • General Overview

    Migration steps from old to the new Workflow

    SRM Workflow Configuration- SRM Workflow settings

    - Business Rule Framework (BRF) settings

    Agent BADI

    Transitions and Limitations

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 35

    Transition Steps from SRM 5.0 to SRM 6.0 (Overview)

    The SRM 5.0 BAdI-Workflows are not supported in its original form any more

    There is a new concept to adapt the approval workflows to customer expectations (mainly configuration and programming)

    Approval Workflows must be switched to the new SRM Workflow as soon as the new UI for the BO is introduced

    After the Upgrade from SRM 5.0 to SRM 6.0 there is the need to stop the old workflows and re-start the new workflows

    The following reports are provided to do the switch /SAPSRM/PR_WF_MIGRATION_CFG (migrates the workitems) /SAPSRM/WF_COND_MAPPING (migrates the start conditions)

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 36

    Cancel old Workflow and start new workflow

    Program: /SAPSRM/PR_WF_MIGRATION_CFG

    This report searches for workitems, sets them to CANCELLED and starts the respective new workitem

    Disable creating the old BUS2121.saved event

    Table: /SAPSRM/D_WF_001 Toggle

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 37

    Migrate old Workflow settings to new Workflow

    Report: /SAPSRM/WF_COND_MAPPINGReads start conditions (/nSWB_COND) from SRM 5.0 Workflow and transfers them into SRM 6.0 BRF Expression Formulas (e.g. 1- and 2-step Approval, Spending Limit and SC Completion, also for

    Contracts, Purchaser Order etc.)

    Reports uses the Process Level table with one Completion Approval and two Approval steps, expression which can be used are in table /SAPSRM/C_WF_MAP

    Please Note: The Report does not create anyBRF Objects. They must existalready.The Report creates the step-tablesand the schemas.

  • General Overview

    Migration steps from old to the new Workflow

    SRM Workflow Configuration- SRM Workflow settings

    - Business Rule Framework (BRF) settings

    Agent BADI

    Transitions and Limitations

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 39

    Overview with which Support Package a specific feature will be provided

    No Offline Approval without Duet New Workflow for Confirmation & Invoice Reviewer Workflow

    SP02

    No Reviewer No Offline Approval without Duet

    New Workflow function for most documents (exceptions are Confirmation, Invoice and see next slide) Dynamic Spending Limit Approval (Shopping Cart) Alerting & Notifications Offline Approval with Duet Migration report for Non-BAdI-Workflows available

    SP01

    No Dynamic Spending Limit Approval No Alerting & Notifications No Reviewer No Offline Approval (not at all) No automatic migration

    New workflow for Shopping Cart: n-step Approval Completion Approval Budget Approval

    For all other Business Documents (like PO, CTR, etc.) the old Workflows will be used

    SP00

    Not availableAvailableSupport Package

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 40

    Changed Workflows with SRM60 (with SP02)

    Bid Auto, one-step, n step Bid Invitation Auto, one-step, n step Confirmation Auto, one-step, two-step, admin. Approval Contract Auto, one-step, n step Invoice Auto, one-step, two-step, admin. Approval Purchase Order Auto, one-step, n step Shopping Cart Auto, one- & two-step,, Spending limit, Item-based, Completion

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 41

    Limitations

    Previous standard and n-step BAdI workflows not available with SRM 6.0 - mostworkflows (exceptions PO Conf., User Master, Business Partner, Procurement Card) to be merged into a new single standard workflow, introduction of new Business Rule FrameworkChanging a document not possible at any time. Requester needs to Recall work

    item to avoid inconsistenciesAuthorization to change shopping cart document does not dependent on user

    attributes / roles (BBP_WFL_SECURITY), but is based on approval levelNot possible to add ad-hoc approvers on every level (SRM60: add only on next

    level)No graphical approval preview

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 42

    Obsolete BADI and functions

    BBP_WFL_APPROV_BADI Determine Approver for n-Level. Dynamic Approval WFL Manual migration to SRM60

    BBP_CHNG_AGNT_GET Approver Selection when Approver Changed/Added Maintain it in standard task

    BBP_WFL_ADMIN_APPROV Determination admin. approver for invoice/confirmation

    BBP_OFFLINE_APP_BADI Customer-Specific Modification of E-mail Approval Use Duet

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 43

    Summary

    New SRM 6.0 workflow: Easier to configureCompliance with regulationsMultilevel approval without BADIDont need in depth Workflow knowledgeBRF knowledge is required

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 44

    Resources & further Questions

    Resources:

    1. The SRM 6.0 RKT Learning maps are Live. Please find them in the Service Market Place(http://service.sap.com/rkt-srm). Main topics include: SRM 6.0 Architecture New BRF workflow WebDynpro(ABAP & Java) configuration Execute the technical configuration of the SRM 6.0 components

    2. Series of Recorded Live Expert Sessions are intended to supplement the above Learning maps (http://intranet.sap.com/~sapidb/011000358700006295922006E) Portal Setup for an SRM Consultant WebDynpro config for an SRM Consultant BRF Workflow for an SRM Consultant

    3. The latest collaterals on SRM 6.0 could be found on the Service Market Place. The internal versions of the same can be found under portal quick link /srm-rollout (http://intranet.sap.com/~sapidb/011000358700006330942006D)

    Questions:

    If you have any questions regarding workflow or SRM 6.0, Please log your question via SAS:http://skm.wdf.sap.corp:1080/SAS_Interaction_Center/

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 45

    Thank You!

    Thank You!

    Fragen? Questions? Preguntas?

  • SAP AG 2007, SRM 6.0 Value Added Session for Workflow / 46

    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, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries, pSeries, xSeries, zSeries, z/OS, AFP,

    Intelligent Miner, WebSphere, Netfinity, Tivoli, and Informix are trademarks or registered trademarks of IBM Corporation in the United States and/or other countries.

    Oracle is a registered trademark of Oracle Corporation. 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. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver 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 in several other countries all over the world. 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.

    This document is a preliminary version and not subject to your license agreement or any other agreement with SAP. This document contains only intended strategies, developments, and functionalities of the SAP product and is not intended to be binding upon SAP to any particular course of business, product strategy, and/or development. Please note that this document is subject to change and may be changed by SAP at any time without notice.

    SAP assumes no responsibility for errors or omissions in this document. SAP does not warrant the accuracy or completeness of the information, text, graphics, links, or other items contained within this material. 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 shall have no liability for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. This limitation shall not apply in cases of intent or gross negligence.

    The statutory liability for personal injury and defective products is not affected. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third-party Web pages nor provide any warranty whatsoever relating to third-party Web pages

    Copyright 2007 SAP AG. All Rights Reserved