Is there any object or service available that implements the SAP Business One address formatting feature--i.e. we would like to have something that puts the address in the proper format given the following parameters:
Address Format (Code or Name from OADF), street, block, city, county, state, zip, country
Also, how does the system know what address format code to use for the company address (stored in Administration->System Initialization->Company Details)?
Hi Daniel,
I don´t think there is any standard address formatting method.
What I can tell you is that address formatting is set under AdministrationDefinitionsBusiness PartnersDefine Address Formats . Here you design the format you like. Then you should asign that format to a specific country under AdministrationDefinitionsBusiness PartnersDefine Countries .
The format used for the address in the company address depends on the country you specify on it (Acording to the definition of countries).
Hope helps,
Ibai Peñ
Daniel (or anyone),
Have you found/created a solution for this?
I also need something like this:
strFormattedAddress = SBOGetFormattedAddress( oBP, oBP.Addresses)
The contents of OADF.Format column (that stores the Address Formats set in Administration - Setup - Business Partners - Address Formats) are quite cryptic:
$1$N$7$N$ $2[ U]$N$[UD].
Has anyone figured out how to get the BP addresses formatted in the same way that B1 does?
Is there any documentation out there on Address Formats that could be useful?
Thanks
Juha
Add a comment