Example of Setting Up User-Defined Validations for Payment Methods or for Payment Files

This example demonstrates how to set up two user-defined validations. You must set up two validations when you want your user-defined validations to:

  • Compare values

  • Ensure that a value always appears in the field you want to validate

The first condition ensures that the validation checks a value, which meets your specified condition and value. The second condition ensures that the field the validation checks is not empty.

Note: You aren't required to set up two user-defined validations. A scenario can exist where you only want to create a user-defined validation that ensures that the field the validation checks is not empty.

The following table summarizes key decisions to consider before setting up a user-defined validation.

Decisions to Consider

In This Example

Do you want to compare a value that the user enters against a specified condition and value?

You want to validate that the Document pay group field is equal to the string Domestic when generating an invoice.

Do you want to ensure that the validated field is not empty?

You want to validate that the Document pay group field is not empty when generating an invoice.

User-Defined Validation That Checks a Specific Condition and Value

  1. In the Setup and Maintenance work area, go to the following:

    • Offering: Financials

    • Functional Area: Payments

    • Task: Manage Payment Methods

    Then, on the Manage Payment Methods page, click the Create icon.

  2. On the Create Payment Method page in the User-Defined Validations section, complete the fields as shown in this table for Validation 1.

    If you save the invoice without entering any value in the Document pay group field, Validation 1 alone, won't keep the invoice on hold.

    Field

    Value

    Field

    Document pay group

    Condition

    Equal to String

    Value

    Domestic

User-Defined Validation That Checks for an Empty Field

  1. On the Create Payment Method page in the User-Defined Validations section, complete the fields as shown in this table for Validation 2.

    To include the scenario in the validation where no value is entered in the Document pay group field, you must set up a second validation. If you save the invoice without entering any value in the Document pay group field, the application then keeps the invoice on hold.

    Field

    Value

    Field

    Document pay group

    Condition

    Required

    Value

    Not applicable