I was doing some work with a client recently where we needed to output two different formats of EFT file for the same bank account. This is possible using the EFT Transfer Method on the bank on the creditors. However, with a large number of creditors we needed a way to update the records in bulk. While it would be possible to do this with a macro, it would be fiddly and take a while.
Instead, I created a SQL script which can be run to update the Address Electronic Funds Transfer Master (SY06000) table:
/*
Created by Ian Grieve of azurecurve | Ramblings of an IT Professional (http://www.azurecurve.co.uk)
This code is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0 Int).
*/
UPDATE
['Address Electronic Funds Transfer Master']
SET
EFTTransferMethod = 2
/*
1=Not Specified
2=Business Account
3=Corporate Account
4=Personal Account
5=Foreign Account
*/
FROM
SY06000 AS ['Address Electronic Funds Transfer Master']
WHERE
SERIES = 4
AND
EFTBankType = 3
/*
2 = Ireland
3 = United Kingdom
26 = Other 1
27 = Other 2
30 = Canada
31 = United States
*/
GO
The script is currently set up to update only UK banks and to set the EFT Transfer Method to Business Account
. The green comments show some of the other values which you can use.
If you use the script, make sure you have a good backup before.
What should we write about next?
If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.