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

Figure 9.7 shows the screen that controls the application settings. As you can see,

the Default Settings tab shows the application lo g settings. One way BRFplus

seeks to avoid being a black box is by recording how decisions are made inside

the application log so that someone can go back after the event and perform a

postmortem on real decisions in the live system.

To create the next layer in your application, a function, go to the Contained

Objects tab, which you can see in the background of the screen in Figure 9.8 (the

gray area behind the pop up box). (You ca n also create objects such as functions

directly from the context menu of the tr ee on the left side.) A function is what

you’re going to be calling from within your custom ABAP code to pass in some

values and get a result back based on the rule(s) that live inside the function; an

application can have one or many functions. Select Function from the dropdown

list in the top left of the Contained Objects tab, and then click the Create Object

button. The pop up box shown in Figure 9.8 appears.

Figure 9.8 Creating a Function

In Figure 9.8, you can see the box for creating a function. The names can be anything

you want, but it’s good to add a tw o-digit prefix to remind you later what

367

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

Saved successfully!

Ooh no, something went wrong!