Module for EDI 9.12 | Building Services with EDI Module | Part I WmEDI Package | WmEDI Util Folder | Summary of Elements in this Folder | wm.b2b.edi.util.formatServices:formatN4
 
wm.b2b.edi.util.formatServices:formatN4
WmEDI. Formats fields that have an EDI data type of "N4."
The external format of implied decimal fields cannot be modified. The internal format string for implied decimal fields follows the conventions described in the Java class java.text.DecimalFormat. For more information, see the Oracle documentation.
If the FormatInfo parameter contains a string called DecimalCharacter, that character will be used as the decimal separator character in the formatted number. Examples of decimal separator character are ‘.' used in the US and ‘,' used in some European countries.
The value for DecimalCharacter is obtained in one of three ways:
*As specified in the FormatInfo parameter of the wm.b2b.edi:convertToString, wm.b2b.edi:convertToValues, pub.flatFile:convertToString, or pub.flatFile:convertToValues service. This method overrides all others.
*Through the UNA segment in an UN/EDIFACT document. This will override the system default decimal separator character.
*The default decimal separator for the locale of the JVM in which the Integration Server is running.