Warnings and Errors
If an error occurs, the custom program must log the error using the logError procedure in mfww01b.p, then return Error to stop processing the QDoc. If an Error is returned, the next QDoc is selected and preprocessing is run on it. If there is a warning or the processing is successful, your program should return nothing.You can log all warnings and errors that arise during pre- or postprocessing by calling the logWarning or logError subprocedures in mfww01b.p.To log a warning message:
run logWarning in pMessageLogger (input "Warning: sales order SO9945 not confirmed.").
To log an error message:run logError in pMessageLogger (input "Error: sales order 9956 incorrect so_nbr format.").
Any messages logged using these methods appear in the response QDoc.Note: Logging an error does not stop the QDoc from processing; you must return Error to stop it from processing.