SAP Document Builder: An example of rule

81 阅读1分钟

Created by Jerry Wang, last modified on Jul 22, 2014

We have define one rule with ID ZCR_RULE_TEST for element ZCR_RULE_TEST:

 

clipboard1

 

 

 

The rule means:

 

 

if the variable ZFIRST has value X and variable ZSECOND has value YES, then the element ZCR_RULE_TEST must also be embedded into the final document.

clipboard2

 

 

in this case, since the IF condition is fulfilled, we expect to see the element ZCR_RULE_TEST:

 

clipboard3

 

 

and this works as expected.

 

clipboard4

 

 

test the other branch ( IF condition does not fulfill )

 

clipboard5

 

 

and ZCR_RULE_TEST is gone:

 

clipboard6