Link ARC numbers to inbound source documents
The Aptean Customs Document Management extension supports manual matching of inbound IE801 customs documents to purchase orders and sales return orders. When the Link ARC No. from Inbound Source Documents field is turned on in the Customs Document Mgt. Setup page, inbound CDM documents are created with blank source fields instead of being auto-populated through the tax registration number lookup. The ARC No. field on purchase order and sales return order lines provides a filtered lookup to select the correct inbound CDM line, establishing a traceable link between the customs document and the source document. Matching is fully reversible.
Prerequisites
Before matching inbound customs documents to source documents:
- The Link ARC No. from Inbound Source Documents field must be turned on on the EMCS FastTab of the Customs Document Mgt. Setup page. When turned off (default), source fields are filled automatically based on a tax registration number lookup.
- The purchase order or sales return order must contain lines with EMCS-mandatory items.
Match an inbound customs document to a purchase order
-
Process the inbound IE801 message by running the Get mails from EMCS action on the Customs Document Mgt. Mail History page. The system creates a CDM Header with the ARC number and Trader IDs from the message. The source fields (Document Type, Document No., Source Type, Source No.) remain blank.
-
Open the relevant Purchase Order page.
-
On the purchase order line, select the ARC No. field to open the lookup. The lookup shows only CDM lines that meet the following criteria:
- The CDM Header Consignee Trader ID matches the source document Trader ID (derived from the Location Ref. 1 field on the Document Tax Line).
- The CDM Header Consignor Trader ID matches the trading partner Trader ID (derived from the Tax Registration No. field on the Document Tax Line).
- The CDM Header EMCS Status is Accepted (IE801).
- The CDM Line Item No. matches the purchase line item number.
- The CDM Line is not already matched to another source document line.
-
Select the CDM line to establish the match. The following records are updated:
Record Fields updated Purchase order line ARC No. CDM Line Source Document Type, Source Document No., Source Line No., Source Line ID CDM Header (first match only) Document Type, Document No., Source Type, Sell-to/Buy-from Code Document Tax Line ARC No. Posted receipt lines (if already posted) ARC No. Posted Document Tax Line (if already posted) ARC No. Tax Ledger Entry (if already posted) ARC No.
- If the purchase order line already has an ARC number assigned, a confirmation dialog appears asking whether to replace it. Cancelling leaves all fields unchanged.
- If the selected customs document is already linked to a different source document, a second confirmation dialog appears. The CDM Header source fields are not updated in this case, but the CDM Line source fields are set if the dialog is confirmed.
Clear an ARC number from a source document line
-
Open the Purchase Order page or Sales Return Order page containing the matched line.
-
On the line with the assigned ARC number, clear the value in the ARC No. field.
-
The system reverses all propagated values:
- The CDM Line fields (Source Document Type, Source Document No., Source Line No., Source Line ID) are cleared.
- The CDM Header source fields (Document Type, Document No., Source Type, Sell-to/Buy-from Code) are cleared only when no other CDM Lines on that header remain matched to any source document.
- The ARC number is removed from the Document Tax Line, posted receipt lines, Posted Document Tax Line, and Tax Ledger Entry records for that document line.
Match an inbound customs document to a sales return order
The matching workflow for sales return orders follows the same steps as for purchase orders. The ARC No. field on the Sales Return Order Subform page provides the same filtered lookup of unmatched CDM lines. The Consignee and Consignor Trader ID matching logic applies identically (Consignee from the Location Ref. 1 field, Consignor from the Tax Registration No. field on the Document Tax Line). Clearing the ARC No. field on a sales return order line reverses all propagated values, including posted return receipt lines.
For example, a brewery receives an inbound IE801 message for a shipment of excise goods from a supplier. After processing the message through the Get mails from EMCS action, a CDM Header is created with blank source fields. The customs manager opens the corresponding purchase order, selects the ARC No. field on the line for the received excise item, and picks the matching CDM line from the lookup. The ARC number propagates automatically to the Document Tax Line. When the order is subsequently posted, the ARC number carries through to the posted receipt line and tax ledger entries. If the ARC was linked after the receipt was already posted, the posted receipt line and tax entries are updated retroactively.