I_DocumentPRTByInternalKey
Document PRT by internal key
I_DocumentPRTByInternalKey is a Basic CDS View (Dimension) that provides data about "Document PRT by internal key" in SAP S/4HANA. It reads from 3 data sources (crvd_a, draw, I_ProdnRsceToolMasterData) and exposes 20 fields with key fields ProductionResourceType, ProductionResourceInternalID. It has 5 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| crvd_a | crvd_a | inner |
| draw | draw | inner |
| I_ProdnRsceToolMasterData | PRT | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_DocumentInfoRecordDocType | _DocumentType | $projection.DocumentType = _DocumentType.DocumentInfoRecordDocType -- (obsolete: I_DocInfoRecdNumber, .DocumentType, .DocumentInfoRecord) |
| [1..1] | I_DocumentInfoRecordDocNumber | _DocumentNumber | $projection.DocumentType = _DocumentNumber.DocumentInfoRecordDocType and $projection.DocumentInfoRecord = _DocumentNumber.DocumentInfoRecordDocNumber -- (obsolete: I_DocInfoRecdDocumentVersion, .DocumentType, .DocumentInfoRecord, .DocumentVersion) |
| [1..1] | I_DocumentInfoRecordDocVersion | _DocumentVersion | $projection.DocumentType = _DocumentVersion.DocumentInfoRecordDocType and $projection.DocumentInfoRecord = _DocumentVersion.DocumentInfoRecordDocNumber and $projection.DocumentVersion = _DocumentVersion.DocumentInfoRecordDocVersion -- (obsolete: I_DocInfoRecd, .DocumentType, .DocumentInfoRecord, .DocumentVersion, .DocumentPart) |
| [1..1] | I_DocumentInfoRecord | _DocumentInfoRecord | $projection.DocumentType = _DocumentInfoRecord.DocumentInfoRecordDocType and $projection.DocumentInfoRecord = _DocumentInfoRecord.DocumentInfoRecordDocNumber and $projection.DocumentVersion = _DocumentInfoRecord.DocumentInfoRecordDocVersion and $projection.DocumentPart = _DocumentInfoRecord.DocumentInfoRecordDocPart |
| [1..1] | I_DocumentProdnRsceTool | _DocumentProdnRsceTool | $projection.DocumentType = _DocumentProdnRsceTool.DocumentType and $projection.DocumentInfoRecord = _DocumentProdnRsceTool.DocumentInfoRecord and $projection.DocumentVersion = _DocumentProdnRsceTool.DocumentVersion and $projection.DocumentPart = _DocumentProdnRsceTool.DocumentPart |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #BASIC | view | |
| ObjectModel.representativeKey | ProductionResourceInternalID | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Document PRT by internal key | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| Metadata.allowExtensions | true | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProductionResourceType | I_ProdnRsceToolMasterData | ProductionResourceType | |
| KEY | ProductionResourceInternalID | I_ProdnRsceToolMasterData | ProductionResourceInternalID | |
| DocumentType | crvd_a | dokar | ||
| DocumentInfoRecord | crvd_a | doknr | ||
| DocumentVersion | crvd_a | dokvr | ||
| DocumentPart | crvd_a | doktl | ||
| AuthorizationGroup | draw | begru | ||
| InternalDocumentStatus | draw | dokst | ||
| CreationDate | I_ProdnRsceToolMasterData | CreationDate | ||
| CreatedByUser | I_ProdnRsceToolMasterData | CreatedByUser | ||
| LastChangeDate | I_ProdnRsceToolMasterData | LastChangeDate | ||
| LastChangedByUser | I_ProdnRsceToolMasterData | LastChangedByUser | ||
| _ProductionResourceType | I_ProdnRsceToolMasterData | _ProductionResourceType | ||
| _DocumentType | _DocumentType | |||
| _DocumentNumber | _DocumentNumber | |||
| _DocumentVersion | _DocumentVersion | |||
| _DocumentInfoRecord | _DocumentInfoRecord | |||
| _DocumentProdnRsceTool | _DocumentProdnRsceTool | |||
| _CreatedByUser | I_ProdnRsceToolMasterData | _CreatedByUser | ||
| _LastChangedByUser | I_ProdnRsceToolMasterData | _LastChangedByUser |
//@AbapCatalog.sqlViewName: 'IPPDOCUMENTPRTIK'
//@AbapCatalog.compiler.compareFilter: true
//@AbapCatalog.preserveKey:true
@VDM.viewType: #BASIC
@ObjectModel.representativeKey: 'ProductionResourceInternalID'
@ObjectModel.semanticKey: ['DocumentType', 'DocumentInfoRecord', 'DocumentVersion', 'DocumentPart']
@Analytics.dataCategory: #DIMENSION
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Document 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_DocumentPRTByInternalKey
define view entity I_DocumentPRTByInternalKey
as select from I_ProdnRsceToolMasterData as PRT
inner join crvd_a on crvd_a.objty = PRT.ProductionResourceType
and crvd_a.objid = PRT.ProductionResourceInternalID
inner join draw on draw.dokar = crvd_a.dokar
and draw.doknr = crvd_a.doknr
and draw.dokvr = crvd_a.dokvr
and draw.doktl = crvd_a.doktl
-- (obsolete: I_DocInfoRecdDocumentType, .DocumentType)
association [1..1] to I_DocumentInfoRecordDocType as _DocumentType on $projection.DocumentType = _DocumentType.DocumentInfoRecordDocType
-- (obsolete: I_DocInfoRecdNumber, .DocumentType, .DocumentInfoRecord)
association [1..1] to I_DocumentInfoRecordDocNumber as _DocumentNumber on $projection.DocumentType = _DocumentNumber.DocumentInfoRecordDocType
and $projection.DocumentInfoRecord = _DocumentNumber.DocumentInfoRecordDocNumber
-- (obsolete: I_DocInfoRecdDocumentVersion, .DocumentType, .DocumentInfoRecord, .DocumentVersion)
association [1..1] to I_DocumentInfoRecordDocVersion as _DocumentVersion on $projection.DocumentType = _DocumentVersion.DocumentInfoRecordDocType
and $projection.DocumentInfoRecord = _DocumentVersion.DocumentInfoRecordDocNumber
and $projection.DocumentVersion = _DocumentVersion.DocumentInfoRecordDocVersion
-- (obsolete: I_DocInfoRecd, .DocumentType, .DocumentInfoRecord, .DocumentVersion, .DocumentPart)
association [1..1] to I_DocumentInfoRecord as _DocumentInfoRecord on $projection.DocumentType = _DocumentInfoRecord.DocumentInfoRecordDocType
and $projection.DocumentInfoRecord = _DocumentInfoRecord.DocumentInfoRecordDocNumber
and $projection.DocumentVersion = _DocumentInfoRecord.DocumentInfoRecordDocVersion
and $projection.DocumentPart = _DocumentInfoRecord.DocumentInfoRecordDocPart
association [1..1] to I_DocumentProdnRsceTool as _DocumentProdnRsceTool on $projection.DocumentType = _DocumentProdnRsceTool.DocumentType
and $projection.DocumentInfoRecord = _DocumentProdnRsceTool.DocumentInfoRecord
and $projection.DocumentVersion = _DocumentProdnRsceTool.DocumentVersion
and $projection.DocumentPart = _DocumentProdnRsceTool.DocumentPart
{
@ObjectModel.foreignKey.association: '_ProductionResourceType'
key PRT.ProductionResourceType,
key PRT.ProductionResourceInternalID,
@ObjectModel.foreignKey.association: '_DocumentType'
crvd_a.dokar as DocumentType,
@ObjectModel.foreignKey.association: '_DocumentNumber'
crvd_a.doknr as DocumentInfoRecord,
@ObjectModel.foreignKey.association: '_DocumentVersion'
crvd_a.dokvr as DocumentVersion,
@ObjectModel.foreignKey.association: '_DocumentInfoRecord'
crvd_a.doktl as DocumentPart,
draw.begru as AuthorizationGroup,
draw.dokst as InternalDocumentStatus,
// **** The following fields cannot be maintained in CV01N ****
// **** Therefore they are always empty ****
// @Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
// PRT.ProductionResourceToolGroup1,
// @Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
// PRT.ProductionResourceToolGroup2,
// PRT.ProductionResourceUsage,
// ProdnRsceToolControlProfile,
// EngineeringChangeOrder,
// ProdnRsceToolStandardTextCode,
// ProdnRsceToolTotQtyCalcFormula,
// ProdnRsceToolUsageQtyCalcFmla,
// StartDateOffsetReferenceCode,
// EndDateOffsetReferenceCode,
//
// @Semantics.quantity.unitOfMeasure: 'StartDateOffsetDurationUnit'
// @DefaultAggregation: #SUM
// StartDateOffsetDuration,
// @Semantics.unitOfMeasure: true
// StartDateOffsetDurationUnit,
// @Semantics.quantity.unitOfMeasure: 'EndDateOffsetDurationUnit'
// @DefaultAggregation: #SUM
// EndDateOffsetDuration,
// @Semantics.unitOfMeasure: true
// EndDateOffsetDurationUnit,
// // Reference Indicators
// EndDateOffsetDurnIsReferenced,
// StartDateOffstDurnIsReferenced,
// EndDteOffstRefCodeIsReferenced,
// StartDateOffsetRefCodeIsRefcd,
// PRTTotQtyCalcFmlaIsReferenced,
// PRTUsgeQtyCalcFmlaIsReferenced,
// PRTControlProfileIsReferenced,
// PRTStdTextCodeIsReferenced,
// **** End of fields that cannot be maintained in CV01N ****
// Admin
@Semantics.systemDate.createdAt: true
PRT.CreationDate,
@Semantics.user.createdBy: true
PRT.CreatedByUser,
@Semantics.systemDate.lastChangedAt: true
PRT.LastChangeDate,
@Semantics.user.lastChangedBy: true
PRT.LastChangedByUser,
PRT._ProductionResourceType,
// _ProdnRsceToolGroup1,
// _ProdnRsceToolGroup2,
// _ProductionResourceUsage,
// _ProdnRsceToolControlProfile,
// _ProdnRsceToolStandardText,
// _ProdnRsceToolTotQtyCalcFmla,
// _ProdnRsceToolUsageQtyCalcFmla,
// _StartDateOffsetReferenceCode,
// _EndDateOffsetReferenceCode,
// _StartDateOffsetDurationUnit,
// _EndDateOffsetDurationUnit,
_DocumentType,
_DocumentNumber,
_DocumentVersion,
_DocumentInfoRecord,
_DocumentProdnRsceTool,
PRT._CreatedByUser,
PRT._LastChangedByUser
}
where
PRT.ProdnRsceToolCategory = 'D' // Document
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