MoneyWorks Manual
Edit
			SetBudget (Budget, LedgerCode, Date, Value)
Definition: Sets the nominated Budget for the nominated LedgerCode in the period determined by the Date to Value. If the account is departmentalised, the department must be specified as a suffix (e.g. “3600-JB”)
This command is only available to scripts.
 Examples: SetBudget( "A", "10", '1/4/14', 240) 
Sets the A budget for account “10” to 240 for the Apr 14 period.