I_CustomerMaterial
Customer Material Information
I_CustomerMaterial (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Sales
I_CustomerMaterial is a Basic CDS View (Dimension) that provides data about "Customer Material Information" in SAP S/4HANA. It reads from 1 data source (knmt) and exposes 33 fields with key fields SalesOrganization, DistributionChannel, Customer, Material. It has 12 associations to related views. It is exposed through 1 OData service (ASQL_F2914). Part of development package VDM_SD_MD_MM.
SAP Help Documentation
| Category | Sales Master Data Management |
|---|---|
| Data Category | Dimension |
| Status | Released |
| Data Extraction Type | Full (physical deletions are possible in source tables) |
This CDS view provides the prerequisites for answering questions about customer material. Example business questions could include: What is the ID that the customer uses for the product (that is, material)? What is the delivery priority of the product? What is the unit of sales for the product? What products are used by a certain customer in a certain sales organization?
Prerequisites
You have authorizations to access the relevant sales organizations. You have authorizations to access the relevant disctribution channels. You have authorizations to access the relevant authorization groups for customers.
Structure
Object types This view is built on the following object types: Customer Product Main CDS parameters and filters This view has no CDS parameters or filters. Measures and attributes Some important attributes are: Sales Organization ( SalesOrganization ) Distribution Channel ( DistributionChannel ) Customer ( Customer ) Product ( Product ) Customer Material ( MaterialByCustomer ) Customer Description ( MaterialDescriptionByCustomer ) Plant ( Plant ) Delivery Priority ( DeliveryPriority ) Base Unit of Measure ( BaseUnit ) Sales Unit ( SalesUnit )
Data Extraction
Data Extraction Type Full (physical deletions are possible in source tables)
SAP API Hub
| Category | Basic |
|---|---|
| State | Deprecated |
| Line of Business | Sales |
| Application Component | SD-MD-MM-2CL |
| Capabilities | Data Source for Data Extraction,Data Source in SQL Select,Data Source for Defining CDS Entities,Association Target for Defining CDS Entities,Analytical Dimension |
| Extensible (Key User) | Yes |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Not Released |
| Package | Sales for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view provides the prerequisites for answering questions about customer material. Example business questions could include:</p> <ul> <li><p>What is the ID that the customer uses for the product (that is, material)?</p></li> <li><p>What is the delivery priority of the product?</p></li> <li><p>What is the unit of sales for the product?</p></li> <li> <p>What products are used by a certain customer in a certain sales organization?</p> </li> </ul> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| knmt | knmt | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SalesOrganization | _SalesOrganization | $projection.SalesOrganization = _SalesOrganization.SalesOrganization |
| [0..1] | I_DistributionChannel | _DistributionChannel | $projection.DistributionChannel = _DistributionChannel.DistributionChannel |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [0..1] | I_Product | _Product | $projection.Product = _Product.Product |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_DeliveryPriority | _DeliveryPriority | $projection.DeliveryPriority = _DeliveryPriority.DeliveryPriority |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.BaseUnit = _BaseUnit.UnitOfMeasure |
| [0..1] | I_PartialDeliveryItem | _PartialDeliveryIsAllowed | $projection.PartialDeliveryIsAllowed = _PartialDeliveryIsAllowed.PartialDeliveryIsAllowed |
| [0..1] | I_CustomerMaterialItemUsage | _CustomerMaterialItemUsage | $projection.CustomerMaterialItemUsage = _CustomerMaterialItemUsage.CustomerMaterialItemUsage |
| [0..*] | I_AdditionalCustomerMaterial | _AdditionalCustomerMaterial | $projection.SalesOrganization = _AdditionalCustomerMaterial.SalesOrganization and $projection.DistributionChannel = _AdditionalCustomerMaterial.DistributionChannel and $projection.Customer = _AdditionalCustomerMaterial.Customer and $projection.Material = _AdditionalCustomerMaterial.Material |
| [0..1] | E_CustomerMaterial | _Extension | $projection.Material = _Extension.Material and $projection.Customer = _Extension.Customer and $projection.SalesOrganization = _Extension.SalesOrganization and $projection.DistributionChannel = _Extension.DistributionChannel |
Annotations (19)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.representativeKey | Customer | view | |
| EndUserText.label | Customer Material Information | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| AbapCatalog.sqlViewName | ISDCUSTMATLINFO | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | I_CUSTOMERMATERIAL_2 | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2914 | ASQL_F2914 | C2 | NOT_RELEASED |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrganization | vkorg | Sales Organization | |
| KEY | DistributionChannel | vtweg | Distribution Channel | |
| KEY | Customer | kunnr | Customer number | |
| KEY | Material | matnr | Material Number | |
| Product | Vehicle Model | |||
| SortField | sortl | Sort Field | ||
| ETag | sortl | Sort Field | ||
| MaterialByCustomer | kdmat | Material Number Used by Customer | ||
| MaterialDescriptionByCustomer | postx | Customer Description of Material | ||
| Plant | werks | Plant (Own or External) | ||
| DeliveryPriority | lprio | Delivery Priority | ||
| MinDeliveryQtyInBaseUnit | minlf | Minimum Delivery Quantity in Delivery Note Processing | ||
| BaseUnit | meins | Base Unit of Measure | ||
| PartialDeliveryIsAllowed | kztlf | Partial Delivery at Item Level | ||
| MaxNmbrOfPartialDelivery | antlf | Maximum Number of Partial Deliveries Allowed Per Item | ||
| UnderdelivTolrtdLmtRatioInPct | untto | Underdelivery Tolerance | ||
| OverdelivTolrtdLmtRatioInPct | uebto | Overdelivery Tolerance | ||
| UnlimitedOverdeliveryIsAllowed | uebtk | Unlimited Overdelivery Allowed | ||
| CustomerMaterialItemUsage | vwpos | Item Usage | ||
| SalesUnit | vrkme_t | Sales Unit | ||
| SalesQtyToBaseQtyDnmntr | umvkn_t | Denominator (divisor) for conversion of sales Qty into SKU | ||
| SalesQtyToBaseQtyNmrtr | umvkz_t | Numerator (factor) for conversion of sales quantity into SKU | ||
| _SalesOrganization | _SalesOrganization | |||
| _DistributionChannel | _DistributionChannel | |||
| _Customer | _Customer | |||
| _Material | _Material | |||
| _Product | _Product | |||
| _Plant | _Plant | |||
| _DeliveryPriority | _DeliveryPriority | |||
| _BaseUnit | _BaseUnit | |||
| _PartialDeliveryIsAllowed | _PartialDeliveryIsAllowed | |||
| _CustomerMaterialItemUsage | _CustomerMaterialItemUsage | |||
| _AdditionalCustomerMaterial | _AdditionalCustomerMaterial |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_CustomerMaterial.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: ISDCUSTMATLINFO
CREATE VIEW I_CustomerMaterial AS
SELECT
vkorg AS SalesOrganization,
vtweg AS DistributionChannel,
kunnr AS Customer,
matnr AS Material,
cast(matnr as productnumber preserving type ) AS Product,
sortl AS SortField,
sortl AS ETag,
kdmat AS MaterialByCustomer,
postx AS MaterialDescriptionByCustomer,
werks AS Plant,
lprio AS DeliveryPriority,
minlf AS MinDeliveryQtyInBaseUnit,
meins AS BaseUnit,
kztlf AS PartialDeliveryIsAllowed,
antlf AS MaxNmbrOfPartialDelivery,
untto AS UnderdelivTolrtdLmtRatioInPct,
uebto AS OverdelivTolrtdLmtRatioInPct,
uebtk AS UnlimitedOverdeliveryIsAllowed,
vwpos AS CustomerMaterialItemUsage,
vrkme_t AS SalesUnit,
umvkn_t AS SalesQtyToBaseQtyDnmntr,
umvkz_t AS SalesQtyToBaseQtyNmrtr
FROM knmt
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization -- association [0..1]
LEFT OUTER JOIN I_DistributionChannel AS _DistributionChannel ON DistributionChannel = _DistributionChannel.DistributionChannel -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_DeliveryPriority AS _DeliveryPriority ON DeliveryPriority = _DeliveryPriority.DeliveryPriority -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_PartialDeliveryItem AS _PartialDeliveryIsAllowed ON PartialDeliveryIsAllowed = _PartialDeliveryIsAllowed.PartialDeliveryIsAllowed -- association [0..1]
LEFT OUTER JOIN I_CustomerMaterialItemUsage AS _CustomerMaterialItemUsage ON CustomerMaterialItemUsage = _CustomerMaterialItemUsage.CustomerMaterialItemUsage -- association [0..1]
LEFT OUTER JOIN I_AdditionalCustomerMaterial AS _AdditionalCustomerMaterial ON SalesOrganization = _AdditionalCustomerMaterial.SalesOrganization AND DistributionChannel = _AdditionalCustomerMaterial.DistributionChannel AND Customer = _AdditionalCustomerMaterial.Customer AND Material = _AdditionalCustomerMaterial.Material -- association [0..*]
LEFT OUTER JOIN E_CustomerMaterial AS _Extension ON Material = _Extension.Material AND Customer = _Extension.Customer AND SalesOrganization = _Extension.SalesOrganization AND DistributionChannel = _Extension.DistributionChannel -- association [0..1]
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA