I_MaterialPRTByInternalKey
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)
| Source | Alias | Join Type |
|---|---|---|
| crvm_a | crvm_a | inner |
| I_ProdnRsceToolMasterData | PRT | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProductionResourceType | I_ProdnRsceToolMasterData | ProductionResourceType | |
| KEY | ProductionResourceInternalID | I_ProdnRsceToolMasterData | ProductionResourceInternalID | |
| Plant | crvm_a | werks | ||
| Material | crvm_a | matnr | ||
| Product | crvm_a | matnr | ||
| ProductionResourceToolGroup1 | I_ProdnRsceToolMasterData | ProductionResourceToolGroup1 | ||
| ProductionResourceToolGroup2 | I_ProdnRsceToolMasterData | ProductionResourceToolGroup2 | ||
| ProductionResourceUsage | I_ProdnRsceToolMasterData | ProductionResourceUsage | ||
| ProdnRsceToolControlProfile | ProdnRsceToolControlProfile | |||
| ChangeNumber | I_ProdnRsceToolMasterData | ChangeNumber | ||
| ProdnRsceToolStandardTextCode | ProdnRsceToolStandardTextCode | |||
| ProdnRsceToolTotQtyCalcFormula | ProdnRsceToolTotQtyCalcFormula | |||
| ProdnRsceToolUsageQtyCalcFmla | ProdnRsceToolUsageQtyCalcFmla | |||
| StartDateOffsetReferenceCode | StartDateOffsetReferenceCode | |||
| EndDateOffsetReferenceCode | EndDateOffsetReferenceCode | |||
| EndDateOffsetDurnIsReferenced | EndDateOffsetDurnIsReferenced | |||
| StartDateOffstDurnIsReferenced | StartDateOffstDurnIsReferenced | |||
| EndDteOffstRefCodeIsReferenced | EndDteOffstRefCodeIsReferenced | |||
| StartDateOffsetRefCodeIsRefcd | StartDateOffsetRefCodeIsRefcd | |||
| PRTTotQtyCalcFmlaIsReferenced | PRTTotQtyCalcFmlaIsReferenced | |||
| PRTUsgeQtyCalcFmlaIsReferenced | PRTUsgeQtyCalcFmlaIsReferenced | |||
| PRTControlProfileIsReferenced | PRTControlProfileIsReferenced | |||
| PRTStdTextCodeIsReferenced | PRTStdTextCodeIsReferenced | |||
| StartDateOffsetDuration | StartDateOffsetDuration | |||
| StartDateOffsetDurationUnit | StartDateOffsetDurationUnit | |||
| EndDateOffsetDuration | EndDateOffsetDuration | |||
| EndDateOffsetDurationUnit | EndDateOffsetDurationUnit | |||
| CreationDate | CreationDate | |||
| CreatedByUser | CreatedByUser | |||
| LastChangeDate | LastChangeDate | |||
| LastChangedByUser | LastChangedByUser | |||
| ShopFloorRtgPRTIsRegistrable | ShopFloorRtgPRTIsRegistrable | |||
| _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 |
@AbapCatalog.sqlViewName: 'IPPMATERIALPRTIK'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@VDM.viewType: #BASIC
@ObjectModel.representativeKey: 'ProductionResourceInternalID'
@ObjectModel.semanticKey: 'Material'
@Analytics.dataCategory: #DIMENSION
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Material PRT by internal key'
@Search.searchable: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: { serviceQuality: #B, sizeCategory: #M, dataClass: #MASTER }
@Metadata.allowExtensions:true
define view I_MaterialPRTByInternalKey
as select from I_ProdnRsceToolMasterData as PRT
inner join crvm_a on crvm_a.objty = PRT.ProductionResourceType
and crvm_a.objid = PRT.ProductionResourceInternalID
association [1..1] to I_Material as _Material on $projection.Material = _Material.Material
association [1..1] to I_Product as _Product on $projection.Product = _Product.Product
association [1..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant
association [1..1] to I_ProductPlant as _ProductPlant on $projection.Product = _ProductPlant.Product
and $projection.Plant = _ProductPlant.Plant
association [1..1] to I_ProductPlantBasic as _ProductPlant2 on $projection.Product = _ProductPlant2.Product
and $projection.Plant = _ProductPlant2.Plant
association [1..1] to I_MaterialProdnRsceTool as _MaterialProdnRsceTool on $projection.Plant = _MaterialProdnRsceTool.Plant
and $projection.Material = _MaterialProdnRsceTool.Material
{
@ObjectModel.foreignKey.association: '_ProductionResourceType'
key PRT.ProductionResourceType,
key PRT.ProductionResourceInternalID,
@ObjectModel.foreignKey.association: '_Plant'
@Search: {defaultSearchElement: true, ranking: #LOW, fuzzinessThreshold: 0.8}
crvm_a.werks as Plant,
@ObjectModel.foreignKey.association: '_MaterialProdnRsceTool'
@Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
crvm_a.matnr as Material,
@ObjectModel.foreignKey.association: '_Product'
crvm_a.matnr as Product,
@Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
PRT.ProductionResourceToolGroup1,
@Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
PRT.ProductionResourceToolGroup2,
PRT.ProductionResourceUsage,
ProdnRsceToolControlProfile,
PRT.ChangeNumber,
ProdnRsceToolStandardTextCode,
ProdnRsceToolTotQtyCalcFormula,
ProdnRsceToolUsageQtyCalcFmla,
StartDateOffsetReferenceCode,
EndDateOffsetReferenceCode,
// Reference Indicators
EndDateOffsetDurnIsReferenced,
StartDateOffstDurnIsReferenced,
EndDteOffstRefCodeIsReferenced,
StartDateOffsetRefCodeIsRefcd,
PRTTotQtyCalcFmlaIsReferenced,
PRTUsgeQtyCalcFmlaIsReferenced,
PRTControlProfileIsReferenced,
PRTStdTextCodeIsReferenced,
@Semantics.quantity.unitOfMeasure: 'StartDateOffsetDurationUnit'
@DefaultAggregation: #SUM
StartDateOffsetDuration,
@Semantics.unitOfMeasure: true
StartDateOffsetDurationUnit,
@Semantics.quantity.unitOfMeasure: 'EndDateOffsetDurationUnit'
@DefaultAggregation: #SUM
EndDateOffsetDuration,
@Semantics.unitOfMeasure: true
EndDateOffsetDurationUnit,
// Admin
@Semantics.systemDate.createdAt: true
CreationDate,
@Semantics.user.createdBy: true
CreatedByUser,
@Semantics.systemDate.lastChangedAt: true
LastChangeDate,
@Semantics.user.lastChangedBy: true
LastChangedByUser,
//PRT can be Registered at Production Execution
ShopFloorRtgPRTIsRegistrable,
_ProductionResourceType,
_Material,
_Plant,
_Product,
@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: '_ProductPlant2'
_ProductPlant,
_ProductPlant2,
_ProdnRsceToolGroup1,
_ProdnRsceToolGroup2,
_ProductionResourceUsage,
_ProdnRsceToolControlProfile,
_ProdnRsceToolStandardText,
_ProdnRsceToolTotQtyCalcFmla,
_ProdnRsceToolUsageQtyCalcFmla,
_StartDateOffsetReferenceCode,
_EndDateOffsetReferenceCode,
_StartDateOffsetDurationUnit,
_EndDateOffsetDurationUnit,
_MaterialProdnRsceTool,
_CreatedByUser,
_LastChangedByUser,
_ChangeMaster
}
where
PRT.ProdnRsceToolCategory = 'M' // Material
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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