Promoting the DTM:2 Segment

If the form were generated now, the date in the DTM:2 segment (in the PO1 group) for the line item information would be printed on a separate frame than the rest of the line item fields. You want the date to be placed on the same frame as the rest of the line item information, so you need to promote the DTM:2 segment.

Your trading partner sends you two sets of dates: the requested date and the ship date (in this order). The DTM:2 segment must occur twice in the form to accommodate both sets of dates from your trading partner. To customize the DTM:2 segment while preserving the integrity of the EDI structure, you must promote the DTM:2 segment, then change the maximum use of the original DTM:2 segment to one so that it is no longer a repeating segment.

Use this procedure to promote the DTM:2 segment.

  1. Right-click the DTM:2 segment and select Promote to extract one iteration of the DTM:2 segment and place it directly above the DTM:2 segment that you selected to promote.

    The new iteration of the DTM:2 segment is named DTM:4.

  2. Right-click the DTM:4 segment and select Properties.
  3. On the Looping tab, enter 0 in the Min Usage box to make this segment conditional.
  4. Click OK to exit the EDI Segment Properties dialog.
  5. Right-click the DTM:2 segment and select Properties.
  6. On the Looping tab, enter 1 in the Max Usage box to allow this segment to be used only once.
  7. Click OK to exit the EDI Segment Properties dialog.