C_RtgAssocdMatlCnt

DDL: C_RTGASSOCDMATLCNT SQL: CMATERIALCNT Type: view CONSUMPTION

Associated Materials List in Routing

C_RtgAssocdMatlCnt is a Consumption CDS View that provides data about "Associated Materials List in Routing" in SAP S/4HANA. It has 1 association to related views.

Associations (1)

CardinalityTargetAliasCondition
[1..*] I_ProductionRoutingHeaderTP _Header $projection.ProductionRoutingGroup = _Header.ProductionRoutingGroup and $projection.ProductionRouting = _Header.ProductionRouting and $projection.ValidityEndDate >= _Header.ValidityStartDate and $projection.ValidityStartDate <= _Header.ValidityEndDate

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CMATERIALCNT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Associated Materials List in Routing view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY Product _MatAssg Product Product Sold
KEY Plant Plant Valuation Area
KEY ProductionRoutingGroup ProductionRoutingGroup
KEY ProductionRouting ProductionRouting
KEY ProductionRoutingMatlAssgmt ProductionRoutingMatlAssgmt
KEY ProductionRtgMatlAssgmtIntVers ProductionRtgMatlAssgmtIntVers
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
ProductName _Text ProductName Material Description
_Header _Header

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 C_RtgAssocdMatlCnt.
-- 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: CMATERIALCNT

CREATE VIEW C_RtgAssocdMatlCnt AS
SELECT
  _MatAssg.Product AS Product,
  Plant,
  ProductionRoutingGroup,
  ProductionRouting,
  ProductionRoutingMatlAssgmt,
  ProductionRtgMatlAssgmtIntVers,
  ValidityStartDate,
  ValidityEndDate,
  _Text.ProductName AS ProductName
LEFT OUTER JOIN I_ProductionRoutingHeaderTP AS _Header ON ProductionRoutingGroup = _Header.ProductionRoutingGroup AND ProductionRouting = _Header.ProductionRouting AND ValidityEndDate >= _Header.ValidityStartDate AND ValidityStartDate <= _Header.ValidityEndDate  -- association [1..*]
;