Core-Mark 852 Product Activity Data v5010
Core-Mark 852 Product Activity Data v5010
Activity Data
X12/V5010/852 : 852 Product Activity Data
Heading:
Pos Id Segment Name Req Max Use Repeat Notes Usage
0100 ST Transaction Set Header M 1 Must use
0200 XQ Reporting Date/Action M 1 Must use
0400 N9 Extended Reference M 2 Must use
Information
LOOP ID - N1 1 N1/0600L
0600 N1 Party Identification M 1 N1/0600 Must use
0800 N3 Party Location O 2 Used
0900 N4 Geographic Location O 1 Used
Detail:
Pos Id Segment Name Req Max Use Repeat Notes Usage
LOOP ID - LIN 999999
0100 LIN Item Identification M 1 Must use
0300 PO4 Item Physical Details O 1 Used
LOOP ID - ZA >1 N2/0800L
0800 ZA Product Activity Reporting M 1 N2/0800 Must use
Summary:
Pos Id Segment Name Req Max Use Repeat Notes Usage
0100 CTT Transaction Totals O 1 N3/0100 Used
0200 SE Transaction Set Trailer M 1 Must use
Notes:
1/0600L The reporting location is required. The reporting location is specified explicitly in the N1 segment using
the code RL in N101, or implicitly using the SDQ segment (Table 2) with the location data elements.
They are mutually exclusive (the SDQ and the N1 with N101 containing RL).
1/0600 The reporting location is required. The reporting location is specified explicitly in the N1 segment using
the code RL in N101, or implicitly using the SDQ segment (Table 2) with the location data elements.
They are mutually exclusive (the SDQ and the N1 with N101 containing RL).
2/0800L The quantity for the item identified in the LIN segment is required. Quantity is specified either in the ZA
segment (ZA02) or in the SDQ segment.
2/0800 The quantity for the item identified in the LIN segment is required. Quantity is specified either in the ZA
segment (ZA02) or in the SDQ segment.
3/0100 The number of line items (CTT01) is the accumulation of the number of LIN segments. Hash total
(CTT02) is not used in this transaction set.
When sending item and activity data in the LIN loop, the CTT segment is required.
Element Summary:
Ref Id Element Name Req Type Min/Max Usage
ST01 143 Transaction Set Identifier Code M ID 3/3 Must use
Description: Identifying control number that must be unique within the transaction set
functional group assigned by the originator for a transaction set
Semantics:
1. The transaction set identifier (ST01) is used by the translation routines of the interchange partners to select
the appropriate transaction set definition (e.g., 810 selects the Invoice Transaction Set).
2. The implementation convention reference (ST03) is used by the translation routines of the interchange
partners to select the appropriate implementation convention to match the transaction set definition. When
used, this implementation convention reference takes precedence over the implementation reference
specified in the GS08.
Element Summary:
Ref Id Element Name Req Type Min/Max Usage
XQ01 305 Transaction Handling Code M ID 1/2 Must use
Description: Date expressed as CCYYMMDD where CC represents the first two digits of
the calendar year
Notes/Comments:
Report Start Date
Semantics:
1. XQ02 is the reporting date. If reporting a date range, then XQ02 is the start date and XQ03 is the end date.
2. XQ04 is a unique report identifier assigned by the sender.
Element Summary:
Ref Id Element Name Req Type Min/Max Usage
N901 128 Reference Identification Qualifier M ID 2/3 Must use
Syntax Rules:
1. R0203 - At least one of N902 or N903 is required.
2. C0605 - If N906 is present, then N905 is required.
Semantics:
1. N906 reflects the time zone which the time reflects.
2. N907 contains data relating to the value cited in N902.
Loop Summary:
Pos Id Segment Name Req Max Use Repeat Usage
0600 N1 Party Identification M 1 Must use
0800 N3 Party Location O 2 Used
0900 N4 Geographic Location O 1 Used
Element Summary:
Ref Id Element Name Req Type Min/Max Usage
N101 98 Entity Identifier Code M ID 2/3 Must use
Description: Code designating the system/method of code structure used for Identification
Code (67)
Syntax Rules:
1. R0203 - At least one of N102 or N103 is required.
2. P0304 - If either N103 or N104 is present, then the other is required.
Comments:
1. This segment, used alone, provides the most efficient method of providing organizational identification. To
obtain this efficiency the "ID Code" (N104) must provide a key to the table maintained by the transaction
processing party.
2. N105 and N106 further define the type of entity in N101.
Element Summary:
Ref Id Element Name Req Type Min/Max Usage
N301 166 Address Information M AN 1/55 Must use
Element Summary:
Ref Id Element Name Req Type Min/Max Usage
N401 19 City Name O AN 2/30 Used
Description: Code defining international postal zone code excluding punctuation and
blanks (zip code for United States)
N404 26 Country Code O ID 2/3 Used
Syntax Rules:
1. E0207 - Only one of N402 or N407 may be present.
2. C0605 - If N406 is present, then N405 is required.
3. C0704 - If N407 is present, then N404 is required.
Comments:
1. A combination of either N401 through N404, or N405 and N406 may be adequate to specify a location.
2. N402 is required only if city name (N401) is in the U.S. or Canada.
Loop Summary:
Pos Id Segment Name Req Max Use Repeat Usage
0100 LIN Item Identification M 1 Must use
0300 PO4 Item Physical Details O 1 Used
0800 Loop ZA M >1 Must use
Element Summary:
Ref Id Element Name Req Type Min/Max Usage
LIN01 350 Assigned Identification M AN 1/20 Must use
Syntax Rules:
1. P0405 - If either LIN04 or LIN05 is present, then the other is required.
Semantics:
1. LIN01 is the line item identification
Comments:
1. See the Data Dictionary for a complete list of IDs.
2. LIN02 through LIN31 provide for fifteen different product/service IDs for each item. For example: Case, Color,
Drawing No., U.P.C. No., ISBN No., Model No., or SKU.
Element Summary:
Ref Id Element Name Req Type Min/Max Usage
PO401 356 Pack O N0 1/6 Used
Description: The number of inner containers, or number of eaches if there are no inner
containers, per outer container
Syntax Rules:
1. P0203 - If either PO402 or PO403 is present, then the other is required.
2. C0506 - If PO405 is present, then PO406 is required.
3. P0607 - If either PO406 or PO407 is present, then the other is required.
4. P0809 - If either PO408 or PO409 is present, then the other is required.
5. C1013 - If PO410 is present, then PO413 is required.
6. C1113 - If PO411 is present, then PO413 is required.
7. C1213 - If PO412 is present, then PO413 is required.
8. L13101112 - If PO413 is present, then at least one of PO410, PO411 or PO412 is required.
9. C1716 - If PO417 is present, then PO416 is required.
10. C1804 - If PO418 is present, then PO404 is required.
Semantics:
1. PO415 is used to indicate the relative layer of this package or range of packages within the layers of
packaging. Relative Position 1 (value R1) is the innermost package.
2. PO416 is the package identifier or the beginning package identifier in a range of identifiers.
3. PO417 is the ending package identifier in a range of identifiers.
4. PO418 is the number of packages in this layer.
Comments:
1. PO403 - The "Unit or Basis for Measure Code" in this segment position is for purposes of defining the unit of
measure of the "Size" identified in the PO402. For example: If the carton contains 24 12-Ounce packages, it
would be described as follows: Data element 356 = "24"; Data element 357 = "12"; Data element 355 = "OZ".
2. PO413 defines the unit of measure for PO410, PO411, and PO412.
Loop Summary:
Pos Id Segment Name Req Max Use Repeat Usage
0800 ZA Product Activity Reporting M 1 Must use
Element Summary:
Ref Id Element Name Req Type Min/Max Usage
ZA01 859 Activity Code M ID 2/2 Must use
Description: Code identifying activity details for the product being reported
ZA03 355 Unit or Basis for Measurement Code M ID 2/2 Must use
Description: Code specifying the units in which a value is being expressed, or manner in
which a measurement has been taken
Description: Code specifying type of date or time, or both date and time
Description: Date expressed as CCYYMMDD where CC represents the first two digits of
Syntax Rules:
1. P0203 - If either ZA02 or ZA03 is present, then the other is required.
2. P0405 - If either ZA04 or ZA05 is present, then the other is required.
3. P0607 - If either ZA06 or ZA07 is present, then the other is required.
Semantics:
1. ZA08 determines if the product activity code in ZA01 refers to a product that is categorized as In-bond
merchandise. A "Y" indicates that the activity code applies to a product that is In-bond; an "N" indicates that
the activity code does not refer to a product that is In-bond.
Element Summary:
Ref Id Element Name Req Type Min/Max Usage
CTT01 354 Number of Line Items M N0 1/6 Must use
Syntax Rules:
1. P0304 - If either CTT03 or CTT04 is present, then the other is required.
2. P0506 - If either CTT05 or CTT06 is present, then the other is required.
Comments:
1. This segment is intended to provide hash totals to validate transaction completeness and correctness.
Element Summary:
Ref Id Element Name Req Type Min/Max Usage
SE01 96 Number of Included Segments M N0 1/10 Must use
Description: Identifying control number that must be unique within the transaction set
functional group assigned by the originator for a transaction set
Comments:
1. SE is the last segment of each transaction set.