AggregateEdifactBySupplier

Group

Custom Classes Phase 6

Class Name

com.ebd.hub.datawizard.customresp.AggregateEdifactBySupplier

Function

Creates several EDIFACT files out of one large EDIFACT file. One per supplier ID.

Configuration File

None. The configuration is done with a parameter string.

Description

The class AggregateEdifactBySupplier allows splitting large EDIFACT files into smaller EDIFACT files. The criteria for the splitting and sorting is the ID of the NAD+SU segment (SG2/NAD(SU)/C082/3039). There will be a valid EDIFACT file created for each distinct SU ID. Please note that the segment counter of the split files will not be adjusted and therefore not be correct.

A string with the following syntax is expected for the configuration:

<directory>|<file name>|<encoding>

Such a string could, for example, look like follows:

./tmp/Customer1/Case01/out|MSG#@VAR_FILENAME@#<supplier>|8859_1

As you can see in the example, it is possible to use variables with the syntax @VAR_VARIABLE@ to create the file name.

Hint: The string for the file name has to contain the substring <supplier> (literally) to make sure that no file is overwritten.

Hint: The NAD+SU IDs of the large file are not allowed to contain text segments.