UN/EDIFACT Auto-Completion Rules (Batch)

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Data Sources and Targets > EDI > UN/EDIFACT >

UN/EDIFACT Auto-Completion Rules (Batch)

When generating UN/EDIFACT files, MapForce may automatically create certain fields or values, according to the rules below (subsequently referred to as "automatic data completion", or "auto-completion" rules). To disable this behaviour, clear the Auto-complete missing fields check box in EDI Component Settings.

 

Automatic data completion for UN/EDIFACT makes sure:

 

That a UNB and a UNZ segment exist
If either UNG or UNE exist, that the other ID also exists
That a UNH and a UNT segment exist
That UNB/S001 exists. If it does not contain data, the syntax level and syntax version number from the user-defined settings are used (see the setting Extended | Syntax version number of the EDI Component Settings)
That UNB/S002 and UNB/S003 exist.
That UNB/S004 exists. If it does not contain data, the current date/time in EDI format is inserted.
That UNZ/0036 exists. If it does not contain data, the number of functional groups or messages is calculated and inserted.
That UNZ/0020 exists. If it does not contain data, the value from UNB/0020 is copied.

 

Note:Any fields not mentioned here are not inserted or created. The correct values cannot be ascertained automatically. Given a (target) parent element A (in the target EDI component) with child items x, y, and z - where y is mandatory, parent element A will only be created in the output file if the mandatory child element "y" in the target component has been mapped.

 

Functional group checking makes sure:

 

That UNG/0038 exists. If it does not contain data, the name of the message is inserted.
That UNG/S006 and UNG/S007 exist.
That UNG/S004 exists. If it does not contain data, the current date/time in EDI format is inserted.
That UNG/0051 exists. If it does not contain data, the first two characters of the controlling agency from the user-defined settings are inserted (see the setting Extended | Controlling agency of the EDI Component Settings)
That UNE/0060 exists. If it does not contain data, the number of messages in the group is calculated and inserted.
That UNE/0048 exists. If it does not contain a value, the value from UNG/0048 is copied.

 

Message checking makes sure:

 

That UNH/S009/0065 exists. If it does not contain data, the name of the message is inserted.
That UNH/S009/0052 and UNH/S009/0054 exist.
That UNH/S009/0051 exists. If it does not contain data, the first two characters of the controlling agency from the user-defined settings are inserted (see the setting Extended | Controlling agency of the EDI Component Settings)
That UNT/0074 exists. If it does not contain data, the number of segments in the message is calculated and inserted.
That UNT/0062 exists. If it does not contain data, the value from UNH/0062 is copied.
That UNH/0062 exists. If it does not contain data, the value from UNT/0062 is copied. (If only the trailer segment number is mapped, then the corresponding field in the header segment is supplied with the same value.)

© 2019 Altova GmbH