Customizing the QTY:201 Element

The QTY:2 segment (in the LIN group) contains the Quantity for each item in the invoice. The standard allows the QTY:2 segment to be used up to five times per line item. Your users enter information in the QTY:2 segment only once per line item so you have already changed the maximum use of this segment to one.

The QTY:201 element contains the Quantity Qualifier for each invoiced item. For this tutorial, you know that the only type of quantity your users enter for this invoice is the invoiced quantity. You need to define a constant value for the Quantity Qualifier field, to indicate that the constant, 47 (Invoiced Quantity), qualifies the text in the Quantity field. When a user enters a measurement in the Quantity field, the system automatically assigns the code, 47, to the Quantity Qualifier field.

Use this procedure to define a constant value and hide the Quantity Qualifier field.

  1. Double-click the QTY:201 element.
  2. On the Standard tab, do the following:
    • Select Use Constant.
    • Click Edit to access the Map Constants dialog.
  3. On the Map Constants dialog, click New to access the Edit Constant dialog.
  4. On the Edit Constant dialog, do the following:
    • In the ID box, enter Invoiced Quantity.
    • From the Type list, select String.
    • In the Value box, enter 47 to indicate that the Quantity Qualifier field will be the invoiced quantity.
    • Click OK to add the constant.
  5. Click Close to exit the Map Constants dialog.
  6. On the Standard tab, do the following:
    • From the Constants list, select 47.
    • From the Qualifies list, select 6060 QUANTITY, which is the element that the Quantity Qualifier field qualifies.
  7. On the Display tab, select This field should not appear on the form.
  8. Click OK to exit the dialog.