SAPPostingFailure

This is a delegate of type UserExitSAPPostingFailure and has the following parameters.

  • IWorkdoc doc

  • ILineData[] lineData

  • ITaxData taxData

  • ref string docKey

  • IVendorAddress address

  • bool linesRequired

  • object sapReturn

This user exit is called if the ActivateSAPFailureUserExit option is selected in the Settings > Invoice Processing > Capture Profiles > SAP Configuration and a SAP document fails to park or parking is not allowed. Under these circumstances, export fails and the document is sent to the Validation Activity.

In this user exit, a fall back export may be implemented that can output a flat file or update a database if a document cannot be created.

If the fall-back export cannot be performed, an Export Exception is thrown with a reason for the failure. If this variable is not set, the export fails silently with the outward appearance of success.

If another SAP document is created in this user exit, the newly created SAP document number is passed to the ref string docKey interface parameter.

The IVendorAddress structure parameter contains the invoice vendor details and the bool linesRequired flag indicates if the document is relevant for line item export.

This user exit is available during export processing only.