Customizing the DTM:201 Element
In this tutorial, you use two iterations of the DTM segment (Date/Time Reference). The first active DTM segment in the invoice (the DTM:2 segment) is used to enter the contract date of the invoice. The DTM:2 segment you customize first is in the IT1 group (on the Line Items frame) and specifies the date on which each item in the invoice was shipped. You already changed the maximum use of the DTM:2 segment so that its associated fields are displayed on the same frame as the PID:2 and IT1 fields.
The DTM:201 element (Date/Time Qualifier) is a mandatory element for the DTM:2 segment. The DTM:201 element contains the three-character code from your EDI data to indicate what type of date follows (e.g., date shipped). You define a constant value for the Date/Time Qualifier field, designating that the constant "011" qualifies the date in the Date field.
When a user enters the date on which the item was shipped in the Date field, the system automatically assigns the code 011 to the Date/Time Qualifier field. The user does not need to enter the code in the qualifier field, so the qualifier field does not need to be displayed.
Use this procedure to define a constant and hide the Date/Time Qualifier field.