Show TOC

Background documentationXSD Editor (Core Data Types and Aggregated Data Types). Locate this document in the navigation structure

 

XSD Editor for Core Data Types
General

When you process a data type of classification core data type, the data-type editor has the following tab pages:

Tab Page

Use

Type Definition

You define the core data type here. The editor is based on the editor for user-defined data types. The definition of the data type is restricted to those elements and attributes that go with the selected representation term.

XSD

Here you can display the core data type definition in XML format. You cannot make any changes here, however.

The obligatory representation term defines the semantics and fundamental structure of the data type. Furthermore, according to CCTS, the representation term is part of the data-type name. For example, the languageCode core data type has Code the representation term.

Note Note

SAP has created a core data type with the same name in the ES Repository for each representation term. A detailed description of the corresponding modeled core data types is available on SAP Developer Network (SDN user required) at https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/500db5c9-0e01-0010-81aa-d73cdd30df9a (“How to Solve the Business Standards Dilemma – The CCTS based Core Data Types”). The core data types are listed there according to the CCTS naming conventions. For example, Code. Type is the name of the modeled core data type for the code representation term.

End of the note.

The data-type editor automatically derives which definition options are available for the particular core data type from the representation term. Core data types consist basically of one element that, depending on the representation term, can have additional attributes:

  • Element of core data type (corresponds to “primary component” in CCTS):

    For each representation term there are one or more permitted built-in data types from XML schema (example: xsd:decimal), which the XSD editor offers as type for the element. In some cases there are alternative references to an existing core data type (more information in table below). Depending on the data type used, the XSD editor provides input fields in the Details column that enable you to specify the core data type more precisely (example: Number of Decimal Places) for a representation term core data type Amount.

  • Attributes of core data type (correspond to “enhancing components” in CCTS):

    Depending on the representation term the XSD Editor provides suitable suitable that you have to assign a type to. The XSD editor defines which attributes require a reference to an existing core data type, and which attributes require a built-in XSD type to be specified. There are obligatory and optional attributes.

In XML schema, the primary component is one element, and an enhancing component is an attribute of this element. Depending on whether enhancing components are involved or not, this results in two basic types of core data types, as illustrated in the figure below:

This graphic is explained in the accompanying text.

Core Data Types with or Without Enhancing Components

Reference to Existing Core Data Types

References from element to an existing core data type are an alternative to specifying a built-in XSD type. Such references are only possible if this is permitted in the representation term, and if the referencing core data type does not have any attributes (simple type). The referenced core data type must have the same representation term and must also be a simple type.

The representation term also determines whether an attribute must reference a built-in XSD type, or an existing core data type of the Code representation term (simple type).

The following table provides an overview of whether references to other core data types are possible for a specific core data type.

Possible References (refer to table below for an explanation of abbreviations)

Selected Representation Term in Core Data-Type Editor

Primary Component

Enhancing Component(s)

Amount

XSD

Code

Attachment

XSD

XSD

BinaryObject

XSD

[XSD / Code]

Code

XSD [Fixed Values] | Core

[XSD / Code]

Date

XSD | Core

%

DateTime

XSD | Core

[XSD / Code]

Description

XSD | Core

[Code]

Duration

XSD | Core

%

Graphic

XSD

[XSD / Code]

Identifier

XSD | Core

[XSD / Code]

Indicator

XSD

%

Measure

XSD

Code

Name

XSD | Core

[Code]

Note

XSD | Core

[Code]

Numeric

XSD | Core

%

Percent

XSD | Core

%

Picture

XSD

[XSD / Code]

Quantity

XSD

[Code]

Ratio

XSD | Core

%

Sound

XSD

[XSD / Code]

Text

XSD | Core

[Code]

Time

XSD | Core

%

URI

XSD | Core

[XSD]

Value

XSD | Core

%

Video

XSD

[XSD / Code]

Note Note

Core data types with the Code representation term can be used for the definition of fixed values. (more information: Defining Fixed Values).

End of the note.

The table below explains the shortcut used above:

Use

Key

Meaning

For Elements (Primary Component)

XSD

You can only reference built-in XSD types here (depending on the representation term).

XSD | Core

You can assign the element either a built-in XSD type, or a core data type of the same representation term. The latter is only possible for core data types for which you have not selected any attributes.

XSD [Fixed Values] | Core

In the case of core data types of the Code representation term, in addition to the last case you can also reference fixed values if there are no attributes and the element references a built-in XSD type.

For Attributes (Enhancing Component(s))

Code

All attributes of the core data type are mandatory and must reference a core data type of the Code representation term.

XSD

All attributes of the core data type are mandatory and must reference a built-in XSD data type.

%

There are no attributes for core data types of this representation term.

XSD / Code

The core data types of this representation term have both attributes for which you must specify a built-in XSD type, and attributes for which you must reference a core data type of the Code representation term.

(both)

[<Key>]

Optional Application

XSD Editor for Aggregated Data Types

The XSD editor for aggregated data types has the same functions as the XSD editor for freely-modeled data types except for the following restrictions:

  • The simple type category is not possible for aggregated data types.

  • Aggregated data types comprise other aggregated data types or core data types or both. References to freestyle data types or built-in XSD types are not permitted.

More information: XSD Editor (Freely-Modeled Data Types)