I_CustomerMaterial
Customer Material Information
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.
SAP Help Documentation
| Category | Sales Master Data Management |
|---|---|
| Data Category | Dimension |
| Status | Released |
| Data Extraction Type | Full (physical deletions are possible in source tables) |
Purpose
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)
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)
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 |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesOrganization | vkorg | SD Sales Org. | |
| KEY | DistributionChannel | vtweg | RefDistCh-Cust/Mat. | |
| KEY | Customer | kunnr | Stock customer | |
| KEY | Material | matnr | Vehicle Model | |
| Product | Vehicle Model | |||
| SortField | sortl | Sort Term | ||
| ETag | sortl | Sort Term | ||
| MaterialByCustomer | kdmat | Customer Mat. | ||
| MaterialDescriptionByCustomer | postx | Text | ||
| Plant | werks | Receiving Plant | ||
| DeliveryPriority | lprio | Delivery Prior. | ||
| MinDeliveryQtyInBaseUnit | minlf | Min. Dely Qty | ||
| BaseUnit | meins | Valuation Unit | ||
| PartialDeliveryIsAllowed | kztlf | Part.dlv./item | ||
| MaxNmbrOfPartialDelivery | antlf | Max.Part.Deliv. | ||
| UnderdelivTolrtdLmtRatioInPct | untto | Underdel. Tol. | ||
| OverdelivTolrtdLmtRatioInPct | uebto | Overrun Tol. | ||
| UnlimitedOverdeliveryIsAllowed | uebtk | Unlimited Tol. | ||
| CustomerMaterialItemUsage | vwpos | Item Usage | ||
| SalesUnit | vrkme_t | Sales Unit | ||
| SalesQtyToBaseQtyDnmntr | umvkn_t | Denominat. | ||
| SalesQtyToBaseQtyNmrtr | umvkz_t | Numerator | ||
| _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
- 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