SAPPerror prints an error message for errors returned from the
SAP library.
Parameters
(IN) saperr
SAP error number.
(IN) text
Pointer to the address of the text to be prepended to the error message.
Usage
The saperr argument returns the error code as it is returned
from one of the SAP functions. The text argument specifies the
address of the text to be prepended to the error message returned by
SAPPerror.