PreProcessing
diana
2011/06/27 12:57	

Table of Contents

PreProcessing includes all of the steps that have to be done to the document before it can be saved in Telema system.
 
PreProcessing steps can be set:
for sender branch
for receiver branch
for link.
PreProcessing steps described below group processes of similar type.
Different customers require different processes activated.
Default sequence fo PreProcessing steps is following:
Calculate
Validate against generad doc validator
Replace DocParties
FillDocParties
FillItemEntry
Create a copy
DeliveryAcceptance
OrderPrepack
NotifyDocArrival.
Sequence is set by priority.
Some processed require additional rule parameteres.

Here you can find some examples of processes. The list is not final, as the processed are created according to client requirements:
 
FUNCTION	process	priority	rule	 type	
Invoke the special “Kaubamaja”-process for recnotes	EDoc.Kaubamaja	50	 	 	
Calculate tare amounts on sent invoice lines	EDoc.Calculate.TareAmount	80	 	CALCULATE	
Validate sales invoices against general invoice validator	EDoc.Validate.Document	100	VALIDATOR_SPEC	VALIDATE	
Validate purchase order against order validator	EDoc.Validate.Document	100	 	VALIDATE	
Replace BuyerParty info on all received documents with the buyer-branch data (from Telema database) of the company, whose Delivery/Order-party is stated in document	EDoc.Replace.DocumentParty	200	 	REPLACE	
Replace BuyerParty info on sent despatch advices with the buyer-branch data (from Telema database) of the company, whose Delivery/Order-party is stated in document	EDoc.Replace.DocumentParty	200	 	REPLACE	
Replace BuyerParty info on sent sales invoices with the buyer-branch data (from Telema database) of the company, whose Delivery/Order-party is stated in document	EDoc.Replace.DocumentParty	200	 	REPLACE	
Replace BuyerParty info on received purchase orders with the buyer-branch data (from Telema database) of the company, whose Delivery/Order-party is stated in document	EDoc.Replace.DocumentParty	200	 	REPLACE	
Fill all document parties info with additional indata formation from Telema database on all sent documents	EDoc.Fill.DocumentParties	400	 	AUTOFILL	
Fill all document parties info with additional indata formation from Telema database on all received documents	EDoc.Fill.DocumentParties	400	 	AUTOFILL	
Fill sales despatch advices with additional ifnormation about document parties from Telema database	EDoc.Fill.DocumentParties	400	 	AUTOFILL	
Fill sales invoices with additional inforamtion about document parties from Telema database	EDoc.Fill.DocumentParties	400	 	AUTOFILL	
Fill purchase offer with additional indata formation about document parties from Telema database	EDoc.Fill.DocumentParties	400	 	AUTOFILL	
Fill sales orders with additional indata formation about document parties from Telema database  	EDoc.Fill.DocumentParties	400	 	AUTOFILL	
Fill sales price catalogues with additional document parties info from Telema database	EDoc.Fill.DocumentParties	400	 	AUTOFILL	
Replace document parties on sales orders for Kesko	EDoc.Alter.DocumentParties.Kesko	450	 	REPLACE	
Fill all sales documents product indata formation with supplier item code based on GTIN	EDoc.Fill.ItemEntry	700	FILL_ITEM_ENTRY_GTINSELLCODEOK	AUTOFILL	
Make a copy of sales invoice to factoring	EDoc.CopyToFactor	700	 	COPY	
Fill sales orders product indata formation with info from Telema database. Remove product lines with products not found.	EDoc.Fill.ItemEntry	700	 	AUTOFILL	
Fill sales order product informaiton with supplier item code based on GTIN	EDoc.Fill.ItemEntry	700	FILL_ITEM_ENTRY_GTINSELLCODEOK	AUTOFILL	
Fill purchase offer product indata formation with buyer code reference from Telema database	EDoc.Fill.ItemEntry	720	FILL_ITEM_ENTRY_ADDBUYERCODE	AUTOFILL	
Set up product names on the receiving note lines	EDoc.Fill.ItemEntry.Desc	750	 	AUTOFILL	
Replace document party codes from sender to receiver context on received purchase invoices	EDoc.Code.Remap	800	 	REPLACE	
Initalise goods acceptance process from arrived invoices	EDoc.DeliveryAcceptance	810	 	 	
Replace line item amounts and units with prepacked ones (by receivers product master data)	EDoc.Order.Prepack	890	 	REPLACE	
Receive notification to emal of all arrived documents	EDoc.Notify.DocArrival	900	 	NOTIFY	
Receive notification to email of arrived purchase offers	EDoc.Notify.DocArrival	900	 	NOTIFY	
Receive notification to email of arrived sales order	EDoc.Notify.DocArrival	900	 	NOTIFY	
Receive notification about product info import to ERP to email	EDocument.Notification.SMTP.Exit	998	 	NOTIFY