测试SAP BRF+ ruleset
2023-09-14 09:02:50 时间
Created by Jerry Wang, last modified on Oct 01, 2014
使用wiki"使用代码创建BRF ruleset"提到的report 创建ruleset,里面包含了两个ruleset variable, 这两个rule variable的初始化分别由calc. cust. discount和calc. pro. discount这两个decision table来完成。
Decision table的rule 维护如下
如果customer是“sap”,item是“ballpen”,则customer discount值为0.15
如果customer是“sap”,item是“pencil”,则customer discount值为0.12
如果不满足以上两个条件,则无discount
这里的column customer, item和Customer Discount都是function的context里定义的变量。
点击Simulation button:
选择Interpretation Mode:
点Execute button.
因为customer=sap, item=pencil, 满足decision table里的entry,因此customer_discount为0.12
promotion=sun, item = pencil, 不满足decision table里的任何一条entry,因此promotion_discount为0.
所以rule里的if 条件不满足,因此price将按照customer discount进行计算: final price = 10 / ( 1 + 0.12 ) = 8.93
如果使用"Execute and Display Processing Steps", 能够看到BRF+ 每一步具体的执行步骤:
相关文章
- SAP UI5 sap.ui.layout.Grid 控件概述
- 测试 SAP 电商云 Spartacus UI 3.4.x 和 4.3.x 的 guest checkout 功能
- SAP CRM Fiori 应用的 Deep Create 行为和实现分析
- 关于 SAP UI5 所有控件的共同祖先 - sap.ui.base.ManagedObject
- SAP UI5 表格数据如何导出成 Excel 文件(Table Export As Excel)
- SAP UI5 sap.ui.Device.media.RANGESETS 的使用介绍
- SAP OLE中常用的一些方法和属性详解编程语言
- SAP中数字计算时溢出捕获详解编程语言
- SAP打印机配置详解编程语言
- SAP 修改表和表中数据详解编程语言
- SAP MM ME21N 创建委外采购PO报错-Not possible to determine any components-之对策详解编程语言
- SAP 如何定义后台job详解编程语言
- PowerSAP:一款强大的PowerShell SAP安全审计工具
- 深度比较:SAP vs Oracle(sap与oracle比较)
- 对比:Oracle 与 SAP的优势(oracle 与 sap)