Вы находитесь на странице: 1из 15

IDX4 DEVELOPER

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

ASN EXPORT EXERCISE

OBJECTIVE

 To extract the receipt information from the database to a text file


 To understand the structure of creating the interface having header and detail levels
 To understand the join between header and detail levels

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

CREATE A NEW INTER FAC E

1. Creating a new process under IDXTRN project node


 Right Mouse Click (RMC) the IDXTRN node in the Project Explorer tab
 Select Add Process from the context menu
 Enter “DOC” in the New Process popup window and hit ENTER, and hit ENTER again to
dismiss the dialog box
 The “DOC” node will appear under IDXTRN Project
2. Creating a new interface under DOC process node
 Right Mouse Click (RMC) the DOC node in the Project Explorer tab
 Select Add Interface from the context menu
 Enter “ASNEXP” in the New Interface popup window and hit ENTER, and hit ENTER
again to dismiss the dialog box
3. The “ASNEXP” node will appear under DOC Process

2
IDX4 DEVELOPER

CREATE SOURCE SCHEMA IN MULTI-LEVELS

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.

6. Click the Domain Explorer tab


7. Click the DB server name to connect
8. Click the + sign on the server node to expand it
9. Click the INFOR10 node and expand it
10. Scroll down to the RECEIPT table node and expand it
11. If the RECEIPT table node does not show the columns, then click the Refresh node in the
toolbar in the Domain explorer tab to refresh the column list.
12. Make sure the I10W node is selected (will show in bold font) in the Source Schema
13. Make sure the RECEIPT table node is selected in the Domain Explorer tab
14. Click the Copy Node to Schema button in the toolbar

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

CREAT DESTINATION SCHEMA WITH DIFFERENT NAMES

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

MAP THE FIELDS BETWEE N SOURCE AND DESTINA TION

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

ADD NODE PROPER TIES

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.

6. The node settings are now complete.

11
IDX4 DEVELOPER

ADD INTERFACE SETTINGS

1. Click the VB Macro button in the main toolbar


 This will generate the macro source code
 It will also create a list of settings in the IDX Settings window
2. Add the following settings :
 DataOut : C:\IDX4\DataOut\
 Logs : C:\IDX4\Logs\
 I10W_CONN : Provider=SQLOLEDB.1;Password=WMwhSql1;Persist Security
Info=True;User ID=wmwhse1;Initial Catalog=SCPRD;Data
Source=i104sql.intellicyber.com

NOTE The above is the training DB connection. Change it appropriately for the
DB you are connecting to.

 You can copy the setting from the previous interface by :


o Select the original node, and go to Edit  Copy Setting Value
o Select the destination node, and go to Edit  Paste Setting Value

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

Вам также может понравиться