I_CustomerMaterial_2

DDL: I_CUSTOMERMATERIAL_2 SQL: ISDCUSTMATLINFO2 Type: view BASIC

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

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

View on SAP Help Portal →

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

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

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