Data Types of Schema Elements
You use data types to validate user entries in the data entry form. If you choose the function for saving in a data entry form, the system checks whether the data in the input field has a valid format for the data type of the referenced schema element.
In addition, data types allow the use of certain functions such as the automatic completion of the HTTP protocol in URLs.
Data Types for Schema Elements
Data Type |
Permitted Values |
url |
A valid URL has the following format: protocol://host[:port][file[query][anchor]] or host[:port][file[query][anchor]] If you do not specify a protocol, the system adds ”http://“. You must specify at least host or file. The other elements are optional. Only letters (A-Z, a-z) are allowed in protocol. Length: at least one character. Letters (A-Z, a-z), digits, and dashes (”-“) are allowed in host. It may comprise several sections that are separated by a dot (”.“). Such sections may not begin or end with a dash. Each section must have a length of at least one character. Only digits are permitted in port. Length: at least one, maximum of five digits. file is a character string beginning with a slash (”/“) and followed by letters and digits in any order. The following characters are also permitted in file: · Slash (”/“) · Tilde (”~“) · Dot (“.“) · Underscore (“_“) · Hyphen (“-“) · Percent (“%“) · Blank (“ “) query and anchor are arbitrary character strings beginning with a question mark (“?“) or a pound sign (“#“).
For URLs, the system only checks if the format is correct, but not if the target object exists.
|
time |
Time in various country-specific formats, such as HH:MM:SS.
|
date |
Date in various country-specific formats, such as: DD.MM.YYYY DD.MM.YY YYYY-MM-DD
|
image |
URL (see data type url) or RID (see data type rid). Example: /documents/Images/logo.gif
The use of the data type image is obligatory when you specify the path to an image file in a KM repository. Otherwise, the image cannot be displayed properly in display forms.
|
sequence |
Structure node If an element has this data type, you can create subnodes. You can not reference structure nodes in a control.
|
user |
User ID that exists in the user management of SAP Enterprise Portal.
|
integer |
Integer
|
string |
Any character string You can define the minimum and maximum data length for schema elements of the type String and you can user patterns to restrict the valid value set (see Data Lengths and Patterns).
|
rid |
Complete path and ID of an object in a KM repository. Example: /documents/Public Documents/MyDocument.doc
|
boolean |
true or false
|
By default, schema elements have the data type string.
To assign a data type to a schema element, select the schema element in the tree view and select a value from the dropdown box on the tab page Type.

If you change the data types of schema elements later on, this can result in old XML documents containing invalid data.