I_RoutingPRTMasterDataSrchMod
Production Resource/Tool Master Data
I_RoutingPRTMasterDataSrchMod is a Basic CDS View that provides data about "Production Resource/Tool Master Data" in SAP S/4HANA. It reads from 1 data source (crfh) and exposes 40 fields with key fields ProductionResourceType, ProductionResourceInternalID. It has 19 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| crfh | crfh | from |
Associations (19)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ProductionResourceType | _ProductionResourceType | $projection.ProductionResourceType = _ProductionResourceType.ProductionResourceType |
| [1..1] | I_ProdnRsceToolGroup | _ProdnRsceToolGroup1 | $projection.ProductionResourceToolGroup1 = _ProdnRsceToolGroup1.ProductionResourceToolGroup |
| [1..1] | I_ProdnRsceToolGroup | _ProdnRsceToolGroup2 | $projection.ProductionResourceToolGroup2 = _ProdnRsceToolGroup2.ProductionResourceToolGroup |
| [1..1] | I_ProductionResourceUsage | _ProductionResourceUsage | $projection.ProductionResourceUsage = _ProductionResourceUsage.ProductionResourceUsage |
| [0..1] | I_ProdnRsceToolControlProfile | _ProdnRsceToolControlProfile | $projection.ProdnRsceToolControlProfile = _ProdnRsceToolControlProfile.ProdnRsceToolControlProfile |
| [1..1] | I_ProdnRsceToolStandardText | _ProdnRsceToolStandardText | $projection.ProdnRsceToolStandardTextCode = _ProdnRsceToolStandardText.ProdnRsceToolStandardTextCode |
| [0..1] | I_ChangeMaster | _ChangeMaster | $projection.ChangeNumber = _ChangeMaster.ChangeNumber |
| [1..1] | I_ProdnRsceToolQtyCalcFormula | _ProdnRsceToolTotQtyCalcFmla | $projection.ProdnRsceToolTotQtyCalcFormula = _ProdnRsceToolTotQtyCalcFmla.ProdnRsceToolQtyCalcFormula |
| [1..1] | I_ProdnRsceToolQtyCalcFormula | _ProdnRsceToolUsageQtyCalcFmla | $projection.ProdnRsceToolUsageQtyCalcFmla = _ProdnRsceToolUsageQtyCalcFmla.ProdnRsceToolQtyCalcFormula |
| [1..1] | I_OperationDateOffsetRefCode | _StartDateOffsetReferenceCode | $projection.StartDateOffsetReferenceCode = _StartDateOffsetReferenceCode.OperationDateOffsetRefCode |
| [1..1] | I_OperationDateOffsetRefCode | _EndDateOffsetReferenceCode | $projection.EndDateOffsetReferenceCode = _EndDateOffsetReferenceCode.OperationDateOffsetRefCode |
| [0..1] | I_UnitOfMeasure | _StartDateOffsetDurationUnit | $projection.StartDateOffsetDurationUnit = _StartDateOffsetDurationUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _EndDateOffsetDurationUnit | $projection.EndDateOffsetDurationUnit = _EndDateOffsetDurationUnit.UnitOfMeasure |
| [1..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_User | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
| [0..1] | I_MaterialPRTByInternalKey | _MaterialPRTByInternalKey | $projection.ProductionResourceType = _MaterialPRTByInternalKey.ProductionResourceType and $projection.ProductionResourceInternalID = _MaterialPRTByInternalKey.ProductionResourceInternalID |
| [0..1] | I_EquipmentPRTByInternalKey | _EquipmentPRTByInternalKey | $projection.ProductionResourceType = _EquipmentPRTByInternalKey.ProductionResourceType and $projection.ProductionResourceInternalID = _EquipmentPRTByInternalKey.ProductionResourceInternalID |
| [0..1] | I_DocumentPRTByInternalKey | _DocumentPRTByInternalKey | $projection.ProductionResourceType = _DocumentPRTByInternalKey.ProductionResourceType and $projection.ProductionResourceInternalID = _DocumentPRTByInternalKey.ProductionResourceInternalID |
| [0..1] | I_MiscPRTByInternalKey | _MiscPRTByInternalKey | $projection.ProductionResourceType = _MiscPRTByInternalKey.ProductionResourceType and $projection.ProductionResourceInternalID = _MiscPRTByInternalKey.ProductionResourceInternalID |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.representativeKey | ProductionResourceInternalID | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Production Resource/Tool Master Data | view | |
| Analytics.technicalName | IRTGPRTMSTRDATA | view |
Fields (40)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProductionResourceType | |||
| KEY | ProductionResourceInternalID | |||
| ProductionResourceToolGroup1 | crfh | fgru1 | Grouping Key 1 | |
| ProductionResourceToolGroup2 | crfh | fgru2 | Grouping Key 2 | |
| ProductionResourceUsage | crfh | planv | Usage | |
| MiscPRTAuthorizationGroup | crfh | brgru | Authorization | |
| ProdnRsceToolControlProfile | crfh | steuf | PRT Control Profile | |
| ChangeNumber | ||||
| ProdnRsceToolStandardTextCode | crfh | ktsch | Std Text Key | |
| ProdnRsceToolTotQtyCalcFormula | crfh | mgform | Formula | |
| ProdnRsceToolUsageQtyCalcFmla | crfh | ewform | Formula | |
| CreationDate | crfh | andat | Created On | |
| CreatedByUser | ||||
| LastChangeDate | crfh | aedat | Obsolete | |
| LastChangedByUser | crfh | aenam | User Name | |
| StartDateOffsetReferenceCode | ||||
| StartDateOffsetDuration | ||||
| StartDateOffsetDurationUnit | crfh | ehoffb | Unit | |
| EndDateOffsetReferenceCode | ||||
| EndDateOffsetDuration | ||||
| EndDateOffsetDurationUnit | crfh | ehoffe | Unit | |
| _ProductionResourceType | _ProductionResourceType | |||
| _ProdnRsceToolGroup1 | _ProdnRsceToolGroup1 | |||
| _ProdnRsceToolGroup2 | _ProdnRsceToolGroup2 | |||
| _ProductionResourceUsage | _ProductionResourceUsage | |||
| _ProdnRsceToolControlProfile | _ProdnRsceToolControlProfile | |||
| _ProdnRsceToolStandardText | _ProdnRsceToolStandardText | |||
| _ProdnRsceToolTotQtyCalcFmla | _ProdnRsceToolTotQtyCalcFmla | |||
| _ProdnRsceToolUsageQtyCalcFmla | _ProdnRsceToolUsageQtyCalcFmla | |||
| _StartDateOffsetReferenceCode | _StartDateOffsetReferenceCode | |||
| _EndDateOffsetReferenceCode | _EndDateOffsetReferenceCode | |||
| _StartDateOffsetDurationUnit | _StartDateOffsetDurationUnit | |||
| _EndDateOffsetDurationUnit | _EndDateOffsetDurationUnit | |||
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _ChangeMaster | _ChangeMaster | |||
| _MaterialPRTByInternalKey | _MaterialPRTByInternalKey | |||
| _EquipmentPRTByInternalKey | _EquipmentPRTByInternalKey | |||
| _DocumentPRTByInternalKey | _DocumentPRTByInternalKey | |||
| _MiscPRTByInternalKey | _MiscPRTByInternalKey |
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_RoutingPRTMasterDataSrchMod.
-- 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.
CREATE VIEW I_RoutingPRTMasterDataSrchMod AS
SELECT
cast(crfh.objty as productionresourcetype preserving type) AS ProductionResourceType,
cast(crfh.objid as pph_fhmid preserving type) AS ProductionResourceInternalID,
crfh.fgru1 AS ProductionResourceToolGroup1,
crfh.fgru2 AS ProductionResourceToolGroup2,
crfh.planv AS ProductionResourceUsage,
crfh.brgru AS MiscPRTAuthorizationGroup,
crfh.steuf AS ProdnRsceToolControlProfile,
cast(crfh.aennr as changenumber preserving type) AS ChangeNumber,
crfh.ktsch AS ProdnRsceToolStandardTextCode,
crfh.mgform AS ProdnRsceToolTotQtyCalcFormula,
crfh.ewform AS ProdnRsceToolUsageQtyCalcFmla,
crfh.andat AS CreationDate,
cast(crfh.annam as vdm_createdbyuserid preserving type) AS CreatedByUser,
crfh.aedat AS LastChangeDate,
crfh.aenam AS LastChangedByUser,
cast(crfh.bzoffb as startdateoffsetreferencecode preserving type) AS StartDateOffsetReferenceCode,
cast(crfh.offstb as startdateoffsetduration preserving type) AS StartDateOffsetDuration,
crfh.ehoffb AS StartDateOffsetDurationUnit,
cast(crfh.bzoffe as enddateoffsetreferencecode preserving type) AS EndDateOffsetReferenceCode,
cast(crfh.offste as enddateoffsetduration preserving type) AS EndDateOffsetDuration,
crfh.ehoffe AS EndDateOffsetDurationUnit
FROM crfh
LEFT OUTER JOIN I_ProductionResourceType AS _ProductionResourceType ON ProductionResourceType = _ProductionResourceType.ProductionResourceType -- association [1..1]
LEFT OUTER JOIN I_ProdnRsceToolGroup AS _ProdnRsceToolGroup1 ON ProductionResourceToolGroup1 = _ProdnRsceToolGroup1.ProductionResourceToolGroup -- association [1..1]
LEFT OUTER JOIN I_ProdnRsceToolGroup AS _ProdnRsceToolGroup2 ON ProductionResourceToolGroup2 = _ProdnRsceToolGroup2.ProductionResourceToolGroup -- association [1..1]
LEFT OUTER JOIN I_ProductionResourceUsage AS _ProductionResourceUsage ON ProductionResourceUsage = _ProductionResourceUsage.ProductionResourceUsage -- association [1..1]
LEFT OUTER JOIN I_ProdnRsceToolControlProfile AS _ProdnRsceToolControlProfile ON ProdnRsceToolControlProfile = _ProdnRsceToolControlProfile.ProdnRsceToolControlProfile -- association [0..1]
LEFT OUTER JOIN I_ProdnRsceToolStandardText AS _ProdnRsceToolStandardText ON ProdnRsceToolStandardTextCode = _ProdnRsceToolStandardText.ProdnRsceToolStandardTextCode -- association [1..1]
LEFT OUTER JOIN I_ChangeMaster AS _ChangeMaster ON ChangeNumber = _ChangeMaster.ChangeNumber -- association [0..1]
LEFT OUTER JOIN I_ProdnRsceToolQtyCalcFormula AS _ProdnRsceToolTotQtyCalcFmla ON ProdnRsceToolTotQtyCalcFormula = _ProdnRsceToolTotQtyCalcFmla.ProdnRsceToolQtyCalcFormula -- association [1..1]
LEFT OUTER JOIN I_ProdnRsceToolQtyCalcFormula AS _ProdnRsceToolUsageQtyCalcFmla ON ProdnRsceToolUsageQtyCalcFmla = _ProdnRsceToolUsageQtyCalcFmla.ProdnRsceToolQtyCalcFormula -- association [1..1]
LEFT OUTER JOIN I_OperationDateOffsetRefCode AS _StartDateOffsetReferenceCode ON StartDateOffsetReferenceCode = _StartDateOffsetReferenceCode.OperationDateOffsetRefCode -- association [1..1]
LEFT OUTER JOIN I_OperationDateOffsetRefCode AS _EndDateOffsetReferenceCode ON EndDateOffsetReferenceCode = _EndDateOffsetReferenceCode.OperationDateOffsetRefCode -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _StartDateOffsetDurationUnit ON StartDateOffsetDurationUnit = _StartDateOffsetDurationUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _EndDateOffsetDurationUnit ON EndDateOffsetDurationUnit = _EndDateOffsetDurationUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [1..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_MaterialPRTByInternalKey AS _MaterialPRTByInternalKey ON ProductionResourceType = _MaterialPRTByInternalKey.ProductionResourceType AND ProductionResourceInternalID = _MaterialPRTByInternalKey.ProductionResourceInternalID -- association [0..1]
LEFT OUTER JOIN I_EquipmentPRTByInternalKey AS _EquipmentPRTByInternalKey ON ProductionResourceType = _EquipmentPRTByInternalKey.ProductionResourceType AND ProductionResourceInternalID = _EquipmentPRTByInternalKey.ProductionResourceInternalID -- association [0..1]
LEFT OUTER JOIN I_DocumentPRTByInternalKey AS _DocumentPRTByInternalKey ON ProductionResourceType = _DocumentPRTByInternalKey.ProductionResourceType AND ProductionResourceInternalID = _DocumentPRTByInternalKey.ProductionResourceInternalID -- association [0..1]
LEFT OUTER JOIN I_MiscPRTByInternalKey AS _MiscPRTByInternalKey ON ProductionResourceType = _MiscPRTByInternalKey.ProductionResourceType AND ProductionResourceInternalID = _MiscPRTByInternalKey.ProductionResourceInternalID -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA