Deprecated
This CDS view is deprecated in S/4HANA. Use I_CUSTOMERMATERIAL_2 instead. View all deprecated CDS views →

I_CustomerMaterial

DDL: I_CUSTOMERMATERIAL SQL: ISDCUSTMATLINFO Type: view BASIC Package: VDM_SD_MD_MM

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

CategorySales Master Data Management
Data CategoryDimension
StatusReleased
Data Extraction TypeFull (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)

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateDeprecated
Line of BusinessSales
Application ComponentSD-MD-MM-2CL
CapabilitiesData 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
PackageSales 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

Data Sources (1)

SourceAliasJoin Type
knmt knmt from

Associations (12)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

ServiceBindingVersionContractRelease
ASQL_F2914 ASQL_F2914 C2 NOT_RELEASED

Fields (33)

KeyFieldSource TableSource FieldDescription
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]
;