|
The purpose of this document is to provide examples of inbound and outbound EDI messages. Example test scripts are provided to test messages associated with the typical exports cargo flow including CONTRL and Response messages.
1.0 Interchange Reference Number
The Interchange Reference Number (ICR) is a unique identifier for each interchange
sent to the ICS from an EDI Site. If an EDI interchange is sent to the ICS
using an ICR that has already been used on a previous interchange, the CCF
will reject the subsequent interchange(s) (the CONTRL message will show an
Interchange Syntax Error Code of “26”).
To minimise the potential for duplicate ICRs, a suggested format that may be be used is: CCYYMMDDnnnn, where nnnn is a sequential number from 0001. The sequential number in the sample EDI scripts included should be retained for each message.
The ICR is reported in both the UNB and UNZ segments of the interchange: eg,
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:0730+200401270001++++1++1'
.
.
UNZ+1+200401270001'
The test routines should be performed in the order that they occur within this document as some tests rely on Customs Authority Numbers (CAN's) obtained from previous tests.
1.1 Senders Reference
The Senders Reference is a unique business identifier for each document sent
to the ICS by a user. It must be unique for each client (ie, ABN/CCID level)
and document type. Duplicate Senders References for the same message type
for the same client will result in the ICS rejecting the subsequent message(s).
For this series of tests the Senders Reference used is the same as the ICR.
The Senders Reference may be anything an organisation uses to identify its transactions such as file numbers, bundle numbers etc.
The Senders Reference is reported in the BGM segment of each message: eg:
BGM+830:::EXD+200401270001:1+9'
Ensuring that the Senders Reference is the same as the ICR creates a means for comparing the inbound messages with CONTRL messages and ICS response messages.
1.2 Dates of Export, Departure, etc.
The ICS contains a number of business rules which relate to dates reported
in ICS messages to the date of lodgment of a given message. For example, in
order for an original EXD to be accepted by the ICS, the “Intended Date
of Export” may not be earlier than the date of lodgment nor more than
six months in the future.
The dates that need to be considered for EDI messages in the EDI test, and the recommended values, are shown in Appendix A.
1.3 Interchange Action Code
The Interchange
Action Code identifies the status of the inbound interchange after is
has been processed by the CCF. It is located in the UCI and the UCM segments
of the CONTRL message, and will indicate whether the interchange has been
accepted (Interchange Action Code “7”) or rejected (Interchange
Action Code “4”) by the CCF. For example:
UNB+UNOC:3+AAA336C::AAA336C+AAA676Y+040323:1359+00000000009070++++++1'
UNH+000001+CONTRL:D:3:UN'
UCI+20040323000114+AAA676Y::AAA676Y+AAA336C+7'
UCM+1+CUSCAR:D:99B:UN+7'
UNT+4+000001'
UNZ+1+00000000009070'
1.4 ICS Response Message Status
Each ICS response message (eg, EXDR) contains the status of the document in
the ICS, such as CLEAR, ERROR and REJECTED. All statuses other than REJECTED
indicate that the message has passed ICS validation and have been versioned
by the ICS and will be visible via Customs Interactive (CI).
Messages that have generated a status response of REJECTED have not passed ICS validation and have not been versioned by the ICS. They will not be visible via CI.
Movement notices (ie, Warehouse, Depot and CTO notices) also contain a movement status. This movement status, however, need not be considered for the purpose of these tests and only the status of the document should be referred to.
The status will also include a status description, which elaborates upon the status in the response message. Both the status and the status description are stored within an FTX segment (qualifier AHN) in the response message. For example:
FTX+AHN+++REJECTED:THE TRANSACTION HAS BEEN REJECTED DUE TO ERRORS. PLEASE CORRECT AND RE-SEND THE MESSAGE.'
or
FTX+AHN+++CLEAR:THE GOODS COVERED BY THE DOCUMENT ARE AUTHORISED FOR EXPORT AND MAY BE DEALT WITH.'
1.5 ICS Errors and descriptions
When an ICS response message (eg, EXDR) does not have the status of CLEAR,
it will contain errors. These errors may either result in the rejection of
the inbound message, or be warnings that identify that a business condition
has not been met but the message has still been accepted by the ICS.
The location of an error (ie, the message header or a given line) is reported in the ERP segment; the error code is reported in the ERC segment; and the error description is reported in an FTX segment (qualifier AAO). For example:
ERP+::0000'
ERC+XN0020::95'
FTX+AAO+++REPORTING PARTY Reporting Party Id ABN=66015286036 IS NOT LINKED
WITH REPORTED WAREHOUSE ESTABLISHMENT Establishment ID=9034P.'
1.6 Customs Authority Numbers
Some ICS messages generate Customs Authority Numbers (CANs). These are numbers
that represent the authority to deal with goods within the ICS.
There are a number of different types of CANs, such as:
In some tests, the CANs generated by the inbound message will need to be used in other tests, as these tests require a CAN in order to be performed. For example, a Warehouse Release Notice (WARREL) requires that an EDN be reported.
The CAN generated by an inbound message will be reported in an RFF segment in the response message, for example:
RFF+ED:AAAAAAMLN' - (EDN)
RFF+AIZ:AAAAAAMWM' - (CRN)
RFF+AFB:AAAAAANES' - (MMN)
1.7 Establishment Codes
Some ICS messages use Establishment Codes to identify the origin
and destination of goods moving between establishments. When running these
tests developers will have to insert current valid establishment codes issued
by Customs during the registration phase or on request. The requirement to
do this will be marked in the test routines in the following manner: -
Care should be taken to use specific establishment ID's in the correct business context eg, When sending a DEPREL message make sure that the same establishment ID is used as the one transmitted in the preceding DEPREC. The export chain in this case reflects the receipt of goods into a depot and then the release of the same goods from the same depot to another establishment.
1.8 EDI Sites
Users will have to install their own EDI site details as appropriate within the UNB segment of the interchange
1.9 ABN / CCID Usage
The tests make use of an ABN or CCID in a number of segments, the requirement to do this will be marked as follows:
2.1.1 Necessary Changes
2.1.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:0730+200401270001++++1++1'
UNH+1+CUSDEC:D:99B:UN'
BGM+830:::EXD+200401270001:1+9'
LOC+9+AUMEL::6'
LOC+12+USLAX::6'
LOC+28+US::6'
LOC+18+INSERT WAREHOUSE ESTABLISHMENT ID HERE ::95'
DTM+129:20030128:102'
GIS+N:79:95'
GIS+Y:107:95'
RFF+AWH:O'
PAC+++N:67:95'
PAC+++OT:146:95'
TDT+20+++11'
NAD+CN+++DHL++MELBOURNE'
MOA+39::AUD'
MOA+63:5000:AUD'
UNS+D'
CST+1+I::95'
FTX+AAA+++GOODS DESCRIPTION'
LOC+27+US::5+YY-FO::6'
MEA+ABW++KG:10'
MEA+WT++KG:10'
MOA+63:5000'
RFF+HS:03026200'
RFF+EP:PIF9999999'
UNS+S'
CNT+11:25'
UNT+28+1'
UNZ+1+200401270001'
2.1.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
An EXD response (EXDR) is received from the ICS. The status in the FTX (AHN) segment is:
FTX+AHN+++REJECTED:THE TRANSACTION HAS BEEN REJECTED DUE TO ERRORS. PLEASE CORRECT AND RE-SEND THE MESSAGE.'
The error details in the EXDR message should be:
ERP+::0000'
ERC+XD0012::95'
FTX+AAO+++INTENDED DATE OF EXPORT CANNOT BE PRIOR TO THE PROCESSING DATE.'
2.2.1 Necessary Changes
2.2.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:0730+200401270002++++1++1'
UNH+1+CUSDEC:D:99B:UN'
BGM+830:::EXD+200401270002:1+9'
LOC+9+AUMEL::6'
LOC+12+USLAX::6'
LOC+28+US::6'
LOC+18+INSERT WAREHOUSE ESTABLISHMENT ID HERE ::95'
DTM+129:20040128:102'
GIS+N:79:95'
GIS+Y:107:95'
RFF+AWH:O'
PAC+++N:67:95'
PAC+++OT:146:95'
TDT+20+++11'
NAD+CN+++DHL++MELBOURNE'
MOA+39::AUD'
MOA+63:5000:AUD'
UNS+D'
CST+1+I::95'
FTX+AAA+++GOODS DESCRIPTION'
LOC+27+US::5+YY-FO::6'
MEA+ABW++KG:10'
MEA+WT++KG:10'
MOA+63:5000'
RFF+HS:03026200'
RFF+EP:PIF9999999'
UNS+S'
CNT+11:25'
UNT+28+1'
UNZ+1+200401270002'
2.2.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
An EXD response (EXDR) is received from the ICS . The status in the FTX (AHN) segment is:
FTX+AHN+++DOCUMENT CLEAR:THE GOODS COVERED BY THE DOCUMENT ARE AUTHORISED FOR EXPORT AND MAY BE DEALT WITH.'
No errors should be returned in the EXDR message.
2.2.4 Other Actions
The Export Declaration Number (EDN) is reported in the RFF (ED) segment of the EXDR. It must be recorded and used in tests 3, 4, 5 and 6.
2.3.1 Necessary Changes
2.3.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:0730+200401270003++++1++1'
UNH+1+CUSCAR:D:99B:UN'
BGM+101:::WARREL+200401270003:1+9'
DTM+204:20040127:102'
DTM+204:0700:401'
LOC+4+INSERT DEPOT ESTABLISHMENT ID HERE ::95'
LOC+5+9034P::95'
RFF+ED:AAAAAAMLN'
CNI+1+:::I'
RFF+HS:03026200'
QTY+1:10:KG'
FTX+AAA+++GOODS DESCRIPTION'
GID+1'
UNT+13+1'
UNZ+1+200401270003'
2.3.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
A WARREL response (WARRELR) from the ICS should be received. The status in the FTX (AHN) segment should be:
FTX+AHN+++REJECTED:THE TRANSACTION HAS BEEN REJECTED DUE TO ERRORS. PLEASE CORRECT AND RE-SEND THE MESSAGE.'
The error details in the WARRELR message should be:
ERP+::0000'
ERC+XN0020::95'
FTX+AAO+++REPORTING PARTY Reporting Party Id ABN=66015286036 IS NOT LINKED
WITH REPORTED WAREHOUSE ESTABLISHMENT Establishment ID=9034P.'
2.4.1 Necessary Changes
2.4.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:0730+200401270004++++1++1'
UNH+1+CUSCAR:D:99B:UN'
BGM+101:::WARREL+200401270004:1+9'
DTM+204:20040127:102'
DTM+204:0700:401'
LOC+4+INSERT DEPOT ESTABLISHMENT ID HERE ::95'
LOC+5+INSERT WAREHOUSE ESTABLISHMENT ID HERE ::95'
RFF+ED:AAAAAAMLN'
CNI+1+:::I'
RFF+HS:03026200'
QTY+1:10:KG'
FTX+AAA+++GOODS DESCRIPTION'
GID+1'
UNT+13+1'
UNZ+1+200401270004'
2.4.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
A WARREL response (WARRELR) from the ICS should be received. The status in the FTX (AHN) segment should be:
FTX+AHN+++NOTICE CLEAR MATCH:THE NOTICE HAS BEEN ACCEPTED BY CUSTOMS. THE AHECCS AND NET QUANTITIES ON THE NOTICE MATCH THOSE ON THE EXPORT DECLARATION AND HAVE AN AUTHORITY TO DEAL IN ACCORDANCE WITH S 99 (1) AND (3) OF THE CUSTOMS ACT'
No errors should be returned in the WARRELR message.
2.5.1 Necessary Changes
2.5.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040120:1500+200401270005++++1++1'
UNH+1+CUSCAR:D:99B:UN'
BGM+24:::WARRET+200401270005:1+9'
LOC+88+9034P::95'
RFF+ED:AAAAAAMLN'
CNI+1+:::I'
RFF+HS:03026200'
QTY+1:10:KG'
FTX+AAA+++GOODS DESCRIPTION'
GID+1'
UNT+10+1'
UNZ+1+200401270005'
2.5.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
A WARRET response (WARRETR) from the ICS should be received. The status in the FTX (AHN) segment should be:
FTX+AHN+++REJECTED:THE TRANSACTION HAS BEEN REJECTED DUE TO ERRORS. PLEASE CORRECT AND RE-SEND THE MESSAGE.'
The error details in the WARRETR message should be:
ERP+::0000'
ERC+XN0020::95'
FTX+AAO+++REPORTING PARTY Reporting Party Id ABN=66015286036 IS NOT LINKED
WITH REPORTED WAREHOUSE ESTABLISHMENT Establishment ID=9034P.'
2.6.1 Necessary Changes
2.6.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:1500+200401270006++++1++1'
UNH+1+CUSCAR:D:99B:UN'
BGM+24:::WARRET+200401270006:1+9'
LOC+88+INSERT WAREHOUSE ESTABLISHMENT ID HERE ::95'
RFF+ED:AAAAAAMLN'
CNI+1+:::I'
RFF+HS:03026200'
QTY+1:10:KG'
FTX+AAA+++GOODS DESCRIPTION'
GID+1'
UNT+10+1'
UNZ+1+200401270006'
2.6.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
A WARRET response (WARRETR) from the ICS should be received. The status in the FTX (AHN) segment should be:
FTX+AHN+++NOTICE CLEAR MATCH:THE NOTICE HAS BEEN ACCEPTED BY CUSTOMS. THE AHECCS AND NET QUANTITIES ON THE NOTICE MATCH THOSE ON THE CORRESPONDING RELEASE NOTICE.'
No errors should be returned in the WARRETR message.
2.7.1 Necessary Changes
2.7.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:0730+200401270007++++1++1'
UNH+1+CUSDEC:D:99B:UN'
BGM+830:::EXD+200401270007:1+9'
LOC+9+AUMEL::6'
LOC+12+USLAX::6'
LOC+28+US::6'
LOC+18+INSERT WAREHOUSE ESTABLISHMENT ID HERE ::95'
DTM+129:20040128:102'
GIS+N:79:95'
GIS+Y:107:95'
RFF+AWH:O'
PAC+++N:67:95'
PAC+++OT:146:95'
TDT+20+++11'
NAD+CN+++DHL++MELBOURNE'
MOA+39::AUD'
MOA+63:5000:AUD'
UNS+D'
CST+1+I::95'
FTX+AAA+++GOODS DESCRIPTION'
LOC+27+US::5+YY-FO::6'
MEA+ABW++KG:10'
MEA+WT++KG:10'
MOA+63:5000'
RFF+HS:03026200'
RFF+EP:PIF9999999'
UNS+S'
CNT+11:25'
UNT+28+1'
UNZ+1+200401270007'
2.7.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
An EXD response (EXDR) from the ICS should be received. The status in the FTX (AHN) segment should be:
FTX+AHN+++DOCUMENT CLEAR:THE GOODS COVERED BY THE DOCUMENT ARE AUTHORISED FOR EXPORT AND MAY BE DEALT WITH.'
No errors should be returned in the EXDR message.
2.7.4 Other Actions
The Export Declaration Number (EDN) is reported in the RFF (ED) segment of
the EXDR. It must be recorded and used in later tests.
2 .8.1 Necessary Changes
2.8.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:0730+200401270008++++1++1'
UNH+1+CUSCAR:D:99B:UN'
BGM+101:::WARREL+200401270008:1+9'
DTM+204:20040127:102'
DTM+204:0700:401'
LOC+4+INSERT DEPOT ESTABLISHMENT ID HERE ::95'
LOC+5+INSERT WAREHOUSE ESTABLISHMENT ID HERE ::95'
RFF+ED:AAAAAAMLN'
CNI+1+:::I'
RFF+HS:03026200'
QTY+1:10:KG'
FTX+AAA+++GOODS DESCRIPTION'
GID+1'
UNT+13+1'
UNZ+1+200401270008'
2.8.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
A WARREL response (WARRELR) from the ICS should be received. The status in the FTX (AHN) segment should be:
FTX+AHN+++NOTICE CLEAR MATCH:THE NOTICE HAS BEEN ACCEPTED BY CUSTOMS. THE AHECCS AND NET QUANTITIES ON THE NOTICE MATCH THOSE ON THE EXPORT DECLARATION AND HAVE AN AUTHORITY TO DEAL IN ACCORDANCE WITH S 99 (1) AND (3) OF THE CUSTOMS ACT'
No errors should be returned in the WARRELR message.
The ICS will also generate a Depot Underbond Goods Arrival Notice (DEPARR). The DEPARR message will be forwarded to the 77g premise nominated in the WARREL message as the receiving destination for the Prescribed Warehouse Goods. Below is an example:-
UNB+UNOC:3+AAA336C::AAA336C+AAA676Y+040318:1953+00000000008945++++1++1'
UNH+000001+CUSRES:D:99B:UN'BGM+961:::DEPARR+2HC1 07H7 9GF4:001+14
'LOC+5+9050N::95'
NAD+MR+66015286036::95'
DOC+1'
RFF+TN:AAAAAXYEL'
UNT+7+000001'
UNZ+1+00000000008945'
2.10.1 Necessary Changes
2.10.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:1530+200401270009++++1++1'
UNH+1+CUSCAR:D:99B:UN'
BGM+630:::DEPREC+200401270009:1+9'
LOC+88+INSERT DEPOT ESTABLISHMENT ID HERE ::95'
RFF+TN:AAAAAAMP7'
UNT+5+1'
UNZ+1+200401270009'
2.10.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
A DEPREC response (DEPRECR) from the ICS should be received. The status in the FTX (AHN) segment should be:
FTX+AHN+++NOTICE CLEAR CONSOLIDATE:THE NOTICE HAS BEEN ACCEPTED BY CUSTOMS. THE REPORTED EXPORT SHIPMENT MAY BE CONSOLIDATED.'
No errors should be returned in the DEPRECR message.
2.12.1 Necessary Changes
2.12.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:0830+200401270010++++1++1'
UNH+1+CUSCAR:D:99B:UN'
BGM+87:::ESM+200401270010:1+9'
TDT+20+++6'
DTM+136:20040128:102'
GIS+C:121:95'
CNT+11:10'
CNI+1+:::I'
CNT+11:10'
RFF+TN:AAAAAAMP7'
LOC+28+NZ::5'
NAD+GO+INSERT ABN / CCID HERE::95++JACK JONES'
GID+1'
FTX+AAA+++FISH LIVERS AND ROES, FRESH OR CHILLED'
UNT+14+1'
UNZ+1+200401270010'
2.12.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
An ESM response (ESMR) from the ICS should be received. The status in the FTX (AHN) segment should be:
FTX+AHN+++DOCUMENT CLEAR:THE GOODS COVERED BY THE DOCUMENT ARE AUTHORISED FOR EXPORT AND MAY BE DEALT WITH.'
No errors should be returned in the ESMR message.
2.12.4 Other Actions
The Consolidation Reference Number (CRN) is reported in the RFF (AIZ) segment
of the ESMR. It must be recorded and used in later tests.
2.14.1 Necessary Changes
2.14.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:1131+200401270011++++1++1'
UNH+1+CUSCAR:D:99B:UN'
BGM+129:::DEPREL+200401270011:1+9'
LOC+4+INSERT CTO ESTABLISHMENT ID HERE ::95'
LOC+5+INSERT DEPOT ESTABLISHMENT ID HERE ::95'
RFF+TN:AAAAAAMWM'
UNT+6+1'
UNZ+1+200401270011'
2.14.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
A DEPREL response (DEPRELR) from the ICS should be received. The status in the FTX (AHN) segment should be:
FTX+AHN+++NOTICE CLEAR:THE NOTICE HAS BEEN ACCEPTED BY CUSTOMS.'
No errors should be returned in the DEPRELR message.
2.15.1 Necessary Changes
2.15.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:0800+200401270012++++1++1'
UNH+1+CUSCAR:D:99B:UN'
BGM+44:::CTOREC+200401270012:1+9'
LOC+202+INSERT CTO ESTABLISHMENT ID HERE ::95'
TDT+20+++11'
CNI+1+:::I'
RFF+TN:AAAAAAMWM'
TDT+20+670+++INSERT ABN / CCID HERE::95+++5000201::11'
GID+1'
RFF+AAQ:ACSU0134567'
GID+1'
UNT+11+1'
UNZ+1+200401270012'
2.15.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
A CTOREC response (CTORECR) from the ICS should be received. The status in the FTX (AHN) segment should be:
FTX+AHN+++LOAD:THE REPORTED EXPORT SHIPMENT MAY BE LOADED.'
No errors should be returned in the CTORECR message.
2.16.1 Necessary Changes
2.16.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:0830+200401270013++++1++1'
UNH+1+CUSREP:D:99B:UN'
BGM+124:::DEPART+200401270013:1+9'
DTM+136:20040127:102'
DTM+136:0700:401'
LOC+5+9053M::95'
TDT+20+001++11+INSERT ABN/CCID HERE::95+++5000201::11'
LOC+8+NZAKL::6'
UNT+8+1'
UNZ+1+200401270013'
2.16.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
A DEPART response (DEPARTR) from the ICS should be received. The status in the FTX (AHN) segment should be:
FTX+AHN+++NOTICE CLEAR:THE NOTICE HAS BEEN ACCEPTED BY CUSTOMS.'
The DEPARTR will also contain information in the ERP-ERC-FTX segments, although it does not relate to an error in the message:
ERP+::0000'
ERC+XM0001::95'
FTX+AAO+++LODGE OR AMEND DEPARTURE REPORT FROM REPORTING PARTY ID RPID=66015286036
HAS BEEN PROCESSED.'
2.17.1 Necessary Changes
2.17.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:1400+200401270014++++1++1'
UNH+1+CUSCAR:D:99B:UN'
BGM+85:::EMM+200401270020:1+9'
TDT+20+001++11++++5000201::11'
LOC+5+NZAKL::6'
LOC+28+NZ::6'
DTM+136:20040128:102'
CNT+11:50'
CNI+1+:::I'
CNT+11:50'
RFF+TN:AAAAAAW37'
GID+1'
UNT+12+1'
UNZ+1+200401270014'
2.17.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
An EMM response (EMMR) from the ICS should be received. The status in the FTX (AHN) segment should be:
FTX+AHN+++DOCUMENT CLEAR:THE GOODS COVERED BY THE DOCUMENT ARE AUTHORISED FOR EXPORT AND MAY BE DEALT WITH.'
No errors should be returned in the CTORECR message.
2.18.1 Necessary Changes
2.18.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:1030+200401230015++++1++1'
UNH+1+CUSCAR:D:99B:UN'
BGM+111:::CTOREM+200401230015:1+9'
LOC+202+INSERT CTO ESTABLISHMENT ID HERE ::95'
TDT+20+++11'
CNI+1+:::I'
RFF+TL:EXDC'
GID+1'
RFF+AAQ:ACSU3234567'
GID+1'
UNT+10+1'
UNZ+1+200401230015'
2.18.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
A CTOREM response (CTOREMR) from the ICS should be received. The status in the FTX (AHN) segment should be:
FTX+AHN+++NOTICE CLEAR:THE NOTICE HAS BEEN ACCEPTED BY CUSTOMS.'
No errors should be returned in the CTOREMR message.
2.19.1 Necessary Changes
2.19.2 EDI Script
UNB+UNOC:3+AAA676Y::AAA676Y+AAA336C+040127:1200+200401270016++++1++1'
UNH+1+GENRAL:D:99B:UN'
BGM+23:::STREQ+200401270016:1+13'
RFF+TN:AAAAAAAT4'
UNT+4+1'
UNZ+1+200401270016'
2.19.3 Expected Responses
A Control response (CONTRL) from the CCF is received. Interchange Action Codes of “7”, indicate that the CCF has accepted the inbound interchange and the message has been passed to the ICS for processing.
A STREQ response (STREQR) from the ICS should be received. The status in the FTX (AHN) segment should be:
FTX+AHN+++DOCUMENT CLEAR:THE GOODS COVERED BY THE DOCUMENT ARE AUTHORISED FOR EXPORT AND MAY BE DEALT WITH.'
No errors should be returned in the STREQR message.
Message - Field Name - Segment - Value to use in Example
V1.0 15 APR 2004