PeopleCode


PeopleCode is a proprietary object-oriented programming language used to express business logic for PeopleSoft applications. Syntactically, PeopleCode is similar to other programming languages, and can be found in both loosely-typed and strongly-typed forms. PeopleCode and its run-time environment is part of the larger PeopleTools framework. PeopleCode has evolved over time and its implementation through the PeopleSoft applications lack consistency. PeopleCode offers some interoperability with the Java programming language. Definition name references, for example, enable you to refer to PeopleTools definitions, such as record definitions or pages, without using hard-coded string literals. Other language features, such as PeopleCode data types and metastrings, reflect the close interaction of PeopleTools and Structured Query Language. Dot notation, classes and methods in PeopleCode are similar to other object oriented languages, like Java. Object syntax was an important feature of PeopleTools 8.

Language features

Supported Functions

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

Import PackageName:Superclassname;


Class Classname




Constant declaration
End-class;


Property datatype PropertyName ;
Method MethodName


set PropertyName

end-set;


method Methodname
statements;
end-method;


&SQL = CreateSQL;

The values for the bind variables can be omitted and supplied later. For Insert, Update, or Delete commands these values would be supplied using Execute method.


&SQL = CreateSQL;
&SQL.Execute;