RaiseException Method
Used to reply with an error response to a function call request received from the SAP system.
Syntax
public void raiseException(String message);
Remarks
If you encounter an error when processing the function call inside of the FunctionCall event, use the RaiseException method to return an error condition to the SAP system that called your function.
This method should only be used inside the FunctionCall event.
Please note that this method is invalid when using JCo.