Skip to Content
Jan 07, 2019 at 10:59 AM

Correct way to implement error handling in BAdi


Hello, ABAP experts. I have a basic doubt.

In implementing a BAdi method /SCWM/EX_PS_CORE_VALIDATE to ensure that a particular field is maintained for all levels in a packspec, the error handling for an empty field is done by filling the message text and subsequently using the RAISE error statement. Due to this, once the error is raised, it becomes impossible to navigate anywhere on the screen (eg. in switching tabs) as the error message prevents any further action.
What would be the proper way to validate this? Navigating between different tabs on the screen should remain possible even after the error message is displayed. What is the best way to do this?