BeginTrans
This command is used to retrieve an ERP connection from the managed pool and keep it for an unspecified amount of time. It would typically be used to execute a sequence of ERP commands against a pooled connection. Note: If the connection is not pooled, or will call only a single business function, this command is not needed. The first ERP data connection is the default Source value.
Group: Enterprise Resource Planning Extensions
Syntax: [bValue =] ERP.BeginTrans([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.BeginTrans(1)
ERP.BeginTrans("SAP")