Supported Functions

PeopleCode supports the following types of functions:

  • Built-in: The standard set of PeopleCode functions. These can be called without being declared.

  • Internal: Functions that are defined (using the Function statement) within the PeopleCode program in which they are called.

  • External PeopleCode: PeopleCode functions defined outside the calling program. These are generally contained in record definitions that serve as function libraries.

  • External non-PeopleCode: Functions stored in external (C-callable) libraries.

Note:

PeopleSoft Analytic Calculation Engine provides its own set of built-in functions.

See Analytic Calculation Engine: Understanding the Analytic Model Definition Creation Process.

In addition, PeopleCode supports methods. The main differences between a built-in function and a method are:

  • A built-in function, in your code, is on a line by itself, and it does not (generally) have any dependencies.

    You do not have to instantiate an object before you can use the function.

  • A method can only be executed by an object (using dot notation).

    You must instantiate the object first.