14.01.2020 Views

ABAP_to_the_Future

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Creating Rules in BRFplus: Basic Example 9.2

FALSE because of the requirement in the Scariness column, and the sixth rows

would have been chosen, because every cell is blank and therefore TRUE.

Figure 9.27 Complete Decision Table

When you set up the decision table in the first place, you were asked what reaction

you wanted if no result was found; you can also set this to return every single

row that evaluates as TRUE. Say that you had set the table to give you a list of every

row that was TRUE. In the preceding example with the extra scary monster with a

sanity of 30%, the fifth row would have been returned, because every cell evaluates

as TRUE—and so would the sixth row, beca use every cell there evaluates as

TRUE as well. So the result would be a table of two lines. This makes no sense in

this example, which is trying to be serious, after all, but you could imagine a situation

in which there are rules to see if a monster of a particular color is capable

of dancing the foxtrot, for example. In that case, you would create a decision table

in which the inputs are the customer requirements, an d the results would be a

table of the colors of monsters that can dance the foxtrot—for example, green and

orange ones can, but sky blue and pink ones cannot.

Note

When you download this to Excel, the form ulas come out as “ =>75”. Upload it again

with changed values; BRFplus will know how to interpret the value.

You’re finished now; it’s ju st a question of checking and activating each of the

objects you’ve created. Every screen in which you create or change an object will

385

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!