|
Size: 3110
Comment:
|
Size: 4130
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
| 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. | == 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. |
| Line 9: | Line 12: |
| Line 12: | Line 14: |
| 1. "When I print out an auto-generated PO for a creditor, I want CONTROL to create an EDI file instead" 1. "When I email an auto-generated PO for a creditor, I want CONTROL to create an EDI file instead" |
1. "When I print out an auto-generated PO for this creditor, I want CONTROL to create an EDI file instead" 1. "When I email an auto-generated PO for this creditor, I want CONTROL to create an EDI file instead" 1. "When I create an auto-generated PO for this creditor, I want CONTROL to always create an EDI file" |
| Line 16: | Line 19: |
| 1. E => I want to email auto-generated POs for this creditor 1. P => I want to printout auto-generated POs for this creditor |
1. E => "I want to email auto-generated POs for this creditor" 1. P => "I want to printout auto-generated POs for this creditor" |
| Line 19: | Line 22: |
| 1. Specify the customised spporep to use for generating EDI files 1. If using emails as the method to create EDI files {{{ |
1. Specify the customised {{{spporep}}} to use for generating EDI files 1. If using emails as the method to create EDI files {{{ |
| Line 22: | Line 26: |
| 1. If using printouts as the method to create EDI files {{{ | 1. If using printouts as the method to create EDI files {{{ |
| Line 24: | Line 29: |
| 1. If you want to always create EDI files for this creditor {{{ ln -s /u/cc/std/binl/B2BEspporep /u/cc/std/binl/<CRED_CODE>spporep }}} |
1. 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}}} |
| Line 29: | Line 35: |
| Also see * ["DIM EDI"] * ["Allphones EDI"] |
|
| Line 30: | Line 40: |
1. PO is generated{{{spporep}}} is run via sieat/stpost/steat/aleat 1. {{{spporep}}} creates file in /u/cc/ 1. {{{spporep}}} calls the script {{{edi_commit.sh}}} |
1. PO is generated 1. {{{spporep}}} is run via {{{sieat/stpost/steat/aleat}}} 1. {{{spporep}}} checks to see if there exists 1. {{{<CR_CODE>spporepE}}}, if creating EDI files via emails 1. {{{<CR_CODE>spporepP}}}, if creating EDI files via printing 1. If not, check to see if there exists a {{{<CR_CODE>spporep}}} 1. {{{<CR_CODE>spporep}}} creates file in /u/cc/ 1. {{{<CR_CODE>spporep}}} calls the script {{{edi_commit.sh}}} |
| Line 36: | Line 50: |
| == Incoming Files (Allphones only) == The various programs and scripts have been created, but they have not been installed for some reason. |
|
| Line 37: | Line 53: |
| == Incoming Files (Allphones only) == | |
| Line 40: | Line 55: |
| 1. {{{edi_import.sh}}} processes file to create order/invoice | 1. {{{edi_import.sh}}} runs a program {{{process_edi}}} 1. {{{process_edi}}} processes file to create order/invoice |
| Line 49: | Line 65: |
| CategoryEdi | |
| Line 51: | Line 68: |
[:CategroyDim:CategoryDim] |
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
- 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:
- "When I print out an auto-generated PO for this creditor, I want CONTROL to create an EDI file instead"
- "When I email an auto-generated PO for this creditor, I want CONTROL to create an EDI file instead"
- "When I create an auto-generated PO for this creditor, I want CONTROL to always create an EDI file"
- Set the appropriate creditors to email/print auto-generated POs as per you choice above
craad->Purchase Order (Email/Print)
E => "I want to email auto-generated POs for this creditor"
P => "I want to printout auto-generated POs for this creditor"
<BLANK> => Not sure what this does !!
Specify the customised spporep to use for generating EDI files
- If using emails as the method to create EDI files
ln -s /u/cc/std/binl/B2BEspporep /u/cc/std/binl/<CRED_CODE>spporepE
- If using printouts as the method to create EDI files
ln -s /u/cc/std/binl/B2BEspporep /u/cc/std/binl/<CRED_CODE>spporepP
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
- If using emails as the method to create EDI files
(Optional) Setup EDI email alerts (gencont -> EDI Manager Email)
Ensure that edi_commit.sh moves the EDI files to a folder that the EDI vendor's software can access
Also see
- ["DIM EDI"]
- ["Allphones EDI"]
How it works
- PO is generated
spporep is run via sieat/stpost/steat/aleat
spporep checks to see if there exists
<CR_CODE>spporepE, if creating EDI files via emails
<CR_CODE>spporepP, if creating EDI files via printing
If not, check to see if there exists a <CR_CODE>spporep
<CR_CODE>spporep creates file in /u/cc/
<CR_CODE>spporep calls the script edi_commit.sh
edi_commit.sh moves newly generated file into the appropriate directory
- 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.
- EDI vendor software creates file in appropriate directory
crontab schedules edi_import.sh to run periodically
edi_import.sh runs a program process_edi
process_edi processes file to create order/invoice
- On success, file extension is changed to .success
- 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
- For "Soft Errors", leave file for processing at another time
[:CategroyDim:CategoryDim]
