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: Basic Example 9.2

How dare BRFplus come along and tell us it can do this better! Look at how it handles

the same task.

9.2 Creating Rules in BRFplus: Basic Example

This section walks you through the basic steps in creating rules in BRFplus, which

consists of three main steps: creating an application, adding rule logic, and calling

the BRFplus function in ABAP.

9.2.1 Creating a BRFplus Application

To start creating a BRFplus application, call Transaction BRFplus or BRF+ (either

will do; both transactions call the exact same program). Depending on your system

settings, you may be asked for your user name and password again. The first

time you run the transaction you may see a whirling circle for a few minutes;

afterwards, the BRFplus screen appears.

Note

The screens in BRFplus look very different depending on what version of SAP you are

running. This is one product that still ha s a large number of enhancements coming

through in each support stack.

Like Russian nesting dolls, you have to create many layers when creating an

object in SAP, and the same is true here. The innermost doll is the rule, and the

outermost doll is the application. You start with the outside—the application—so

click the Create Application button. The screen shown in Figure 9.6 appears.

In Figure 9.6, you can see the screen for creating an application, with all the standard

fields: Name, Short Text, and Text. Before version 7.4 you did not have to

start the name of applications with “Z” in this framework; you still don’t have to

in 7.40, but you get a warning if you don’t. When you get deeper inside of BRFplus

it’s best to have some sort of naming convention so that you can tell different

types of objects apart by looking at their technical names.

In the Storage Type field, you have three options: Master Data, which lives in

the current system and does not get transported, Customizing, which is clientdependent,

and System, which is like a workbench object.

365

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

Saved successfully!

Ooh no, something went wrong!