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.

Implementing BAdIs 6.4

want to go to a restaurant); now, it’s time to deal with the implementation of the

BAdI (rather like saying what specific restaurant you want to go to).

6.4 Implementing BAdIs

After you have completed the steps in the previous section, the BAdI definition is

complete. You should still be on the BAdI Definition screen shown in Figure

6.14. Now, the time has come to fill in the Fallback Class section at the bottom

of the screen.

What you are about to create is a defaul t implementation (the so-called fallbackclass).In

Figure 6.21, you ca n see a ticked checkbox in dicating that you want a

fallback class, and that class is given a name. (You really only need a fallback class

for a single-use BAdI, because in that case at least one implementation is mandatory.

With a multiple-use BAdI, it’s fine if no implementations at all are called.)

Figure 6.21 Creating a Fallback Class

This takes you into SE24 again, so nothing to see here; you create the class in the

normal way. The system does ask you if you want the fallback class to show up on

the BAdI definition table as an exampl e implementation, so you could have an

245

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

Saved successfully!

Ooh no, something went wrong!