I_CustomerMaterial_2
Customer Material
I_CustomerMaterial_2 is a Basic CDS View (Dimension) that provides data about "Customer Material" in SAP S/4HANA. It reads from 1 data source (knmt) and exposes 33 fields with key fields SalesOrganization, DistributionChannel, Customer, Product. It has 12 associations to related views.
SAP Help Documentation
| Category | Sales Master Data Management |
|---|
Purpose
This CDS view retrieves information about customer materials. This CDS view provides the data to answer the following business questions: 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? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: V_KNA1_VKO ( Customer: Authorization for Sales Organizations ) F_KNA1_BED ( Customer: Account Authorization )
Structure
Important fields Important fields in this view include the following: 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 )
This CDS view retrieves information about customer materials. This CDS view provides the data to answer the following business questions: 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? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: V_KNA1_VKO ( Customer: Authorization for Sales Organizations ) F_KNA1_BED ( Customer: Account Authorization )
Structure
Important fields Important fields in this view include the following: 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 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_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.Product = _AdditionalCustomerMaterial.Product |
| [0..1] | I_User | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
| [0..1] | E_CustomerMaterial | _Extension | $projection.Product = _Extension.Material and $projection.Customer = _Extension.Customer and $projection.SalesOrganization = _Extension.SalesOrganization and $projection.DistributionChannel = _Extension.DistributionChannel |
Annotations (17)
| 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 | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| AbapCatalog.sqlViewName | ISDCUSTMATLINFO2 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.internalName | #LOCAL | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | 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 | Product | Vehicle Model | ||
| MaterialByCustomer | kdmat | Customer Mat. | ||
| MaterialDescriptionByCustomer | postx | Text | ||
| RoundingProfile | rdprf | Rounding Prfl. | ||
| Plant | werks | Receiving Plant | ||
| DeliveryPriority | lprio | Delivery Prior. | ||
| MinDeliveryQtyInBaseUnit | minlf | Min. Dely Qty | ||
| BaseUnit | meins | Valuation Unit | ||
| CustomerMaterialSearchTerm | sortl | Sort Term | ||
| 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 | ||
| LastChangedByUser | last_changed_by_user | User Name | ||
| _SalesOrganization | _SalesOrganization | |||
| _DistributionChannel | _DistributionChannel | |||
| _Customer | _Customer | |||
| _Product | _Product | |||
| _Plant | _Plant | |||
| _DeliveryPriority | _DeliveryPriority | |||
| _BaseUnit | _BaseUnit | |||
| _PartialDeliveryIsAllowed | _PartialDeliveryIsAllowed | |||
| _CustomerMaterialItemUsage | _CustomerMaterialItemUsage | |||
| _AdditionalCustomerMaterial | _AdditionalCustomerMaterial | |||
| _LastChangedByUser | _LastChangedByUser |
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_2.
-- 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: ISDCUSTMATLINFO2
CREATE VIEW I_CustomerMaterial_2 AS
SELECT
vkorg AS SalesOrganization,
vtweg AS DistributionChannel,
kunnr AS Customer,
cast( matnr as productnumber preserving type ) AS Product,
kdmat AS MaterialByCustomer,
postx AS MaterialDescriptionByCustomer,
rdprf AS RoundingProfile,
werks AS Plant,
lprio AS DeliveryPriority,
minlf AS MinDeliveryQtyInBaseUnit,
meins AS BaseUnit,
sortl AS CustomerMaterialSearchTerm,
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,
last_changed_by_user AS LastChangedByUser
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_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 Product = _AdditionalCustomerMaterial.Product -- association [0..*]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID -- association [0..1]
LEFT OUTER JOIN E_CustomerMaterial AS _Extension ON Product = _Extension.Material AND Customer = _Extension.Customer AND SalesOrganization = _Extension.SalesOrganization AND DistributionChannel = _Extension.DistributionChannel -- association [0..1]
;
Learn More
- 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
- S/4HANA CDS View Deprecation: What You Need to Know
- 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