RaiseException Method
Used to reply with an error response to a function call request received from the SAP system.
Object Oriented Interface
public function doRaiseException($message);
Procedural Interface
inerp_sapserver_do_raiseexception($res, $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.