Collapse AllExpand All

6.4.2. Entering the Required Customer Data

Now that we have a rather generic EDI Profile, we have to set up the Customers to use this Profile. There are several ways we can do this. We've chosen to store the FTP connection information in Customer Characteristics. To take this approach we must do the following:

  1. Create the Characteristics

  2. Define values for these characteristics for each Customer

  3. Attach the EDI Profile to each Customer for all three Document Types

6.4.2.1. Creating Customer Characteristics for FTP

If you read the query in the previous section, you'll know that it looks for four Characteristics associated with the Customer: ftpserver, ftplogin, ftppassword, and ftpdirectory. These do not yet exist in the database, so we have to add them:

  1. Follow this path: Sales > Setup > Master Information > Characteristics

  2. Click the NEW button

  3. In the "Name" field, enter "ftpserver"

  4. Check the "Customer" field

  5. In the "Description" field, enter "Used for EDI Profiles"

  6. Click the SAVE button

Repeat these steps to create the other three Characteristics that we need: "ftplogin", "ftppassword", and "ftpdirectory".

6.4.2.2. Defining Characteristic Values for each Customer

To send FTP to your Customers, you'll need to get the address for their FTP servers, either a host name (e.g., ftp.xtuple.com) or an IP address (e.g., 192.168.57.122), and a user name and password. You might also get a directory name in which to put the transferred files. In the example below, we'll use "localhost" for the FTP server, "xtedi" for the login and password, and the Customer Number for the directory.

The process to set up the Characteristics and enter values for each Customer depends on whether your Customers have a Customer Type that Enables Characteristics Profiles or not. For Customers who have Characteristics Profiles enabled, first follow these steps to add the Characteristics to the Characteristic Profile:

  1. Follow this path: Sales > Customer > Types

  2. Select a Customer Type with Enabled Characteristics Profiles (e.g. "NORMAL")

  3. Click the EDIT button

  4. Set the "Characteristic" field to "ftpserver"

  5. Click the Save button

  6. Repeat for "ftplogin", "ftppassword", and "ftpdirectory"

  7. Click the SAVE button on the Customer Type window

Next, set the individual Characteristic values for each Customer you want to send EDI to. Follow these steps to do so:

  1. Follow this path: Sales > Customer > List

  2. Select one of your Customers from the list that has the Customer Type you just edited (e.g. TTOYS)

  3. Click the EDIT button

  4. Click on the "Characteristics" tab

  5. Double-click on the "Value" column of the "ftpserver" row

  6. Type "localhost"

  7. Double-click on the "Value" column of the "ftplogin" row

  8. Type "xtedi"

  9. Double-click on the "Value" column of the "ftppassword" row

  10. Type "xtedi"

  11. Double-click on the "Value" column of the "ftpdirectory" row

  12. Type the Customer Number (e.g. "TTOYS")

  13. At this point, the Characteristics tab of the Customer window should look like this:

    Sample settings of Customer Characteristics for FTP EDI

Repeat this last set of steps for every Customer you want to set up to use the FTP EDI Profile just created. The process for adding Characteristics to a Customer without the Enable Characteristics Profiles limitation is much simpler. See the xTuple ERP Reference Guide for more information.

6.4.2.3. Attaching the EDI Profile to each Customer

The final configuration step is to attach the EDI Profile to each Customer. This ensures that the system finds the right EDI Profile and sends the right data in the right format whenever sending EDI for this Customer. Customers who do not have EDI Profiles defined will not receive any EDI (with the exception of Incident EDI if the CRM module is configured to send EDI for Incidents).

To attach the EDI Profile we created to a Customer, follow these steps:

  1. Follow this path: Sales > Customer > List

  2. Select one of the Customers you set the FTP Characteristics for from the list of Customers (e.g., TTOYS)

  3. Click on the "Transmission" tab

  4. Click the ATTACH button

  5. The "Attach EDI Profile" window will open

  6. Set the "Document Type" to "Invoice"

    Note

    The default behavior for the "Attach EDI Profile" window is to show only EDI Profiles that have an EDI Form for the selected Document Type. If you want to select a different EDI Profile, click on the SHOW ALL EDI PROFILES check box and select that from the list.

    Just remember that you will have to go back and add a new EDI Form to that EDI Profile for the selected Document Type or EDI will not get sent properly.

  7. Select "Sales_FTP_CSV" from the list

  8. Click the ATTACH button

  9. Repeat steps 4-8 for "Sales Order" and "Quote"

  10. Repeat steps 2-9 for another Customer

You're now done with your EDI configuration!