CreateSAPDocument
This is a delegate of type UserExitCreateSAPDocument and has the following parameters.
-
IWorkdoc doc
-
ILineData[] lineData
-
ITaxData[] taxData
-
AccountingData[] glData
-
bool post
-
bool completeTax
-
object bapiHeader
-
bool abort
-
object bapi
Additional parameters for this user exit can be specified for the BAPI call to SAP that is used to create an invoice. The BAPI interface used matches the interface from BAPI_INCOMINGINVOICE_CREATE.
BAPI parameters passed at header level are populated via the bapiHeader object. This is passed as an instance of SAP.Middleware.Connector.IRfcStructure.
Structures other than HEADERDATA are available via the bapi object. This object is passed as an instance of the SAP.Middleware.Connector.IRfcStructure.
The bool post indicates if the invoice is posted or parked. This is provided for information purposes only and the parameter cannot be changed. The parameter bool completeTax controls if the BAPI parks an invoice with any gathered tax data.
If document creation in SAP needs to be aborted, parameter bool abort should be set to TRUE.
This user exit is available during export processing only.