Академический Документы
Профессиональный Документы
Культура Документы
ASN
EXPORT
INTERFACE
GUIDE
Table of Contents
ASN EXPORT EXERCISE..................................................... 1
Objective ............................................................................. 1
Requirement ....................................................................... 1
Create a new interface ..................................................... 2
Create source schema in multi-levels ........................... 3
Creat destination schema with different names .......... 6
Map the fields between source and destination .......... 8
Add node properties ........................................................ 10
Add interface settings ..................................................... 12
2
IDX4 DEVELOPER
Chapter
OBJECTIVE
REQUIREMENT
To connect to WMS database for receipt data in RECEIPT and RECEIPTDETAIL tables, the
fields to be exported are :
o RECEIPT table : WHSEID, EXTERNRECEIPTKEY, and STORERKEY
o RECEIPTDETAIL table : EXTERNLINENO, SKU and QTYEXPECTED
To write the ASN data into a text file, the fields to be written are :
o Header Level : Level Indicator, WHID, ASNNo, and Owner
o Detail Level : Level Indicator, LineNo, Item and Quantity
The text file has pipe-delimiter and the specific filename as ASNEXP*.txt
1
IDX4 DEVELOPER
2
IDX4 DEVELOPER
1. Right Mouse Click (RMC) the ASNEXP node in the Project Explorer tab
2. Select Add DBSource from the context menu
3. Enter “I10W” in the New DBSource popup window and hit ENTER, and hit ENTER again to
dismiss the dialog box
4. The “I10W” node will appear under ASNEXP Interface
5. Click on the ASNEXP node, the I10W node should now appear in the Source Schema panel
NOTE This is important that the ASNEXP node must be clicked to have schema
on the panel.
3
IDX4 DEVELOPER
The RECEIPT node should now appear under the I10W node in the source schema
15. Click the RECEIPT node in the I10W Source Schema, then choose the required fields :
WHSEID, RECEIPTKEY, EXTERNRECEIPTKEY, and STORERKEY
Click the WHSEID column node in the Doman Explorer tab
Click the Copy Node to Schema button in the toolbar
Repeat the steps until all the required fields are copied.
All Columns should be shown under RECEIPT node.
16. Click the RECEIPTDETAIL node in the Domain Explorer, then click the Refresh node in the
toolbar to refresh the column list for RECEIPTDETAIL table
17. Make sure the RECEIPT node is selected (will show in bold font) in the Source Schema, and
the RECEIPTDETAIL table node is selected in the Domain Explorer tab
18. Click the Copy Node to Schema button in the toolbar
The RECEIPTDETAIL node should now appear under the RECEIPT node in the source
schema
4
IDX4 DEVELOPER
19. Click the RECEIPTDETAIL node in the Source Schema, then click Copy Node to Schema button
for the following fields : RECEIPTKEY, EXTERNLINENO, SKU, and QTYEXPECTED
All selected columns should be shown under RECEIPTDETAIL node.
5
IDX4 DEVELOPER
1. Right Mouse Click (RMC) the ASNEXP node in the Project Explorer tab
2. Select Add TextDest from the context menu
3. Enter “ASNTXT” in the New TextDest popup window and hit ENTER, and hit ENTER again to
dismiss the dialog box
4. The “ASNTXT” node will appear under ASNEXP Interface
5. Click on the ASNEXP node, the ASNTXT node should now appear in the Destination Schema
panel
NOTE This is important that the ASNEXP node must be clicked to have schema
on the panel.
6. Right Mouse Click (RMC) at ASNTXT node in the Destination Schema and select “Add
TextRow”
Enter “Header” in the New TextRow popup window and hit ENTER
Enter “Detail” in the New TextRow popup window and hit ENTER
The Header and Detail TextRow nodes should now appear under the ASNTXT node in
the destination schema
7. Right Mouse Click (RMC) at Header TextRow and select “Add TextColumn”
Enter “WHID” in the New TextColumn popup window and hit ENTER
Repeat with all the names : ASNNo, and Owner
All TextColumn nodes should now appear under the Header TextRow
6
IDX4 DEVELOPER
8. Right Mouse Click (RMC) at Detail TextRow and select “Add TextColumn”
Enter “LineNo” in the New TextColumn popup window and hit ENTER
Repeat with all the names : Item, and Quantity
All TextColumn nodes should now appear under the Detail TextRow
7
IDX4 DEVELOPER
1. At the Header Level, click the WHSEID node in the Source Schema, and the WHID node in the
Destination Schema
Select Interface Map Element
The list of mapped elements should appear in the Interface Map section
Repeat this step to the rest of header nodes :
o EXTERNRECEIPTKEY ASNNo
o STORERKEY Owner
Select Interface Map Call at RECEIPT node in the Source Schema and the Header
TextRow in the Destination Schema
The Map call entry should appear in the Interface Map section
2. At the Detail Level, click the EXTERNLINENO node in the Source Schema, and the LineNo
node in the Destination Schema
Select Interface Map Element
The list of mapped elements should appear in the Interface Map section
Repeat this step to the following detail nodes :
o SKU Item
8
IDX4 DEVELOPER
o QTYEXPECTED Quantity
Select Interface Map Call at RECEIPTDETAIL node in the Source Schema and the
Detail TextRow in the Destination Schema
The Map call entry should appear in the Interface Map section
3. The Schema design is now complete.
9
IDX4 DEVELOPER
1. Click the ASNTXT node in the Destination Schema, and add the following properties :
Delimiter : 4 - Use DelimChar
ExportFilePrefix : ASNEXP
ExportFileExtension : txt
DelimChar : I (Pipe)
2. Click the Header node in the Destination Schema, and add “H” to LevelIndicator property
3. Click the Detail node in the Destination Schema, and add “D” to LevelIndicator property
4. Click the I10W node in the Source Schema and set the DBMS property to MSSQL
5. Click RECEIPTKEY at the RECEIPTDETAIL level in the Source Schema
Choose ParentJoin property and type “[RECEIPTKEY]”
10
IDX4 DEVELOPER
NOTE This is important step that indicate the join record between RECEIPT and
RECEIPTDETAIL.
11
IDX4 DEVELOPER
NOTE The above is the training DB connection. Change it appropriately for the
DB you are connecting to.
3. Click the File Close menu of the IDX Settings to close the window
4. Run the macro and check the output
12
IDX4 DEVELOPER
13