Automatically computing the value of the UNT field in EDIFACT documents.
book
Article ID: KB0094007
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for EDI
-
Not Applicable
-
Description
Description: Is there a way in the B2B Palette to give the XML without computing UNT in the BusinessWorks project?
Resolution
The translator mapping rule RECORDCOUNTER, documented in the Translator documentation, will allow the counting during the build of the EDI document. The variable to contain the counter is reset at the beginning segment, ST or UNH, so the count begins at 1 and increments by 1 until you replace the variable at the SE or UNT.
For example, open the XE.map file, select the UNH01 target element, and create a target business rule.
[RULES.Counter.Reset { %RECORDCOUNTER% 0}]
The UNT01 file should have this rule in it:
[RULES.Value.ReplaceWith { %RECORDCOUNTER% ""}]
This will generate the correct value for this segment.
Issue/Introduction
Automatically computing the value of the UNT field in EDIFACT documents.
Additional Information
TIBCO Foresight Translator
Using Translator Guide.