RollbackTrans

This command is used to undo executed functions against an ERP connection assuming the ERP system is capable of undoing those functions. The first ERP data connection is the default Source value.

For an SAP system, this command will also execute BAPI_TRANSACTION_ROLLBACK.

Group: Enterprise Resource Planning Extensions


Syntax: [bValue =] ERP.RollbackTrans ([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.RollbackTrans(1)

ERP.RollbackTrans("SAP")