I need a small work around to display the customer address in a specific format on Customer Statement? Currently, the output comes from the FormatAddr codeunit and I don’t want to touch that module. Is there any way of tweaking the CustAddr array variable to display the address info as follows.
You can just assign it yourself. The idea of the format address function is to format the address to the format set on the country/region table and then compresses the array.
comment out the format address call and assign the variable as you want. If you do not want blank line then call the COMPRESSARRAY function e.g. COMPRESSARRAY(CustAddr);