MoneyWorks Manual
Edit
TryPutBackReference (transType, refnum [, bank])
Result Type: Boolean
Definition: If you have allocated a reference number with GetNextReference and for some reason will not be using it, you can use this function to try to put it back for subsequent allocation. If the reference number sequence has moved on, this operation may fail (and return false) or the reference number may be queued locally for possible use by the same logged-in client. Otherwise it may be discarded and never used.
See Also:
GetNextReference: Allocate a reference number for a transaction type (or job code).