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.

6

The Enhancement Framework and New BAdIs

You will see an overview of the implemen ting class (Figure 6.26). On the righthand

side, you can either change the class as a whole (for example, create a new

method or attribute) or click an existing method to change (or create) the implementation.

Figure 6.26 Changing a BAdI Class

Now, you are back in SE24 once more and can code as normal. When you’re

done, back on the Enhancement Implementation screen, the magic words The

implementation will be called now appear, which means that everything is

defined properly.

You set up some filters in the implementation definition earlier; that is, you said

what sort of data you were going to use as filters. Now that it’s implementation

time, you’re going to say what specific values to use as filters for this implementation.

In this example, you only want your BAdI called if this is Great Britain and if your

monster is a standard monster. On the Enhancement Implementation screen,

expand the tree on the left, and click Filter Values. The subscreen on the right

then changes to a blank area ready to be filled with filters. Click the Create Combination

icon. Because you need bothconditions to be true (AND), select both filters

in the ensuing pop-up box (Figure 6.27). If you wanted the BAdI to run if

either was true (OR), then you would select one at a time.

The screen then fills up with question marks, indicating that you need to add

some filter values. Go into each line, and add the specific value needed for this

BAdI—for example, the country GB (Figure 6.28).

248

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

Saved successfully!

Ooh no, something went wrong!