14.01.2020 Views

ABAP_to_the_Future

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating Rules in BRFplus: Complicated Example 9.3

requirements you have received in your career, you may be surprised how many

turn out to be decision tables of one form or another.)

To start, create a function with a signat ure that represents th e actual values the

user enters as selection. The result data object will be a structure with the six possible

result columns. The complete signature can be seen in Figure 9.30.

Figure 9.30 Complex Rule Function with Signature

Then, go through the same steps that were discussed in Section 9.2: Create a ruleset

and a rule (expression), which is a decision table. There are different columns

this time (early age strength, growth pe rcentage, etc.): still customer requirements,

but different customer requirements from those used in the earlier example.

(Once again, there must be a little man inside the computer, because the columns

will come out in the order you want. Either the system remembers the

order in which you chose the columns, or it’s magic.)

Because you have a large spreadsheet, fi rst download the bl ank decision table

to Excel (via the Additional Actions button shown in Figure 9.24) to make

100% sure that you have the format corr ect for upload. Then, paste in the val-

391

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

Saved successfully!

Ooh no, something went wrong!