EDI export rules

<< Click to Display Table of Contents >>

Navigation:  Reference > Settings > Automation >

EDI export rules

Ref_EDI_009

 

The dialogs for new rules and for editing existing rules are identical.

 

Rule

 

Rule name

Name of the rule as displayed in the rule list.

 

Partner

Partner for which this rule will be applied, i.e. only messages received from the selected partner will get exported using this rule.

 

Source

 

Prefilter

Here you can specify a filter that will be applied to the data before it is processed. The filter can change the data or reject it based on the content of the data and thus cancel the export process.

 

 

Processing

Convert data

The conversion used to export the received message. Exporting without conversion saves the received data as is to the target file.

 

Conversion

The conversion rule to be applied to the data when the Convert data option is enabled. Only conversions whose source type matches that of the export rule are displayed in the selection.

 

Convert to default XML format

Converts the data to the default XML format of the message type of the EDI message. If a conversion is set, then the data gets converts to the standard XML format of the target type of conversion.

 

Post-Filter

Here it is possible to specify a filter that will be applied to the data after it has been processed but before it will be converted from ASCII to EBCDIC. The filter can process the data or reject it based on the content after processing and thus cancel the export process.

 

Convert data from ASCII to EBCDIC

If this option is enabled, the finished converted and filtered data will be converted to the EBCDIC character set before being saved.

 

Export file name

Target file name for the converted file including the full path where the file will be saved. The following place holders can be used:

 

* - Replaced by the local file name of the received file. This may differ from the name received during transfer if a counter was appended by the overwrite protection or a file template is used for received files.

# - # characters will get replaced by a counter which increases with each file exported using this rule. The maximum value of the counter is limited by the number of # characters used. # will count up to 9, ## up to 99 and so on.

$SCRIPTNAME$ - Gets replaced with the value of the script variable OutputFilename after executing the conversion. This variable can be set anywhere in the conversion script to e.g. create a file name using contents of the source or destination message. If not set during conversion the place holder get substituted by default.out.

 

All three place holders can be combined at will.