Custom user exit return values
The custom user exit must be designed to return the values required by the compliance checking process. These values are needed for generating the Functional Acknowledgments. Otherwise, the information regarding errors does not appear on the Functional Acknowledgements.
-
Segment Error Detail
- Segment Name – Segment ID of segment in error.
- Segment Position – Segment position in transaction set of segment in error.
- Segment Loopid – Loop ID of segment in error.
- Segment ErrorCode – Error code to be reported on the Functional Acknowledgment.
- ErrorMessage – Custom error message text that can be reported on Translated Acknowledgment.
- ElementPosition – Position of element in error.
- SubElementPosition – Position of subelement in error.
- Repeating Element Position – Position of repeating element in error.
- ElementErrorCode – Error code to be reported on the Functional Acknowledgment.
- Element Error Content – Data content of element in error.
- Situational Trigger Segment Name – Segment ID of situational trigger.
- Situational Trigger Segment Position – Segment position of situational trigger.
- Situational Trigger Error LoopId – Segment Loop ID of situational trigger.
- Situational Trigger Element Position – Element position of situational trigger.
- Situational Trigger SubElement Position – Subelement position of situational trigger.
- Situational Trigger Repeating Element Position – Repeating element position of situational trigger.
If the data passes all custom user exit validations, a null string must be returned to the compliance checking process at run time to signify that no errors are reported on the Functional Acknowledgement.
If the data fails any of the custom user exit rules, an XML string must be returned to the compliance checking process that is used to generate the functional acknowledgments and response transactions. The error information must conform to the XML format that is defined in the schema t7_custom_user_error.xsd file.