Show TOC

Creating PropertiesLocate this document in the navigation structure

Use

To create a property for your data model, proceed as described below. You can define a property as a core type, or as a complex type used in a complex type structure.

Procedure
  1. Right-click a data object or the Object Structure folder and select Property from the Create menu. The Create Property dialog box is displayed.

  2. Enter a name for the property and press the green checkmark. The new property then appears under the data object in the tree structure and the Properties Editor is displayed so that you can define the new property.

  3. Complete the fields in the Properties Editor as required; only Core Data Type is mandatory for core type properties. The editable fields are described in the table below.

  4. Save your entries.

The following fields are available for editing in the Properties Editor; the other fields are read-only.

Field

Description

Default

Entity Enabled

If selected, the property is enabled in this data model and will be reflected at runtime. If not selected, the property is ignored at runtime. Select this checkbox if you want to enable the property in this data model.

Selected

Semantics

Controls how the property is used, for example, classifies a number as a telephone number or as a fax number. See Semantic Values for a list of possible values for this field.

 

External Name

Name of property as represented in the external service, service document, and metadata document. For example, the property's technical name could be PROP123, with a more meaningful external name of Sales Order Item.

 

Complex Type

Select this radio button if you want to use your own types in a complex type structure in the data model (instead of using a core type). You can include more than one property in a complex type structure. You first need to create the complex type structure; for more information, see Creating Complex Types.

If you select this button, all fields under the Core Type button are disabled.

Not selected

Complex Type Name

Enter the name of the complex type structure you created (mandatory).

 

Core Type

Select this radio button if you want to define a core type for the property.

If you select this button, the Complex Type Name field is disabled.

Selected

Decimals

Specifies the number of decimal places (for numeric core data types only, such as Edm.Decimal, Edm.Double). Only available for core types.

 

Length

Maximum length of values for the property at runtime. For example, enter 30 to specify that the maximum length for the property is 30. Only available for core types.

 

Core Data Type

Mandatory field. Specifies the type allowed from OData that is used at runtime. Select a type from the F4 Help, for example, select Edm.String for fixed or variable length character data. Only available for core types.

 

Input Mask

Defines the format to be used for values and restricts allowed values by means of regular expressions, for example, [0-9\-]*. Only available for core types.

Note

This is not enforced at runtime.

 

Key

Select this checkbox to indicate that this is the key field of the data model. Only available for core types.

Not selected

Optional

If selected, the property will not be passed at runtime for modifying operations. If not selected, a value is expected and the property will be passed at runtime for modifying operations. Only available for core types.

Selected for key fields only

Read-only

If selected, the property cannot be modified by an Update operation. If not checked, the property can be modified. Only available for core types.

Selected for key fields only

Creatable

If selected, the property can be passed in the Create operation. If not checked, the property cannot be passed in the Create operation. Only available for core types.

Not selected

Filterable

If selected, the property can be included in any filter sent at runtime. If not checked, the property cannot be included in filters sent at runtime.

Note

There must be at least one filterable property in the data object.

Only available for core types.

Not selected

Label (radio button)

Select this radio button if you want to manually enter a language-dependent label in your logon language.

Selected

Label (input field)

Enter a language-dependent label in the user's logon language (if available). This is a static label.

 

Reference to Label

Select this button if you want to use a reference to a label (data element or field in a structure). This is a dynamic reference type that points to a ABAP Dictionary element from which the description will come. At runtime the system resolves the label accordingly from the reference.

 

Reference type

Select the required reference from the drop-down menu (Data Element or Structure)

Data Element

Reference object

If you have selected Structure in the Reference type field, copy the required structure into this field.