Show TOC Start of Content Area

Object documentation Attributes Tab Page  Locate the document in its SAP Library structure

Definition

A view index used to define entity service attributes.

Use

You use the Attributes tab page to create and model attributes and data types associated with entity services. You use these data types to generate tables, define table relations, and implement basic methods for reading, writing, updating, deleting, and querying data.

For more information about the specific attributes types used in modeling off entity service, see Working with Composite Application Services Services and Concepts   Entity Services of this guide.

Structure

The Attributes tab page can be divided into the following views:

     Entity Catalog

     Attributes

     Properties/Tasks

For more information about the Properties/Tasks view, see the section on Composite Application Services views in Working with Composite Application Services.

Entity Catalog

The entity catalog lists the entity services available in CAS.  Core services are listed in the subdirectory Entities. The subdirectory caf.core contains all entity services that are accessible from the core project.

See Core Project for information about the services available with the CAF core project.

Attributes

Attributes associated with an entity service are listed in the Attributes view. Only attributes for the entity service that have been opened in the CAS modeler are displayed. You can reference an entity service from another one, but you cannot reuse its attributes.

Properties/Tasks

When you create an attribute, the system generates default attribute properties. These properties are displayed in the pane at the bottom of the screen when you select Properties.

You can view attribute properties in the Properties view; however not all properties can be edited. The default attributes created with an entity service cannot be changed. In the table below, you can see an excerpt of properties and values available if applicable.

Property

Value

Comment

Key

Indicates if attribute is primary indicator for the service.

Cannot be changed.

Object Type

Describes type of object, for example, field attribute.

Cannot be changed.

Cardinality

A business rule specifying how many times the entity can be related to another entity in a given relationship.

Default value is 0:1. You can also choose 0:n, 1:1, and 1:n. If you choose 0:n, an additional table is created in the database with a primary key and an attribute.

Data Type

Data type of the attribute.

Cannot be changed.

DB Field

Name of the field in the database.

Default is the attribute name of the database field. Cannot be changed.

Description

Name of attribute

Describes the attribute. Default is name of attribute. It be changed.

Language Dependent

false

Indicates if a language must be specified. Default is false. You can select true or false.

Mandatory

false

Describes if an entry in that field is required. Default is false. You can select true or false.

Name

Name of attribute

Default is the name of the corresponding attributes. You can rename it.

 

End of Content Area