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.

9

BRFplus

Figure 9.34 Overlap Check Showing that Rows are in the Wrong Order

In such a circumstance, you can go ba ck to your busines s expert and query

whether the rules are correct after all. The equivalent check would be a lot harder

to do in conventional ABAP without a great deal of unit tests, and even then you

would probably miss these errors.

The completeness check is intended to tell if you if it’s possible to evaluate every

single row and still not find a result . The preceding exam ple would cause the

check to scream, because the user could put in the region SOUTH, and no result

would be found. This would be tedious to achieve in a normal ABAP method or

function module—looping through every possible combination of input values

looking for a failure to return a result. (As a caveat, the completeness check won’t

work when the text values are not linked to data elements with domains, because

the system has no way of knowing what possible values a user can input.)

9.4 Simulations

This chapter has talked about conventionaltechniques for storing rules, which can

be a bit of a black box; in other words, it is difficult to tell how exactly a given decision

was reached. This can be taken further: When you make a change to an ABAP

program or a customizing table, you might be able to do a test and see that the

result has changed, but can you really be sure why? To get around this, the BRFplus

394

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

Saved successfully!

Ooh no, something went wrong!