Setting up Communication Engine for Vision Stock Reconciliation
Configure Communication Engine mappings for Vision stock reconciliation messages.
Prerequisites
Bevica Warehouse Integration extension installed.
Communication Engine extension installed.
Account with a Vision managed warehouse: LCB, Vinotheque, Lanchester, EHD, Coterie Vaults.
Communication Engine
The communication engine is a solution framework to enable the communication of data between Bevica and various endpoints such as a Vision warehouse.
Initial Setup
If you are not already using the communication engine to send or receive other files from the warehouse, e.g. orders, you will need to complete some initial setup. If you are already using the communication engine you can skip this part and move to setting up the communication engine route.
Warehouse Integration Setup
You will need to populate the following Vision account information in the Warehouse Integration Setup record. The information will be supplied by Vision or your warehouse.
Path to API e.g.
http://kingmoor.lcb.co.uk (LCB)
http://edi.ehdlondon.co.uk (EHD)
http://kingmoor.lanchestergroup.com (Lanchester)
Customer Code
Site Code
API Username (Client ID)
API Password (Client Secret)
Communication Engine Setup
Prior to setting up any communication engine routes you need to initialise the communication engine. To do this:
Search for Communication Engine Setup and select to Initialise Setup. Note that if you receive an error about the TVTCOM package this can be ignored.
Search for Warehouse Integration Setup, open the Warehouse Supplier Setup card and select Actions, Create Communication Engine Auth.
Setting up a Communication Engine Route
You will need to set up a new communication engine route for Warehouse Item Reconciliation. To do this, search for Communication Engine Routes and create a new record. Populate the fields as follows:
Code
Enter a code for the record e.g. LCB_STOCKREC
Type
Http
Direction
Inbound
Communication Code
• Enter a Code, e.g. LCB_STOCKREC • End Point = /service/StkPrdtE/CustomerCode//SiteCode/ • is the URL base e.g.http://kingmoor.lcb.co.uk • is the Customer Code e.g. ABCDE • is the Site Code e.g. CR • Content Type = application/xml • Method = Get • Authentication Code, drill down and select the record that has been created e.g. LCB01
Description
Enter a description
Route Action
Vision Stock Reconciliation
Synchronise Routes
Tick this
Process Message
Tick this
Task Scheduler
Tick this if you are going to set up the job queue
Task Sched. Parameter
Populate this, e.g. STOCKREC. This will be the value to populate the Parameter String on the job queue for codeunit 68807. See below.
Whse. Integration Setup
Select the relevant Warehouse Integration Setup record.
Retention policy setup
If you don't have this setup already, you can define a retention policy to delete outdated communication engine message records. To do this:
For more information, see Retention Policies.
Importing and comparing stock files manually
Whilst you are testing the functionality you can run the process manually:
Run Compare Vision Inventory
Search for Whse. Item Reconciliation Batches. You will see a new batch/es has been created by step 2
Search for Compare Vision Inventory, select the Discrepancy Calculation Method and Batch No. and click on OK. You can open the Whse. Item Reconciliation Batch record to see details of discrepancies. See details below.
Setting up the job queues
Once you are happy with the functionality you can set up the job queues to run these three functions. The job queues can be set up to run 5 minutes apart, overnight to lessen timing issues between the two systems:
Import the stock file from Vision
This will retrieve the data from Vision and create an Inbound Request record in Bevica
Create a job queue entry for Codeunit 68807 TVTCOM Run from Job Queue
Set the Parameter String to be the same value as the Task Sched. Parameter value on the Communication Engine Route record for the stock reconciliation record. Note that if you are unable to see the Task Sched. Parameter field on the Communication Engine Route page you will need to personalise the page.
Set the job queue entry to run on relevant days e.g. Monday to Friday
Set the Starting Time and Ending Time according to when you want to bring the file into Bevica. Normally this could be run overnight or at the end of the working day. You only want the job queue to run once, so for example set the Starting Time to be 03:00 and the Ending Time to be 03:05.
Set the job queue to Ready
Process the inbound request record created
This will process the inbound request record and create the Warehouse Item Reconciliation batch
Create a job queue entry for Report 71302 Whse. Integration Process Inbound Requests
Under the Job Queue ribbon, open the Report Request Page enter the relevant Warehouse Code and optionally enter the Supplier Request Code (STOCKSNAP)
Set the job queue entry to run on relevant days e.g. Monday to Friday
Set the Starting Time and Ending Time to run after codeunit 68807 e.g. 03:05-03:10
Set the job queue to Ready.
Compare Vision stock with Bevica
This will run the comparison routine to compare the data from Vision with the data in Bevica
Create a job queue entry for Report 71304 Compare Vision Inventory
Under the Job Queue ribbon, open the Report Request Page and set the following:
Set Whse. Item Reconciliation Batch filter, Processed = No.
Set Discrepancy Calculation Method to either 'Open inventory' or 'Whse. Available Inventory'. See below.
Set the job queue to run on relevant days e.g. Monday to Friday
Set the Starting Time and Ending Time to run after report 71302 e.g. 03:10-03:15
Set the job queue to Ready
Discrepancy Calculation Method
This allows you to change the way Bevica compares warehouse stock balances.
Open Inventory (Inc. Frozen)
Compares high level inventory figures. This compares the physical stock in the warehouse (incl. frozen stock) against Bevica's Inventory figures (incl. Paid Reserves). Calculation: Total Open Singles - Bevica Inventory.
Whse. Available Inventory (Inc. Frozen)
As above but add quantities on orders into the mix. This compares the physical stock in the warehouse (incl. frozen stock) plus quantities allocated to orders against Bevica's Inventory figures (incl. Paid Reserves) less those quantities already sent to the warehouse. Calculation: Total Open Singles - Bevica Inventory - Qty. Sent to Whse. (Base).
Open Inventory (Excl. Frozen)
As per 'Open Inventory (Inc. Frozen)' but removes frozen stock from the comparison calculation so if the discrepancy is the frozen stock it will show as a match. Calculation: Total Present Singles - Bevica Inventory.
Whse. Available Inventory (Excl. Frozen)
As per 'Whse. Available Inventory (Inc. Frozen)' but removes frozen stock from the comparison calculation so if the discrepancy is the frozen stock it will show as a match. Calculation: Total Present Singles - Bevica Inventory - Qty. Sent to Whse. (Base),
Report 71304 Compare Vision Inventory


Troubleshooting
See Communication Engine Messages for details of how communication engine messages are generated and what to do if the message errors.
Last updated
Was this helpful?