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 | Object Type |
| KEY | ProductionResourceInternalID | I_ProdnRsceToolMasterData | ProductionResourceInternalID | Object ID |
| DocumentType | crvd_a | dokar | SW Document Type | |
| DocumentInfoRecord | crvd_a | doknr | Document | |
| DocumentVersion | crvd_a | dokvr | Doc. Version | |
| DocumentPart | crvd_a | doktl | Document Part | |
| AuthorizationGroup | draw | begru | AuthorizGroup | |
| InternalDocumentStatus | draw | dokst | Document Status | |
| CreationDate | I_ProdnRsceToolMasterData | CreationDate | Time Stamp | |
| CreatedByUser | I_ProdnRsceToolMasterData | CreatedByUser | User Name | |
| LastChangeDate | I_ProdnRsceToolMasterData | LastChangeDate | Time Stamp | |
| LastChangedByUser | I_ProdnRsceToolMasterData | LastChangedByUser | User Name | |
| _ProductionResourceType | I_ProdnRsceToolMasterData | _ProductionResourceType | ||
| _DocumentType | _DocumentType | |||
| _DocumentNumber | _DocumentNumber | |||
| _DocumentVersion | _DocumentVersion | |||
| _DocumentInfoRecord | _DocumentInfoRecord | |||
| _DocumentProdnRsceTool | _DocumentProdnRsceTool | |||
| _CreatedByUser | I_ProdnRsceToolMasterData | _CreatedByUser | ||
| _LastChangedByUser | I_ProdnRsceToolMasterData | _LastChangedByUser |
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_DocumentPRTByInternalKey.
-- 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: IPPDOCUMENTPRTIK
CREATE VIEW I_DocumentPRTByInternalKey AS
SELECT
PRT.ProductionResourceType AS ProductionResourceType,
PRT.ProductionResourceInternalID AS ProductionResourceInternalID,
crvd_a.dokar AS DocumentType,
crvd_a.doknr AS DocumentInfoRecord,
crvd_a.dokvr AS DocumentVersion,
crvd_a.doktl AS DocumentPart,
draw.begru AS AuthorizationGroup,
draw.dokst AS InternalDocumentStatus,
PRT.CreationDate AS CreationDate,
PRT.CreatedByUser AS CreatedByUser,
PRT.LastChangeDate AS LastChangeDate,
PRT.LastChangedByUser AS LastChangedByUser,
PRT._ProductionResourceType AS _ProductionResourceType,
PRT._CreatedByUser AS _CreatedByUser,
PRT._LastChangedByUser AS _LastChangedByUser
FROM I_ProdnRsceToolMasterData AS PRT
INNER JOIN crvd_a ON /* join condition not captured in parsed metadata */
INNER JOIN draw ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_DocumentInfoRecordDocType AS _DocumentType ON DocumentType = _DocumentType.DocumentInfoRecordDocType -- association [1..1]
LEFT OUTER JOIN I_DocumentInfoRecordDocNumber AS _DocumentNumber ON DocumentType = _DocumentNumber.DocumentInfoRecordDocType AND DocumentInfoRecord = _DocumentNumber.DocumentInfoRecordDocNumber -- association [1..1]
LEFT OUTER JOIN I_DocumentInfoRecordDocVersion AS _DocumentVersion ON DocumentType = _DocumentVersion.DocumentInfoRecordDocType AND DocumentInfoRecord = _DocumentVersion.DocumentInfoRecordDocNumber AND DocumentVersion = _DocumentVersion.DocumentInfoRecordDocVersion -- association [1..1]
LEFT OUTER JOIN I_DocumentInfoRecord AS _DocumentInfoRecord ON DocumentType = _DocumentInfoRecord.DocumentInfoRecordDocType AND DocumentInfoRecord = _DocumentInfoRecord.DocumentInfoRecordDocNumber AND DocumentVersion = _DocumentInfoRecord.DocumentInfoRecordDocVersion AND DocumentPart = _DocumentInfoRecord.DocumentInfoRecordDocPart -- association [1..1]
LEFT OUTER JOIN I_DocumentProdnRsceTool AS _DocumentProdnRsceTool ON DocumentType = _DocumentProdnRsceTool.DocumentType AND DocumentInfoRecord = _DocumentProdnRsceTool.DocumentInfoRecord AND DocumentVersion = _DocumentProdnRsceTool.DocumentVersion AND DocumentPart = _DocumentProdnRsceTool.DocumentPart -- association [1..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