Customizing the Invoice REF02 Element

The REF02 element contains the Reference Number. This element is defined by the standard to be a string of thirty alphanumeric characters. In this tutorial, you know that the reference number (the contract number) is an eight-character alphanumeric string, so you change the element and field lengths to accommodate the shorter reference number. In addition, you rename the field label and add Help text to the field.

Use this procedure to change the field and element lengths, change the field label, and add Help text to the Reference Number field.

  1. Double-click the REF02 element.
  2. On the Validation tab, enter 8 in the Max box.
  3. On the Display tab, do the following:
    • In the Label box, enter Contract No. to replace the existing text.
    • In the Maximum number of characters box, enter 8 to allow an eight-character string to be entered.
  4. On the Help tab, enter the following text in the Help Text list. (Press Enter at the end of each line of text.)
    Enter the contract number. The contract number cannot
    exceed 8 alphanumeric characters.
  5. Click OK to exit the dialog.
  6. Click Generate Layout on the Main Toolbar to refresh the display of the screen entry form.

The REF segment of the Invoice frame should now look like this: