Valuekeep is fully integrated with ERP v10 so that you can benefit from the features of both products. This integration is bi-directional, i.e., they share data and maintain communication with each other.
To help with the operation, some base integration examples are available.
Below, we explain how to configure the integration of material consumption documents from ERP v10 to Valuekeep.
Installation prerequisites
Configurations in Cegid ERP v10
To configure the data to be integrated from ERP v10 into Valuekeep, it is necessary to create the lists in ERP v10. If you want to integrate the documents created in ERP v10 into Valuekeep, you must create a list of which documents and their corresponding fields you want to be integrated.
In this scenario, two queries are available in the integrator folder \VKPlugin\SAMPLES\V10LISTS\PRIMAVERA10_VALUEKEEP3 to create the two lists required. Before copying the lists, you must create the user fields (CDU) in ERP v10 and the custom attributes in Cegid Valuekeep.
Create lists in ERP v10
V10_VK3_CONSUMPTIONS_1
V10_VK3_CONSUMPTIONS_3
Create User Fields
In the cabecInternos and linhasInternos tables (tables where the information on the documents to be integrated is registered) you must create the following user fields:
CabecInternos
LinhasInternos
Configurations in Valuekeep
After creating consumption documents, you can change them in ERP v10, since the integrator detects the information change through the fields described below.
To add the fields, follow these steps:
The employee defined in step 7 will be responsible for the integration. So, whenever you create the internal document in ERP v10, you must indicate that employee in the header user field. Alternatively, the employee's name can be fixed in the V10_VK3_CONSUMPTIONS_1.json configuration file, for example: { "Field": "employee", "Handlers": { "Mapping": [ { "Field": "Default" } ], "DefaultValue": "IMPORTER_0004", "IgnoreOnUpdate": true } } .
Configurations in Valuekeep Integrator
After carrying out the necessary configurations in ERP v10 and Valuekeep, you must carry out the following configurations in the integrator:
Step 1: Configure Pipelines
The three pipelines in this example must be executed in the following sequence:
<Handler Id="h1" Order="1" Type="Valuekeep.Integrator.Handlers.PipelineHandler" ConfigStr="PipelineId=V10_VK3_CONSUMPTIONS_1"/>
<Handler Id="h2" Order="2" Type="Valuekeep.Integrator.Handlers.PipelineHandler" ConfigStr="PipelineId=V10_VK3_CONSUMPTIONS_2"/>
<Handler Id="h3" Order="3" Type="Valuekeep.Integrator.Handlers.PipelineHandler" ConfigStr="PipelineId=V10_VK3_CONSUMPTIONS_3"/>
...
And then the remaining pipelines concerning internal documents.
If there are more pipelines concerning internal documents, they should all be executed in the same Handler by sequence, for example:
<Pipeline Id="VK3_V10_REPORTS" Scheduler="Default" Active="false" >
<Handlers>
<Handler Id="h1" Order="1" Type="Valuekeep.Integrator.Handlers.PipelineHandler" ConfigStr="PipelineId=VK3_V10_LABORS"/>
<Handler Id="h2" Order="2" Type="Valuekeep.Integrator.Handlers.PipelineHandler" ConfigStr="PipelineId=V10_VK3_SYNC_MO_INFO"/>
<Handler Id="h3" Order="3" Type="Valuekeep.Integrator.Handlers.PipelineHandler" ConfigStr="PipelineId=VK3_V10_MISC_COSTS"/>
<Handler Id="h4" Order="4" Type="Valuekeep.Integrator.Handlers.PipelineHandler" ConfigStr="PipelineId=V10_VK3_SYNC_OC_INFO"/>
<Handler Id="h5" Order="5" Type="Valuekeep.Integrator.Handlers.PipelineHandler" ConfigStr="PipelineId=V10_VK3_CONSUMPTIONS_1"/>
<Handler Id="h6" Order="6" Type="Valuekeep.Integrator.Handlers.PipelineHandler" ConfigStr="PipelineId=V10_VK3_CONSUMPTIONS_2"/>
<Handler Id="h7" Order="7" Type="Valuekeep.Integrator.Handlers.PipelineHandler" ConfigStr="PipelineId=V10_VK3_CONSUMPTIONS_3"/>
<Handler Id="h8" Order="8" Type="Valuekeep.Integrator.Handlers.PipelineHandler" ConfigStr="PipelineId=VK3_V10_REQUISITIONS"/>
</Handlers>
</Pipeline>
Step 2: Configure Mappers
You should copy the sample files distributed in the following folders:
Step 3: Configure Hashsets
You should copy the sample files distributed in the following folders:
The fields displayed
may vary depending on the type of needs to be synchronized.
<Handler Id="h1" Order="1" Type="Valuekeep.Integrator.Handlers.PipelineHandler" ConfigStr="PipelineId=V10_VK3_CONSUMPTIONS_1"/>
Synchronizes the internal document to Valuekeep.
<Handler Id="h2" Order="2" Type="Valuekeep.Integrator.Handlers.PipelineHandler" ConfigStr="PipelineId=V10_VK3_CONSUMPTIONS_2"/>
Updates the Mapper field for ERP v10(CDU_IdLinhaVK)
<Handler Id="h3" Order="3" Type="Valuekeep.Integrator.Handlers.PipelineHandler" ConfigStr="PipelineId=V10_VK3_CONSUMPTIONS_3"/>
Updates
the costs relating to the previously synchronized document.