Siebel Connector for SAP R/3 > Customizing Integrations > Testing the Interface >

The EAIRaiseError() Function

You can also use the EAIRaiseError() function as a way to debug. This function terminates the execution of the script (which is what you might want at times). For example, to see if there is a value in the City field (and you do not want to go any further if there is none), you can use code similar to the following:

if (!iAddrComp.GetFieldValue("City") )
EAIRaiseError ("Value in the City field is empty");

For more information on EAIRaiseError() function, refer to data mapping using scripts in Business Processes and Rules: Siebel eBusiness Application Integration Volume IV.

Siebel Connector for SAP R/3