WDI send map not maintaining leading zeros.
Unable to keep leading zeros on a Real data element, e.g. QTY02. This is a send map where QTY02 (real data element) is mapped from a numeric application data format (ADF) field. If, for example, the ADF field is 1 byte and contains "9", then the user wants "009" output in QTY02. User tried adding &ZEROSIG to the element mapping, but this did not help.
WDI, by design, suppresses leading zeros on numeric elements down to the minimum length as defined in the EDI standard. In this case, QTY02 is length 1, therefore, "9" will be output as is. Even if the ADF field were length 3 and contained "009", the leading zeros would still be suppressed. &ZEROSIG only controls whether or not a zero value (minimum length of zeros) is output.
Resolving the problem
The solution for always maintaining "n" digits in a numeric or real element is to increase its minimum length to "n" within the EDI standard dictionary. In this case, the minimum length of the QTY02 (element 380) should be changed to 3 bytes.
Note: It is recommended that modifications be made only to a copy of the EDI standard dictionary. Modifying an EDI standard provided by WDI, may lead to loss of the modification(s) in the event a user imports new, or replaces, a standard transaction in the same EDI standard dictionary.
More support for:
WebSphere Data Interchange
Software version: 3.2, 3.2.1, 3.3
Operating system(s): AIX, Platform Independent, Windows, z/OS
Reference #: 1214821
Modified date: 17 July 2014
Translate this page: