XML Example of RCV-Receipt
Purpose
This Message can be used to create an inbound document (Receipt) in 3PL Dynamics.
Below XML Example contains the minimal mandatory fields when using namespaces in combination with XSD validation on the Message Type.
Basic setup of Connector Module needs to be done, to process this XML. The following master data is required:
- Customer with GLN-code 8812423028886
- Customer Item (related to this customer) with External No. EDIM001
XML Example
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Message xmlns:ns0="www.boltrics.nl/receivereceipt:v1.00">
<ns0:Header>
<ns0:MessageID>001</ns0:MessageID>
<ns0:CreationDateTime>2023-03-01T11:47:17</ns0:CreationDateTime>
<ns0:ProcesAction>INSERT</ns0:ProcesAction>
<ns0:FromTradingPartner>8812423028886</ns0:FromTradingPartner>
<ns0:ToTradingPartner>8812423028746</ns0:ToTradingPartner>
</ns0:Header>
<ns0:Documents>
<ns0:Document>
<ns0:EANCode>8812423028886</ns0:EANCode>
<ns0:DocumentDate>2022-07-06</ns0:DocumentDate>
<ns0:ExternalDocumentNo>INB-EDI-00001</ns0:ExternalDocumentNo>
<ns0:SenderAddress>
<ns0:ExternalNo>1002</ns0:ExternalNo>
<ns0:EANCode>8812423028897</ns0:EANCode>
<ns0:Name>Boltrics EDI Warehouse</ns0:Name>
<ns0:Address>Galileilaan</ns0:Address>
<ns0:AddressNo>23B</ns0:AddressNo>
<ns0:City>Ede</ns0:City>
<ns0:PostCode>6716BP</ns0:PostCode>
<ns0:CountryCode>NL</ns0:CountryCode>
</ns0:SenderAddress>
<ns0:DocumentLines>
<ns0:DocumentLine>
<ns0:ExternalNo>EDIM001</ns0:ExternalNo>
<ns0:OrderQuantity>50</ns0:OrderQuantity>
</ns0:DocumentLine>
</ns0:DocumentLines>
</ns0:Document>
</ns0:Documents>
</ns0:Message>
XSD
The XSD describes the XML Schema of this RCV-RECEIPT
Tip
The element BuildingCode (on Document level) can be implemented in 2 ways:
by using the same Buildingcode as set on the Building 3PL Dynamics
... <ns0:BuildingCode>BLD-CODE</ns0:BuildingCode> ...by using first 10 characters of the GLN/EAN of the Building set in 3PL Dynamics.
... <ns0:BuildingCode>8712423</ns0:BuildingCode> ...
Autocreate Customer Item during Receipt import
When a document line of type Cust. Item in a receipt message cannot be matched to an existing Customer Item, the Data Integration receipt import normally stops with the error No item found for document %1, itemno %2.
For customers that regularly receive items that have not been set up yet, 3PL Dynamics can create the missing Customer Item automatically from a template Customer Item instead of failing the import. The new item is a full copy of the template, takes the External No. and Description from the message and optionally a Status Code of your choice, and the receipt line is created with the new item. The feature is opt-in per message type: as long as the parameter NEWCUSTITEMCOND is empty, the import behaves as before.
Prerequisites
- A template Customer Item of the customer that receives the goods, set up with everything a new item of that customer should get (units of measure, EAN units, tariff no., warehouse strategy, conditions and so on), because every part of the template is copied.
- A WMS Condition (for example
NEWCUSTITEM) that can be added to the customer's condition set, see Conditions. - A Customer Item number series that assigns numbers automatically; the new Customer Item receives the next number from it.
Parameters
Both parameters belong to the RCV-RECEIPT function (Receive Receipt Document) and are maintained on the parameters of the message type.
| Parameter | Default | Description |
|---|---|---|
NEWCUSTITEMCOND |
empty | Code of the condition that holds the No. of the template Customer Item as Condition Value on the customer's condition set. When filled and no Customer Item is found for a receipt line, a new Customer Item is created from that template. When empty (default), the import raises the No item found error as before. |
NEWCUSTITEMSTATUS |
empty | Status Code (for example 11-UNKNOWN) that the new Customer Item receives through a status change directly after it has been created. When empty, the new item keeps the initial Status Code of a new Customer Item. |
Note
The description of NEWCUSTITEMSTATUS shown in the product still mentions "blank, Released or Archived". Enter a Status Code of the Customer Item, not one of these values.
Setup
- Create the template Customer Item for the customer, or choose an existing Customer Item that serves as template.
- Create a WMS Condition, for example
NEWCUSTITEM. - Open the customer, choose Conditions and add the condition to the customer's condition set with the No. of the template Customer Item as Condition Value.
- Open the message type that uses the RCV-RECEIPT function and set the parameter
NEWCUSTITEMCONDto the code of that condition. - Optionally set
NEWCUSTITEMSTATUSto the Status Code the new Customer Items must get, for example11-UNKNOWN, so that they can be recognised and completed afterwards.
How it works
For every receipt line of type Cust. Item for which no Customer Item can be found, the import:
- Reads the condition
NEWCUSTITEMCONDon the condition set of the customer of the receipt and takes its Condition Value as the No. of the template Customer Item. - Copies the template Customer Item with all parts of Copy Item switched on: tariff no., dimensions, translations, comments, unit price, address setup, EAN units of measure, Handling Unit type units of measure, tax data, conditions, features, dangerous goods attributes, warehouse strategy, custom attributes and links. The new Customer Item gets the next number of the Customer Item number series.
- Fills External No. and Description of the new Customer Item with the values of the message line, when they are present in the message. The Search Description is updated accordingly.
- Changes the status of the new Customer Item to the Status Code in
NEWCUSTITEMSTATUS, when filled. The status change is logged on the Customer Item with the reason Status changed by 3PL DI Process Inbound. - Creates the receipt line with the new Customer Item.
When the condition is not on the customer's condition set, has no value, or the template Customer Item does not exist, no item is created and the import raises the No item found error as before.
Points of attention
- A Customer Item is created whenever no Customer Item is found for the line, also when the message line only contains an EAN code and no External No. When the Customer Item does exist but that EAN code is not registered on it, a second Customer Item is created instead of using the existing one. Make sure the EAN codes of the existing Customer Items are complete, or let the customer send the External No. in the message.
- Only the receipt import (RCV-RECEIPT) creates Customer Items; other message types are not affected by these parameters.
- Check the automatically created Customer Items regularly, for example by filtering the Customer Items on the Status Code set with
NEWCUSTITEMSTATUS, and complete their master data.
Tip
Basics and explanation are in the e-learning Integration with the standard in the Boltrics Academy: