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.

8

Business Object Processing Framework (BOPF)

Figure 8.25 Completed Action Validation in Transaction BOB

Coding Action Validations

The generated class for each action vali dation implements the same interface as

the generated class for consistency validations—namely, /BOBF/IF_FRW_VALIDA-

TION. Therefore, the CHECK_DELTA and CHECK methods have the same meaning,

and there is no need to restate that information here. However, it’s worth taking

a look at the coding for the action validation for the sake of completeness.

First off, create a new message, which wi ll be shown to the users if they try to

execute the action and the data is incorrect (Figure 8.26).

Figure 8.26 Action Validation Error Message

Then, add that message to your monster exception class (Figure 8.27).

332

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

Saved successfully!

Ooh no, something went wrong!