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

In the pop-up shown in Figure 9.12, you define the name of the ruleset. You will

note the “RS_” (for “ruleset”) prefix to the technical name, but you can specify any

name you desire. Click Create And Navigate To Object , and the screen shown

in Figure 9.13 appears.

Figure 9.13 Ruleset Definition Screen

In the middle of Figure 9.13, you will see a Variables section; this is for defining

variables that are used internally within the ruleset and are not part of the function

signature. Function context (the input variables), function result (the output

variable), and ruleset variables (which you might think of as variables local to the

ruleset) make up the execution context of an expression or a rule. As soon as a

rule or expression is assigned to a function, those data objects can be provided for

use in the rule.

The ruleset definition screen shown in Fi gure 9.13 has a list of rules at the bottom.

Naturally, the list will be empty whenyou start, so use the dropdown on the

Insert Rule button, and choose the Create option. The screen shown in Figure

9.14 appears.

In this screen, you’ll see what looks like an IF/THEN/ELSE statement in ABAP. Use

the dropdown on the Add text just after the THEN statement, and choose Process

Expression from the resulting context menu. Hooray! You’ve reached your destination.

372

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

Saved successfully!

Ooh no, something went wrong!