SAP Commerce Type System: Types, Attributes & Relations

Learn about the SAP Commerce Type System, including item types, atomic types, attributes, relationships, and items.xml configuration.

SAP Commerce Type System Explained: Types, Attributes and Relationships

Modern e-commerce companies need a structured organization of their data to improve operational efficiency. E-commerce websites generally comprise of products, customers, orders, addresses, and company data, which requires the company to define how each of the objects will be created, processed, and related to each other.

The Type System in SAP Commerce provides this specific structure and defines the various types of items on the platform, such as their characteristics and relationships with others. Additionally, it helps its users gather the data needed by the application.

It is essential to understand the SAP Commerce Type System as a developer or an IT consultant working with SAP Commerce Cloud.

What is the SAP Commerce type system?

SAP Commerce type system is the structure that enables the organization of business data within SAP Commerce. This structure explains how items are defined, what properties they possess, and how they relate to each other.

For instance, if one looks at an e-commerce site, various items are involved in transactions. Items can be products, clients, orders placed, and so on. Each of these items carries distinct features and attributes. A product can be named with specific numbers, descriptions, and pricing, while the client would be characterized by his name, email address, and some other contact information.

The type system states how all of the items will be shown in the SAP Commerce system.

In SAP Commerce Cloud, developers apply this type system to develop new business items, add some features to the existing objects, define their characteristics, and establish connections between different types of items.

The type system is mainly adjusted through XML configuration files, mainly items.xml in describing the structure of objects and their attributes.

The Various Elements of the SAP Commerce Type System

The SAP Commerce Type System consists of several components that explain how business information is structured.

1. Item Types

Item Types are the different business objects existing in the SAP Commerce system. They provide a basic framework for storing and handling business information.

For instance, an online store may consist of multiple item types, such as:

  • Product: stores product data, including name, code, description, and price.
  • Customer: deals with information about customers.
  • Order: stores information about customer orders.
  • Category: groups products within various categories.
  • Address: manages information on customer address and delivery address.

Moreover, developers can add their item types when the platform predefined item types do not fulfil business needs.

The Various Elements of the SAP Commerce Type System

The SAP Commerce Type System consists of several components that explain how business information is structured.

1. Item Types

Item Types are the different business objects existing in the SAP Commerce system. They provide a basic framework for storing and handling business information.

For instance, an online store may consist of multiple item types, such as:

  • Product: stores product data, including name, code, description, and price.
  • Customer: deals with information about customers.
  • Order: stores information about customer orders.
  • Category: groups products within various categories.
  • Address: manages information on customer addresses and delivery addresses.

Moreover, developers can add their item types when the platform's predefined item types do not fulfil business needs.

Attributes in SAP Commerce
Attributes in SAP Commerce

Some important attribute characteristics include:

  • Persistent Attributes: Values are stored in the database.
  • Dynamic Attributes: Values are calculated dynamically rather than stored as regular persistent attribute values.
  • Localized Attributes: Allow different values for different languages or locales.
  • Optional and Mandatory Attributes: Define whether an attribute must contain a value.
  • Read and Write Modifiers: Control whether an attribute can be accessed or modified.

These configurations help developers manage business data according to specific application requirements.

Understanding Relationships in SAP Commerce

Relationships connect different item types and help establish how business objects interact with each other.

For example, an e-commerce application may have a relationship between customers and orders. A customer can place multiple orders, while each order belongs to a customer.

Similarly, products can be associated with categories to organise an online product catalogue.

Relationships in SAP Commerce type system
Relationships in SAP Commerce type system

‍

SAP Commerce supports relation definitions with source and target item types, including cardinality configurations that determine how many items can participate in a relationship.

Understanding these relationships helps developers build organised data structures and manage information more effectively.

How the SAP Commerce Type System Works with items.xml

The items.xml file is an integral component of the setup of SAP Commerce's Type System.

Using the XML configuration file, developers indicate different item types, characteristics and connections that an application needs.

For instance, if a business needs a custom item type to preserve some more product information, the developers will define the needed structure of the item type in its extension's items.xml file.

The usual course of the project will include:

  1. Determining a business need for a new item type or an attribute.
  2. Describing the item type and its characteristics in the items.xml.
  3. Setting the necessary characteristics and connections.
  4. Implementing the relevant extension for SAP Commerce.
  5. Updating the Type System following the provided update process.
  6. Checking the new structure and its functionality.

The suggested scheme allows developers to increase the value of SAP Commerce as per the current business needs.

What Makes The SAP Commerce Type System Necessary?

The Type System is the basis for the organisation of business data in SAP Commerce Cloud.

The importance of the Type System can be observed in its advantages:

  • Data structure: It determines the method for organisation of all types of business objects and the information connected to them.
  • Customisability: It allows one to create new types of items and expand existing constructions.
  • Data integrity: It helps to ensure a uniform definition of properties and relations.
  • Provision of necessary data structures for programming of commerce functions.
  • Ease of data maintenance: It simplifies the understanding and management of business objects as the software evolves.

Conclusion

The SAP Commerce Type System is one of the key components of SAP Commerce Architecture. It determines the structure of business objects, their properties, and relationships between various items.

SAP Commerce consists of many components such as atomic types, item types, collections, enumerations, and relation types, with each component helping organize the business information of the platform.

Having a grasp of the Type System, item types, relations, and the attributes specified in items.xml will allow programmers to create and customize commerce applications more efficiently. For SAP Commerce Cloud learners, this understanding of the Technical architecture is an important base for getting to know data modeling and development of extensions.

Contact Prompt Edify Today!

Have questions? Connect with our team to explore your SAP training options.

‍

logo

By Team Prompt Edify

Have any enquiry? Call us
+(27) 740294414
(+91) 99932-86938
wecare@promptedify.com

Last Updated On
November 24, 2026