...
Create Data Mapping >>Load Source and Target Schema
...
Create/Add Variables
1. Let's create a variable using the following name:varPricingqty
...
WHEN CONDITION{$Input_X12_004010_860/EDIRoot/TS_860/BCH/BCH01='01' } VALUE=['Y' ] OTHERWISE VALUE=['' ]
The conditional mapping expression WHEN CONDITION{$Input_X12_004010_860/EDIRoot/TS_860/BCH/BCH01='01' } VALUE=['Y' ] OTHERWISE VALUE=['' ]
is used to check the value of the BCH01
element within the BCH
segment of an EDI 860 document. If the value is '01' (indicating a new order), the output is set to 'Y'. Otherwise, the output is set to an empty string. This helps automate decision-making in the EDI processing workflow based on specific transaction criteria.
...
Implement a For Each loop at the root level on the destination side.
$Input_X12_004010_860/EDIRoot/TS_860
...
Let's establish a name for the variable. :varST_LOC
./Loop5_N1/N1[N101='ST']/N104
The expression ./Loop5_N1/N1[N101='ST']/N104
is used to navigate an EDI document's structure to find and extract the identification code (N104) for the Ship To location. This is useful in EDI processing for pinpointing specific data elements based on conditional criteria, allowing for precise data extraction and transformation.
...
Let's proceed by creating a variable named 'name'.: varS_ST_EDI_LOC_CODE
WHEN CONDITION{$varST_LOC='H050' or $varST_LOC='1300'} VALUE=['EAVN1824' ]
WHEN CONDITION{$varST_LOC='H464' or $varST_LOC ='H204' } VALUE=['EAVN1823' ]
WHEN CONDITION{$varST_LOC='1303'} VALUE=['EAVN43685']
WHEN CONDITION{$varST_LOC='1373'} VALUE=['EAVN52820']
OTHERWISE VALUE=[$varST_LOC ]
The conditional mapping expression provided is used to map different values of the variable $varST_LOC
to specific output values based on predefined conditions. If none of the specified conditions are met, the default action is to retain the original value of $varST_LOC
. This type of conditional mapping is useful in scenarios where specific values need to be translated to other values for processing or integration purposes.
...
Let's proceed by creating a variable name.: varX
IF CONDITION{ $Input_X12_004010_860/EDIRoot/TS_860/BCH/BCH01='01'} VALUE=[ 'Y']
The conditional mapping expression IF CONDITION{ $Input_X12_004010_860/EDIRoot/TS_860/BCH/BCH01='01'} VALUE=[ 'Y']
is used to check the value of the BCH01
element within the BCH
segment of an EDI 860 document. If the value is '01' (indicating a new order), the output is set to 'Y'. This helps automate decision-making in the EDI processing workflow based on specific transaction criteria, allowing for the flagging or marking of new orders appropriately.
...
Let's proceed by defining a variable name.: varTP_CODE
'AVNET'
...
Let's proceed by creating a variable name.: varCONTROL_NUM
normalize-space( $Input_X12_004010_860/EDIRoot/TS_860/ST/ST02)
The XPath expression normalize-space( $Input_X12_004010_860/EDIRoot/TS_860/ST/ST02)
is used to retrieve and clean up the content of the ST02
element within the ST
segment of an EDI 860 document. It ensures that the extracted text is formatted correctly by removing unnecessary whitespace characters, thereby providing a clean and standardized representation of the data for further processing or display.
...
Next step is to Check for the data input and output.
...
Steps to Turn on the Transaction
...