I_MiscPRTByInternalKey
Miscellaneous PRT by Internal Key
I_MiscPRTByInternalKey is a Basic CDS View (Dimension) that provides data about "Miscellaneous PRT by Internal Key" in SAP S/4HANA. It reads from 2 data sources (crvs_a, I_ProdnRsceToolMasterData) and exposes 46 fields with key fields ProductionResourceType, ProductionResourceInternalID. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| crvs_a | crvs_a | inner |
| I_ProdnRsceToolMasterData | PRT | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_MiscProdnRsceToolText | _Text | $projection.ProductionResourceType = _Text.ProductionResourceType and $projection.ProductionResourceInternalID = _Text.ProductionResourceInternalID |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPPMISCPRTIK | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.representativeKey | ProductionResourceInternalID | view | |
| ObjectModel.semanticKey | MiscProductionResourceTool | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Miscellaneous 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 (46)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProductionResourceType | I_ProdnRsceToolMasterData | ProductionResourceType | |
| KEY | ProductionResourceInternalID | I_ProdnRsceToolMasterData | ProductionResourceInternalID | |
| MiscProductionResourceTool | ||||
| 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 | |||
| MiscPRTAuthorizationGroup | I_ProdnRsceToolMasterData | MiscPRTAuthorizationGroup | ||
| _ProductionResourceType | _ProductionResourceType | |||
| _Text | _Text | |||
| _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 |
@AbapCatalog.sqlViewName: 'IPPMISCPRTIK'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.viewType: #BASIC
@ObjectModel.representativeKey: 'ProductionResourceInternalID'
@ObjectModel.semanticKey: 'MiscProductionResourceTool'
@Analytics.dataCategory: #DIMENSION
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Miscellaneous PRT by Internal Key'
@Search.searchable: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: { serviceQuality: #B, sizeCategory: #M, dataClass: #MASTER }
@Metadata.allowExtensions: true
/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK" ] } */
define view I_MiscPRTByInternalKey
as select from I_ProdnRsceToolMasterData as PRT
inner join crvs_a on crvs_a.objty = PRT.ProductionResourceType
and crvs_a.objid = PRT.ProductionResourceInternalID
association [0..*] to I_MiscProdnRsceToolText as _Text on $projection.ProductionResourceType = _Text.ProductionResourceType
and $projection.ProductionResourceInternalID = _Text.ProductionResourceInternalID
{
@ObjectModel.foreignKey.association: '_ProductionResourceType'
key PRT.ProductionResourceType,
@ObjectModel.text.association: '_Text'
key PRT.ProductionResourceInternalID,
@Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
cast(crvs_a.sfhnr as pph_sfhnr preserving type) as MiscProductionResourceTool,
@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.MiscPRTAuthorizationGroup,
// Associations
_ProductionResourceType,
_Text,
_ProdnRsceToolGroup1,
_ProdnRsceToolGroup2,
_ProductionResourceUsage,
_ProdnRsceToolControlProfile,
_ProdnRsceToolStandardText,
_ProdnRsceToolTotQtyCalcFmla,
_ProdnRsceToolUsageQtyCalcFmla,
_StartDateOffsetReferenceCode,
_EndDateOffsetReferenceCode,
_StartDateOffsetDurationUnit,
_EndDateOffsetDurationUnit,
_CreatedByUser,
_LastChangedByUser,
_ChangeMaster
}
where
PRT.ProdnRsceToolCategory = 'S' // Miscellaneous
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PRODNRSCETOOLMASTERDATA",
"CRVS_A"
],
"ASSOCIATED":
[
"I_CHANGEMASTER",
"I_MISCPRODNRSCETOOLTEXT",
"I_OPERATIONDATEOFFSETREFCODE",
"I_PRODNRSCETOOLCONTROLPROFILE",
"I_PRODNRSCETOOLGROUP",
"I_PRODNRSCETOOLQTYCALCFORMULA",
"I_PRODNRSCETOOLSTANDARDTEXT",
"I_PRODUCTIONRESOURCETYPE",
"I_PRODUCTIONRESOURCEUSAGE",
"I_UNITOFMEASURE",
"I_USER"
],
"BASE":
[
"I_PRODNRSCETOOLMASTERDATA"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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