SAP ABAP IMG Activity /SRMERP/BRFP_PROC_S (Define Rulesets for Process Schema Determination)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   MM-PUR-SSP (Application Component) Self-Service Procurement
     /SRMERP/WF_CFG (Package) Workflow Process Configuration
IMG Activity
ID /SRMERP/BRFP_PROC_S Define Rulesets for Process Schema Determination  
Transaction Code /SRMERP/44000271   (empty) 
Created on 20101124    
Customizing Attributes /SRMERP/BRFP_PROC_S   Define Rulesets for Process Schema Determination 
Customizing Activity /SRMERP/BRFP_PROC_S   Define Rulesets for Process Schema Determination 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name /SRMERP/BRFP_PROC_S    

Use

In this Customizing activity, you can access the BRFplus function Get Workflow Process Schema (/SRMERP/F_WF_GET_PROC_SCHEME) to define process schemas for your shopping cart approval processes. You define process schemas using rulesets.

For more information about BRFplus, see SAP Help Portal at http://help.sap.com under SAP NetWeaver Library --> SAP NetWeaver Library: Function-Oriented View --> Application Server --> Application Server ABAP --> Other Services --> Services for Application Developers --> Business Rule Framework plus.

You can define more than one process schema if you want several different approval processes for shopping carts. Process schemas contain all possible process levels of an approval process.

Requirements

  • Ensure that the following workflow templates are available in the system:
    • Main Approval Process Template (WS 46000014)
    • N-Level Approval Loop (WS 46000015)
    • Approval Subworkflow (WS 46000016)
  • You have performed the Customizing activities in Customizing for Materials Management under Purchasing --> Shopping Cart --> Business Workflow --> Technical Configuration.

Standard settings

The default ruleset Ruleset for SC process schema (/SRMERP/RS_WF_PROC_SCHEM_EX_SC) is available for demonstration purposes and has the lowest priority ('99'). It is triggered in a non-productive client only and only if you have not defined your own ruleset. It determines a process schema from the BRFplus decision table SC Decision Table of Process Schema (/SRMERP/E_DT_PROCESS_SCHEME_SC).

This decision table contains two approval process schemas:

  • One-step approval: SAP_ERP_SC_1_STEP_APPROVAL
  • Automatic rejection: SAP_ERP_SC_AUTOMATIC_REJECTION

The system selects the process schema using BRFplus expression Is Process Schema Valid? (/SRMERP/E_WF_IS_SCHEMA_VALID). When the expression returns False, the process schema for automatic rejection is selected; when it returns True, a one-step approval process is started.

The expression is based on the BRFplus function Is Process Schema Valid? (/SRMERP/F_WF_IS_SCHEMA_VALID). By default, this function does not contain a ruleset. Therefore, by default, it returns False so that all shopping carts are rejected automatically. When you assign a ruleset to the function and change the return parameter WF Boolean (/SRMERP/WF_BOOLEAN) to True, the one-step approval process is started.

Activities

To define the process schema determination, you assign your own ruleset to BRFplus function Get Workflow Process Schema (/SRMERP/F_WF_GET_PROC_SCHEME). This ruleset should check the document subset, determine the appropriate process schema for this document subset, and change the return parameter RV_PROCESS_SCHEME accordingly.

Example

Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
Mandatory / Optional 1   Mandatory activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG /SRMERP/BRFP_PROC_S 0 /SRMERP/EBS0000022 Self-Service Procurement 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
IMGDUMMY D - Dummy object /SRMERP/BRFP_PROC_S  
History
Last changed by/on SAP  20101124 
SAP Release Created in 606