Lowe's EDI project database solution open source introduction

Recently, in order to help users to better use the EDI system, we open source the mature EDI projects based on past project implementation experience. After the user installs the Zhixingzhiqiao EDI system, he only needs to download the sample code we have compiled and place it in the workspace designated by Zhixingzhiqiao to start using it.

Today's article mainly introduces the LOWE'S EDI project, how to obtain the open source project code and how to deploy it to the Zhixingzhiqiao EDI system.

ready to download and run

LOWE'S EDI to SQL Server

Generate a series of EDI documents to communicate with LOWE'S using a SQL Server database.

Download WorkflowDownload   Sample Files 

Introduction to LOWE'S EDI & Database Solution

The LOWES' EDI to SQL sample flow has pre-configured ports for converting the following transaction sets according to the EDI specification provided by LOWE'S:

1. 850 Purchase Order, LOWE'S -> Supplier
2. 846 Inventory Inquiry, Supplier -> LOWE'S
3. 855 Order Reply, Supplier -> LOWE'S
4. 856 Shipping Notice, Supplier -> LOWE'S
5. 810 Invoice, Supplier -> LOWE'S

It is a common solution to realize the integration between the EDI system and the ERP system through an intermediate database table, which can effectively decouple the two systems, thereby improving the reliability and maintainability of the entire system.

Through the way of the intermediate database table, the EDI system and the ERP system can respectively store the data to be transmitted in the intermediate database table, and then the other system can obtain the data from the intermediate database table for processing. This avoids directly modifying data in the other party's system, thereby reducing risks and errors during data transmission. At the same time, since the data in the intermediate database tables are all original data, it is convenient to trace the data and troubleshoot problems.

The following ports form the core elements of the workflow:

1. AS2 port: It is used for the function of secure transmission through the Internet network, and confirms the AS2 information of LOWE'S, such as AS2 ID, URL and public key certificate, so as to perform correct configuration.
2. X12 Port: Generate EDI files from XML or convert EDI files to XML for further processing.
3. XMLMap port: provide a visual way to convert XML data from one structure to another, and establish a mapping relationship from source files to template files.
4. SQL Server Port: Integrate SQL Server to pull and push data into your data workflow.

In addition to the pre-configured ports, the sample workflow provides a lowes.sql file that contains the SQL commands needed to create intermediate tables for orders, order replies, shipping notifications, etc.

How to deploy the above workflow in the Zhixingzhiqiao EDI system?

create workspace

To run the Zhixingzhiqiao EDI system, navigate to the Workflow tab and click the gear icon in the upper right corner. Select the Create Workspace option to create a new workspace LOWES_To_SQLServer for this example stream.

import workspace

From the gear drop-down menu on the right, click Import Workspace. In the dialog that appears, select the downloaded sample flow Lowes_To_SQLServer.arcflow to import the relevant ports and settings. Or directly drag Lowes_To_SQLServer.arcflow to the specified workspace.

After successfully importing the sample workflow, you will see the complete workflow as shown in the image below:

Perfect workflow configuration

Implement AS2 communication

Navigate to the Settings tab for the LOWE'S_AS2 port. Configure the AS2 information of LOWE'S according to the AS2 document provided by LOWE'S, such as AS2 ID of LOWE'S, trading partner URL, and trading partner certificate. After the configuration is complete, please navigate to the "Input" tab to upload test files to connect with LOWE'S for AS2 connection test, and you can navigate to the "Output" tab to view the files sent by LOWE'S.

At the same time, you need to configure AS2 personal settings: supplier's AS2 ID, private key certificate, certificate password, and public key certificate.

Implement format conversion from X12 to database XML

The realization of file format conversion is mainly achieved through the X12 port and XMLMap port. The XMLMap port has already pre-configured the data mapping, and the user does not need to perform additional operations. In the X12 port, you need to fill in the real information of the user and LOWE'S under the setting tab to configure the switching head:

Connect to SQL Server database

Navigate to the Settings tab for the SQLServer port as shown above and click Create. You will see the create connection window as shown below:

Fill in information such as connection name, server, port number, database, database user name, and password. After completing the filling, click the Test Connection button to prompt that the connection has been successfully established, click Create Connection in the lower right corner of the window.

Enter the test process

Taking the analysis direction (that is, receiving the EDI 850 purchase order from LOWE'S, converting the format and extracting the data into the database) as an example, the test process is as follows:

Upload test file

Navigate to the X12 port with port ID LOWE_X12ToXML and under the Input tab upload the previously downloaded sample file: 850.x12.

view database table

After the X12 port is issued, navigate to the SQLServer port whose port ID is LOWE_850SQL, send the 850 file under the input tab, and you can see that the file status is Success, and then you can view the order data in the SQLServer database table.

As shown in the figure below, it is the header information and detailed information of a purchase order from LOWE'S received in the SQLServer database.

_*Are you up and running? *_

If the answer is yes, then congratulations on successfully configuring the LOWE'S EDI & Database Scenario sample workflow! If you encounter any problems or have any questions, please feel free to contact us.

read the original text

What is EDI?

Guess you like

Origin blog.csdn.net/Cara_EDI_Consultant/article/details/131326571