Inserting Parameters for Error Messages in lpDS
Include the parameters cSuppressErrorMessage and szErrorMessageID in lpDS for error message processing. The functionality for each is as follows:
cSuppressErrorMessage (SUPPS)
Valid data is either 1 or 0. This parameter is required if jdeErrorSet(...) is used in the business function. When cSuppressErrorMessage is set to 1, do not set an error because jdeErrorSet will automatically display an error message.
szErrorMessageID (DTAI)
This 4–character string contains the error message ID value that is passed back by the business function. If an error occurs in the business function, szErrorMessageID contains that error number ID.
Note:You must initialize szErrorMessageID to 4 spaces at the beginning of the function. Failure to initialize can cause memory errors.