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

which moves you to the Decision Table screen (Figure 9.25) and then press the

Insert Row button (the leftmost icon under Table Contents).

Figure 9.25 Empty Decision Table

To start off, you only have one row, which has a little icon with a few dots before

it in each cell. You now have two options: Enter the values in each cell individually,

or upload a whole table from Microsoft Excel. The latter is achieved by opening

the Additional Actions dropdown and choosing either Import From Excel

or Export To Excel (you can either upload an Ex cel spreadsheet into your decision

table in BRFplus or download the contents of the table into Excel).

As noted earlier, often the business analyst creates a spreadsheet to store the rules

during the analysis phase, or even receiv es a spreadsheet directly from the business

expert in the first place. In some cases, the process is then as simple as defining

an identical structure in the BRFplu s decision table, uploading the spreadsheet,

and then going back to the expert and saying, “Here is the rule inside SAP.

Does it look like that spreadsheet you gave me ten minutes ago?”

In this case, imagine that you don’t wa nt to upload the spreadsheet you were

given, because it wasn’t a very good representation of the rules; you would have

to have thousands of rows to capture every combination. Instead, click the Insert

Row icon ((the leftmost icon under Table Contents), and in the Sanity column

you have two choices. You could click on the square icon to the right of the dots,

and a context menu would appear, fr om which you would choose the option

Direct Value Input to enter a formula. Alternatively, to save yourself a few button

clicks, just click on the three dots yo u can see in each cell, and then you can

enter a formula without having to choose an option from a menu. In either case,

the screen shown in Figure 9.26 appears.

383

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

Saved successfully!

Ooh no, something went wrong!