EDI

EDI is a system that allows businesses exchange and process documents via a third party with little or no human intervention.

For retailers, this means that purchase orders can be automatically sent to a supplier or customers orders can be received and processed. When generating purchase order, spporep can specify to generate a file and place it in the appropriate folder for sending by an external EDI vendor.

Compiling

All files must follow the format specified by the vendor. The vendor checks the file, imports the file into its database and generates a corresponding file for the recipient. Allphones use B2BE as their EDI vendor. I am not sure who DIM use for their EDI, they follow the same format as B2BE.

To compile a special version of spporep with a different format, you will need to compile spporep with the "-DSPCLINCDIR=<XXX_polay.inc>" compile time flag and rename it to something sensible.

Outgoing Files

Setup

  1. Control allows auto-generated POs to be Emailed or Printed. You will need to choose one of these methods as the method for creating EDI files. That is, you need to choose from one of the following statements:
    1. "When I print out an auto-generated PO for this creditor, I want CONTROL to create an EDI file instead"
    2. "When I email an auto-generated PO for this creditor, I want CONTROL to create an EDI file instead"
    3. "When I create an auto-generated PO for this creditor, I want CONTROL to always create an EDI file"
  2. Set the appropriate creditors to email/print auto-generated POs as per you choice above
    1. craad->Purchase Order (Email/Print)

      1. E => "I want to email auto-generated POs for this creditor"

      2. P => "I want to printout auto-generated POs for this creditor"

      3. <BLANK> => Not sure what this does !!

  3. Specify the customised spporep to use for generating EDI files

    1. If using emails as the method to create EDI files
      ln -s /u/cc/std/binl/B2BEspporep /u/cc/std/binl/<CRED_CODE>spporepE
    2. If using printouts as the method to create EDI files
      ln -s /u/cc/std/binl/B2BEspporep /u/cc/std/binl/<CRED_CODE>spporepP
    3. If you want to always create EDI files for this creditor. NOTE: If any one of the symbolic links above are created, they will be used instead of the below

      ln -s /u/cc/std/binl/B2BEspporep /u/cc/std/binl/<CRED_CODE>spporep
  4. (Optional) Setup EDI email alerts (gencont -> EDI Manager Email)

  5. Ensure that edi_commit.sh moves the EDI files to a folder that the EDI vendor's software can access

Also see

How it works

  1. PO is generated
  2. spporep is run via sieat/stpost/steat/aleat

  3. spporep checks to see if there exists

    1. <CR_CODE>spporepE, if creating EDI files via emails

    2. <CR_CODE>spporepP, if creating EDI files via printing

  4. If not, check to see if there exists a <CR_CODE>spporep

  5. <CR_CODE>spporep creates file in /u/cc/

  6. <CR_CODE>spporep calls the script edi_commit.sh

  7. edi_commit.sh moves newly generated file into the appropriate directory

  8. EDI vendor software retrieves file and imports into their system

Incoming Files (Allphones only)

The various programs and scripts have been created, but they have not been installed for some reason.

  1. EDI vendor software creates file in appropriate directory
  2. crontab schedules edi_import.sh to run periodically

  3. edi_import.sh runs a program process_edi

  4. process_edi processes file to create order/invoice

  5. On success, file extension is changed to .success
  6. On failure,
    • For "Soft Errors", leave file for processing at another time
      • Delivery docket not found
      • After 2-3 days, generate warnings
      • Later on, upgrade to "Hard Error" status
    • For "Hard Errors", file extension is changed to .err
      • Invoice references PO/stock/etc. that does not exist

CategoryEdi

CategoryAllphones

CategoryDim

EDI (last edited 2013-09-18 06:09:33 by localhost)