SAP Certified Development Associate – ABAP with SAP NetWeaver 7.50 — Question 8
You have created the following:
• A class with an event definition
• A handler class with a method ON_EVT that handles this event
• A report that instantiates the handler class
• A message statement that raises an exception
However, the report does not react to the event.
How do you analyze this issue? (Choose three.)
Answer options
- A. Check if the implementation of the handler method ON_EVT contains the desired logic.
- B. Check if the handler method ON_EVT is defined in a subroutine of the report.
- C. Check if the handler method is registered to the correct event.
- D. Check if the event is triggered by setting a breakpoint at the RAISE EVENT statement.
- E. Check if the event is triggered by setting a breakpoint at the MESSAGE ... RAISING ... statement.
Correct answer: B, C, D
Explanation
The correct answers are B, C, and D because they directly relate to ensuring the handler method is in the proper context (B), verifying the registration of the handler to the event (C), and checking if the event is actually being triggered (D). Option A is incorrect since it does not address the context or registration of the handler, while option E focuses on a different part of the process that is less relevant to event handling.