I_MaterialPRTByInternalKey

DDL: I_MATERIALPRTBYINTERNALKEY SQL: IPPMATERIALPRTIK Type: view BASIC

Material PRT by internal key

I_MaterialPRTByInternalKey is a Basic CDS View (Dimension) that provides data about "Material PRT by internal key" in SAP S/4HANA. It reads from 2 data sources (crvm_a, I_ProdnRsceToolMasterData) and exposes 53 fields with key fields ProductionResourceType, ProductionResourceInternalID. It has 6 associations to related views.

Data Sources (2)

SourceAliasJoin Type
crvm_a crvm_a inner
I_ProdnRsceToolMasterData PRT from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_Material _Material $projection.Material = _Material.Material
[1..1] I_Product _Product $projection.Product = _Product.Product
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_ProductPlant _ProductPlant $projection.Product = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant
[1..1] I_ProductPlantBasic _ProductPlant2 $projection.Product = _ProductPlant2.Product and $projection.Plant = _ProductPlant2.Plant
[1..1] I_MaterialProdnRsceTool _MaterialProdnRsceTool $projection.Plant = _MaterialProdnRsceTool.Plant and $projection.Material = _MaterialProdnRsceTool.Material

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName IPPMATERIALPRTIK view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #BASIC view
ObjectModel.representativeKey ProductionResourceInternalID view
ObjectModel.semanticKey Material view
Analytics.dataCategory #DIMENSION view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Material PRT by internal key view
Search.searchable true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
Metadata.allowExtensions true view

Fields (53)

KeyFieldSource TableSource FieldDescription
KEY ProductionResourceType I_ProdnRsceToolMasterData ProductionResourceType Object Type
KEY ProductionResourceInternalID I_ProdnRsceToolMasterData ProductionResourceInternalID Object ID
Plant crvm_a werks Receiving Plant
Material crvm_a matnr Vehicle Model
Product crvm_a matnr Vehicle Model
ProductionResourceToolGroup1 I_ProdnRsceToolMasterData ProductionResourceToolGroup1 Grouping Key 1
ProductionResourceToolGroup2 I_ProdnRsceToolMasterData ProductionResourceToolGroup2 Grouping Key 2
ProductionResourceUsage I_ProdnRsceToolMasterData ProductionResourceUsage Usage
ProdnRsceToolControlProfile ProdnRsceToolControlProfile PRT Control Profile
ChangeNumber I_ProdnRsceToolMasterData ChangeNumber Change Number
ProdnRsceToolStandardTextCode ProdnRsceToolStandardTextCode Std Text Key
ProdnRsceToolTotQtyCalcFormula ProdnRsceToolTotQtyCalcFormula Formula
ProdnRsceToolUsageQtyCalcFmla ProdnRsceToolUsageQtyCalcFmla Formula
StartDateOffsetReferenceCode StartDateOffsetReferenceCode
EndDateOffsetReferenceCode EndDateOffsetReferenceCode
EndDateOffsetDurnIsReferenced EndDateOffsetDurnIsReferenced
StartDateOffstDurnIsReferenced StartDateOffstDurnIsReferenced
EndDteOffstRefCodeIsReferenced EndDteOffstRefCodeIsReferenced
StartDateOffsetRefCodeIsRefcd StartDateOffsetRefCodeIsRefcd
PRTTotQtyCalcFmlaIsReferenced PRTTotQtyCalcFmlaIsReferenced
PRTUsgeQtyCalcFmlaIsReferenced PRTUsgeQtyCalcFmlaIsReferenced
PRTControlProfileIsReferenced PRTControlProfileIsReferenced
PRTStdTextCodeIsReferenced PRTStdTextCodeIsReferenced
StartDateOffsetDuration StartDateOffsetDuration
StartDateOffsetDurationUnit StartDateOffsetDurationUnit Unit
EndDateOffsetDuration EndDateOffsetDuration
EndDateOffsetDurationUnit EndDateOffsetDurationUnit Unit
CreationDate CreationDate Time Stamp
CreatedByUser CreatedByUser User Name
LastChangeDate LastChangeDate Time Stamp
LastChangedByUser LastChangedByUser User Name
ShopFloorRtgPRTIsRegistrable ShopFloorRtgPRTIsRegistrable Registrable
_ProductionResourceType _ProductionResourceType
_Material _Material
_Plant _Plant
_Product _Product
_ProductPlant _ProductPlant
_ProductPlant2 _ProductPlant2
_ProdnRsceToolGroup1 _ProdnRsceToolGroup1
_ProdnRsceToolGroup2 _ProdnRsceToolGroup2
_ProductionResourceUsage _ProductionResourceUsage
_ProdnRsceToolControlProfile _ProdnRsceToolControlProfile
_ProdnRsceToolStandardText _ProdnRsceToolStandardText
_ProdnRsceToolTotQtyCalcFmla _ProdnRsceToolTotQtyCalcFmla
_ProdnRsceToolUsageQtyCalcFmla _ProdnRsceToolUsageQtyCalcFmla
_StartDateOffsetReferenceCode _StartDateOffsetReferenceCode
_EndDateOffsetReferenceCode _EndDateOffsetReferenceCode
_StartDateOffsetDurationUnit _StartDateOffsetDurationUnit
_EndDateOffsetDurationUnit _EndDateOffsetDurationUnit
_MaterialProdnRsceTool _MaterialProdnRsceTool
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_ChangeMaster _ChangeMaster

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_MaterialPRTByInternalKey.
-- 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: IPPMATERIALPRTIK

CREATE VIEW I_MaterialPRTByInternalKey AS
SELECT
  PRT.ProductionResourceType AS ProductionResourceType,
  PRT.ProductionResourceInternalID AS ProductionResourceInternalID,
  crvm_a.werks AS Plant,
  crvm_a.matnr AS Material,
  crvm_a.matnr AS Product,
  PRT.ProductionResourceToolGroup1 AS ProductionResourceToolGroup1,
  PRT.ProductionResourceToolGroup2 AS ProductionResourceToolGroup2,
  PRT.ProductionResourceUsage AS ProductionResourceUsage,
  ProdnRsceToolControlProfile,
  PRT.ChangeNumber AS ChangeNumber,
  ProdnRsceToolStandardTextCode,
  ProdnRsceToolTotQtyCalcFormula,
  ProdnRsceToolUsageQtyCalcFmla,
  StartDateOffsetReferenceCode,
  EndDateOffsetReferenceCode,
  EndDateOffsetDurnIsReferenced,
  StartDateOffstDurnIsReferenced,
  EndDteOffstRefCodeIsReferenced,
  StartDateOffsetRefCodeIsRefcd,
  PRTTotQtyCalcFmlaIsReferenced,
  PRTUsgeQtyCalcFmlaIsReferenced,
  PRTControlProfileIsReferenced,
  PRTStdTextCodeIsReferenced,
  StartDateOffsetDuration,
  StartDateOffsetDurationUnit,
  EndDateOffsetDuration,
  EndDateOffsetDurationUnit,
  CreationDate,
  CreatedByUser,
  LastChangeDate,
  LastChangedByUser,
  ShopFloorRtgPRTIsRegistrable
FROM I_ProdnRsceToolMasterData AS PRT
INNER JOIN crvm_a ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Product = _ProductPlant.Product AND Plant = _ProductPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_ProductPlantBasic AS _ProductPlant2 ON Product = _ProductPlant2.Product AND Plant = _ProductPlant2.Plant  -- association [1..1]
LEFT OUTER JOIN I_MaterialProdnRsceTool AS _MaterialProdnRsceTool ON Plant = _MaterialProdnRsceTool.Plant AND Material = _MaterialProdnRsceTool.Material  -- association [1..1]
;