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

empty implementation fill ed solely with comments about how you envisage

other programmers creating implementations of this.

Tip

If you do put any code in here, then be sure to remove the final indicator in the properties,

in case subsequent implementations want to inherit from this example class.

At this point, you already have a default implementation, which you don’t really

need in this example; now is the time to create one of the real implementations.

When you are in the screen that define s the enhancement sp ot, you will see an

icon that looks like two cartoon people standing side by side, with the hover text

Create BAdI Implementation.

Figure 6.22 Create Implementation

The analogy of Russian nesting dolls is st ill in full force. There are two parts to

creating a BAdI implementa tion: First, you create an enhancement implementation

(Figure 6.22), and then instantly you are asked to create the next Russian

nesting doll, which is the BAdI implementation (Figure 6.23).

Figure 6.23 Creating a BAdI Implementation: Part 1

Due to the fact that you created a fallback class earlier, you’re asked if you want

to copy it as a starting point or create a new empty class. You’re going to do the

latter in this example, so click the Empty Class button, as shown in Figure 6.24.

246

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

Saved successfully!

Ooh no, something went wrong!