Purchase Order Components for TRADACOMS
Mandatory components
For a TRADACOMS ANA001 ORDERS release 9 purchase order, the following groups, segments, composites, and elements have been defined as mandatory by the standards committee.
This table describes the components that are activated automatically when you create a new form.
| Group | Segment | Composite | Element | Description |
|---|---|---|---|---|
| ORDHDR | Order File Header | |||
| TYP | Transaction Type Details | |||
| CD02 | Transaction Code | |||
| SDT | Supplier Details | |||
| SIDN | ||||
| CDT | Customer Details | |||
| CIDN | ||||
| FIL | File Details | |||
| FLGN | File Generation Number | |||
| FLVN | File Version Number | |||
| FLDT | File Creation Date | |||
| CLO | Customer’s Location | |||
| CLOC | ||||
| ORD | Order References | |||
| ORNO | ||||
| OLD | ||||
| OTR | Order Trailer | |||
| LORD | Lines Ordered |
Required components
This table lists the form components that are required (need to be activated) and are not mandatory for the standard.
| Element | Description | Data Type | Length | Code Value/Format to Be Assigned |
|---|---|---|---|---|
| Order File Header (ORDHDR Group) (Already Activated) | ||||
| Supplier Details (SDT Segment) (Already Activated) | ||||
| SDT SIDN SID0 | Supplier’s ANA Location Code | String | 13 | |
| SDT SNAM | Supplier’s Name | String | 40 | |
| Customer Details (CDT Segment) (Already Activated) | ||||
| CDT CIDN CID0 | Customer’s ANA Identity/Loc | String | 13 | |
| CDT CNAM | Customer’s Name | String | 40 | |
| CDT CADD CAD0 | Customer’s Address Line 1 | String | 35 | |
| CDT CADD CAD1 | Customer’s Address Line 2 | String | 35 | |
| CDT CADD CAD2 | Customer’s Address Line 3 | String | 35 | |
| CDT CADD CAD3 | Customer’s Address Line 4 | String | 35 | |
| CDT CADD CAD4 | Customer’s Post Code | String | 8 | |
| Customer’s Location (CLO Segment) (Already Activated) | ||||
| CLO CLOC CLO0 | Customer’s ANA Location Code | String | 13 | |
| CLO CNAM | Customer’s Name | String | 40 | |
| CLO CADD CAD0 | Customer’s Address Line 1 | String | 35 | |
| CLO CADD CAD1 | Customer’s Address Line 2 | String | 35 | |
| CLO CADD CAD2 | Customer’s Address Line 3 | String | 35 | |
| CLO CADD CAD3 | Customer’s Address Line 4 | String | 35 | |
| CLO CADD CAD4 | Customer’s Post Code | String | 8 | |
| Order References (ORD Segment) (Already Activated) | ||||
| ORD ORNO ORN0 | Customer’s Order Number | String | 17 | |
| ORD ORNO ORN2 | Date Order Placed by Customer | Dt/Tm | 6 | Screen Format = DD/MM/YY |
| ORD CD07 | Order Code | String | 1 | Any valid code |
| Delivery Instructions (DIN Segment) | ||||
| DIN LDAT | Latest Delivery Date | Dt/Tm | 6 | Screen Format = DD/MM/YY |
| Order Line Details (OLD Group) (Already
Activated) Order Line Details (OLD:2 Segment) |
||||
| OLD:2 SPRO SPR1 | Supplier’s Code for the Traded Unit | String | 30 | |
| OLD:2 CPRO CPR1 | Customer’s Item Code | String | 30 | |
| OLD:2 UNOR UNO0 | Consumer Units in Traded Unit | String | 15 | Format = N0 |
| OLD:2 UNOR CD04 | Measure Indicator | String | 6 | |
| OLD:2 OQTY OQT0 | Number of Traded Units Ordered | String | 15 | Format = N0 |
| OLD:2 OUCT OUC0 | Cost Price | Real | 14 | Screen Format = R4 |
| OLD:2 TDES TDE0 | Traded Unit Descr. Line 1 | String | 40 | |
| OLD:2 TDES TDE1 | Traded Unit Descr. Line 2 | String | 40 | |
Customization tasks
This table lists the customization tasks described in this tutorial.
| Form Component | Description | Customisation Task |
|---|---|---|
| ORDHDR group | Order File Header | You will promote this group so that the fields in this group are placed on the parent frame. |
| TYP CD02 element | Transaction Code | This element is required in the purchase order, but is not meaningful for your purposes. Therefore, you will prevent this field from being printed on the printout. |
| SDT SIDN SID0 element | Supplier’s ANA Location Code | This element is required in the purchase order, but is not meaningful for your purposes. Therefore, you will prevent this field from being printed on the printout. |
| SDT SNAM element | Supplier’s Name | This element is required in the purchase order, but is not meaningful for your purposes. Therefore, you will prevent this field from being printed on the printout. |
| CDT CIDN CID0 element | Customer’s ANA Identity/Loc | This element is required in the purchase order, but is not meaningful for your purposes. Therefore, you will prevent this field from being printed on the printout. |
| CDT CNAM element | Customer’s Name | You will change the field name to "Customer", which better describes the data in this field for your company. |
| CDT CADD CAD0 element | Customer’s Address Line 1 | The data in this element will be self-explanatory, so you will remove the label from this field. |
| CDT CADD CAD1 element | Customer’s Address Line 2 | The data in this element will be self-explanatory, so you will remove the label from this field. |
| CDT CADD CAD2 element | Customer’s Address Line 3 | The data in this element will be self-explanatory, so you will remove the label from this field. |
| CDT CADD CAD3 element | Customer’s Address Line 4 | The data in this element will be self-explanatory, so you will remove the label from this field. |
| CDT CADD CAD4 element | Customer’s Post Code | The data in this element will be self-explanatory, so you will remove the label from this field. |
| FIL FILGN element | File Generation Number | This element is required in the purchase order, but is not meaningful for your purposes. Therefore, you will prevent this field from being printed on the printout. |
| FIL FILVN element | File Version Number | This element is required in the purchase order, but is not meaningful for your purposes. Therefore, you will prevent this field from being printed on the printout. |
| FIL FILDT element | File Creation Date | This element is required in the purchase order, but is not meaningful for your purposes. Therefore, you will prevent this field from being printed on the printout. |
| CLO CLOC CLO0 element | Customer’s ANA Location Code | This element is required in the purchase order, but is not meaningful for your purposes. Therefore, you will prevent this field from being printed on the printout. |
| CLO CNAM element | Customer’s Name | You will change the field name to "Location", which better describes the data in this field for your company. |
| CLO CADD CAD0 element | Customer’s Address Line 1 | The data in this element will be self-explanatory, so you will remove the label from this field. |
| CLO CADD CAD1 element | Customer’s Address Line 2 | The data in this element will be self-explanatory, so you will remove the label from this field. |
| CLO CADD CAD2 element | Customer’s Address Line 3 | The data in this element will be self-explanatory, so you will remove the label from this field. |
| CLO CADD CAD3 element | Customer’s Address Line 4 | The data in this element will be self-explanatory, so you will remove the label from this field. |
| CLO CADD CAD4 element | Customer’s Post Code | The data in this element will be self-explanatory, so you will remove the label from this field. |
| ORD ORNO ORN0 element | Customer’s Order Number | You will set up the document name (which enables you to differentiate between messages in the document browsers in Sterling Gentran:Server®) in this element. Also, you will change the field name to "Order Number", which better describes the data in this field for your company. |
| ORD ORNO ORN2 element | Date Order Placed by Customer | You will change the field name to "Order Date", which better describes the data in this field for your company. Also, the date in the EDI data will be in the format "YYMMDD", but you want the date to be printed in the format "DD/MM/YY", so you will set the screen format accordingly. In addition, you will change the field and element lengths to reflect the longer date format. |
| ORD CD07 element | Order Code | The code from this element will be used to look up the description in a code values list, and the description will be printed in another field that you create. You will prevent the Order Code field from being displayed on the printout, because the more meaningful description will be printed instead. |
| DIN LDAT element | Latest Delivery Date | The date in the EDI data will be in the format "YYMMDD", but you want the date to be printed in the format "DD/MM/YY", so you will set the screen format accordingly. Also, you will change the field and element lengths to reflect the longer date format. |
| OLD group | Order Line Details | After you customize and format the fields in the OLD group, you will copy and paste the OLD group at the same level in the EDI file. The original OLD group will contain column headings for the line item detail, but you will prevent the column headings from being printed for all line items after the first. You will change the maximum use of the first OLD group to one so that the column headings are printed only once (for the first line item). You will change the maximum use of the second OLD group to 999,998. Up to 999,999 line items (one from the first OLD group and 999,998 from the second OLD group) can be printed on the printout (without printing the column headings for each line item). |
| OLD:2 SEQA element | First Level Sequence Number | The standard allows a maximum length of ten digits, but you expect a number no longer than five digits from your partner. You will change the maximum length of the element and the display length of the field to five. You will change the field name to "Line", which better describes the data in this field for your company. |
| OLD:2 SPRO SPR1 element | Supplier’s Code for the Traded Unit | The standard allows a maximum length of thirty characters, but you expect a string no longer than ten characters from your partner. You will change the maximum length of the element and the display length of the field to ten. You will change the field name to "Prod ID", which better describes the data in this field for your company. |
| OLD:2 CPRO CPR1 element | Customer’s Item Code | This element is required in the purchase order, but is not meaningful for your purposes. Therefore, you will prevent this field from being printed on the printout. |
| OLD:2 UNOR UNO0 element | Consumer Units in Traded Unit | The standard allows a maximum length of fifteen characters, but you expect a number no longer than ten digits from your partner. You will change the maximum length of the element and the display length of the field to ten. Also, you will change the data type from string to number, and assign EDI and screen formats of N0 (indicating a number with an implicit decimal point and no decimal places). In addition, you will change the field name to "Cons. Units", which better describes the data in this field for your company. |
| OLD:2 UNOR CD04 element | Measure Indicator | You will change the field name to "Unit", which better describes the data in this field for your company. |
| OLD:2 OQTY OQT0 element | Number of Traded Units Ordered | The standard allows a maximum length of fifteen characters, but you expect a number no longer than six digits from your partner. You will change the maximum length of the element and the display length of the field to six. Also, you will change the data type from string to number, and assign EDI and screen formats of N0 (indicating a number with an implicit decimal point and no decimal places). In addition, you will change the field name to "Qty Ord", which better describes the data in this field for your company. |
| OLD:2 OUCT OUC0 element | Cost Price | The standard allows a maximum length of fourteen digits, but you expect a number no longer than ten digits from your partner. You will change the maximum length of the element and the display length of the field to ten. Also, you will change the screen format of the data to R4 (indicating a number with an explicit decimal point and four decimal places). In addition, you will change the field name to "Price Each", which better describes the data in this field for your company. |
| OLD:2 TDES TDE0 element | Traded Unit Descr. Line 1 | The data in this element will be self-explanatory, so you will remove the label from this field. |
| OLD:2 TDES TDE1 element | Traded Unit Descr. Line 2 | The data in this element will be self-explanatory, so you will remove the label from this field. |
| OTR segment | Order Trailer | You want this segment to print the total number of line items at the end of the printout. However, if the form were generated now, the total would be printed at the beginning of the printout (because the fields in the OTR segment would be displayed on the same frame as the fields in the ORDHDR group). You will change the arrangement of the form, while maintaining the integrity of the EDI data, so the total is printed at the end of the purchase order. |
| OTR LORD element | Lines Ordered | You will change the field name to "Number of Line Items", which better describes the data in this field for your company. |