CommitTrans
This command is used to release an ERP connection back to the managed pool once the process is finished with it. Note: You must always use this function paired with ERP.BeginTrans, otherwise you will deplete the pool of connections and prevent other users from having ERP access. The first ERP data connection is the default Source value.
Group: Enterprise Resource Planning Extensions
For an SAP system, this command will also execute BAPI_TRANSACTION_COMMIT.
Syntax: [bValue =] ERP.CommitTrans([vSource])
bValue (Boolean) Optional – A True/False notification that the command processed successfully
vSource (Variant) Optional – data source name (DSN) or the data source number
Example:
Dim bValue As Boolean
bValue = ERP.CommitTrans(1)
ERP.CommitTrans("SAP")