天天看點

SAP BRF+ Interpretation Mode與Generation Mode

Created by Jerry Wang, last modified on Oct 02, 2014

在Simulation mode下測試一個ruleset時,

SAP BRF+ Interpretation Mode與Generation Mode

可以選擇Simulation Mode為Interpretation Mode或者Generation Mode。

SAP BRF+ Interpretation Mode與Generation Mode

這兩者的差別是,如果以Interpretation Mode運作ruleset, 則ruleset裡每條rule包含的formula都會由BRF 架構的class逐一執行,

SAP BRF+ Interpretation Mode與Generation Mode

callstack如下圖:

SAP BRF+ Interpretation Mode與Generation Mode

而當選擇Generation mode時,因為每個BRF function都存在一個對應自動生成的ABAP class裡處理該function内包含的rule.

如果選擇Generation mode時,rule的執行由此generated ABAP class來完成:

SAP BRF+ Interpretation Mode與Generation Mode
SAP BRF+ Interpretation Mode與Generation Mode
SAP BRF+ Interpretation Mode與Generation Mode

function 和generated class的對應關系維護在table FDT_CC_0000裡,通過function id進行查詢。

SAP BRF+ Interpretation Mode與Generation Mode

繼續閱讀