I_MfgWorkInstructionPRTDocLink
Documents linked to a PRT assigned to OA
I_MfgWorkInstructionPRTDocLink is a Basic CDS View that provides data about "Documents linked to a PRT assigned to OA" in SAP S/4HANA. It reads from 3 data sources (I_OpActyBOOProdnRsceToolAssgmt, I_BOOOperationPRTChangeState, I_DocumentPRTByInternalKey) and exposes 21 fields with key fields OperationActivity, OperationActyVersionCounter, BillOfOperationsType, BillOfOperationsGroup, BOOOperationPRTInternalID.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_OpActyBOOProdnRsceToolAssgmt | PRT | from |
| I_BOOOperationPRTChangeState | PRTChangeState | inner |
| I_DocumentPRTByInternalKey | PRTDocInternalKey | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMFGWORKINSDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Documents linked to a PRT assigned to OA | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OperationActivity | I_OpActyBOOProdnRsceToolAssgmt | OperationActivity | Operation Activity |
| KEY | OperationActyVersionCounter | I_OpActyBOOProdnRsceToolAssgmt | OperationActyVersionCounter | OA Version |
| KEY | BillOfOperationsType | I_OpActyBOOProdnRsceToolAssgmt | BillOfOperationsType | Task List Type |
| KEY | BillOfOperationsGroup | I_OpActyBOOProdnRsceToolAssgmt | BillOfOperationsGroup | Group |
| KEY | BOOOperationPRTInternalID | I_OpActyBOOProdnRsceToolAssgmt | BOOOperationPRTInternalID | Test equipment |
| KEY | BOOOperationPRTIntVersCounter | I_BOOOperationPRTChangeState | BOOOperationPRTIntVersCounter | |
| ProductionResourceType | I_DocumentPRTByInternalKey | ProductionResourceType | Object Type | |
| DocumentType | I_DocumentPRTByInternalKey | DocumentType | Order Type | |
| DocumentInfoRecord | I_DocumentPRTByInternalKey | DocumentInfoRecord | Document | |
| DocumentVersion | I_DocumentPRTByInternalKey | DocumentVersion | Docu. Version | |
| DocumentPart | I_DocumentPRTByInternalKey | DocumentPart | Document Part | |
| DocumentInfoRecordDocNumber | I_DocumentPRTByInternalKey | DocumentInfoRecord | Document | |
| _OperationActivityInternalId | ||||
| _OperationActivity | I_OpActyBOOProdnRsceToolAssgmt | _OperationActivity | ||
| _BillOfOperationsGroup | I_OpActyBOOProdnRsceToolAssgmt | _BillOfOperationsGroup | ||
| _BillOfOperationsType | I_OpActyBOOProdnRsceToolAssgmt | _BillOfOperationsType | ||
| _ProductionResourceType | I_DocumentPRTByInternalKey | _ProductionResourceType | ||
| _DocumentNumber | I_DocumentPRTByInternalKey | _DocumentNumber | ||
| _DocumentType | I_DocumentPRTByInternalKey | _DocumentType | ||
| _DocumentVersion | I_DocumentPRTByInternalKey | _DocumentVersion | ||
| _DocumentInfoRecord | I_DocumentPRTByInternalKey | _DocumentInfoRecord |
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_MfgWorkInstructionPRTDocLink.
-- 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: IMFGWORKINSDOC
CREATE VIEW I_MfgWorkInstructionPRTDocLink AS
SELECT
PRT.OperationActivity AS OperationActivity,
PRT.OperationActyVersionCounter AS OperationActyVersionCounter,
PRT.BillOfOperationsType AS BillOfOperationsType,
PRT.BillOfOperationsGroup AS BillOfOperationsGroup,
PRT.BOOOperationPRTInternalID AS BOOOperationPRTInternalID,
PRTChangeState.BOOOperationPRTIntVersCounter AS BOOOperationPRTIntVersCounter,
PRTDocInternalKey.ProductionResourceType AS ProductionResourceType,
PRTDocInternalKey.DocumentType AS DocumentType,
PRTDocInternalKey.DocumentInfoRecord AS DocumentInfoRecord,
PRTDocInternalKey.DocumentVersion AS DocumentVersion,
PRTDocInternalKey.DocumentPart AS DocumentPart,
PRTDocInternalKey.DocumentInfoRecord AS DocumentInfoRecordDocNumber,
PRT._OperationActivity AS _OperationActivity,
PRT._BillOfOperationsGroup AS _BillOfOperationsGroup,
PRT._BillOfOperationsType AS _BillOfOperationsType,
PRTDocInternalKey._ProductionResourceType AS _ProductionResourceType,
PRTDocInternalKey._DocumentNumber AS _DocumentNumber,
PRTDocInternalKey._DocumentType AS _DocumentType,
PRTDocInternalKey._DocumentVersion AS _DocumentVersion,
PRTDocInternalKey._DocumentInfoRecord AS _DocumentInfoRecord
FROM I_OpActyBOOProdnRsceToolAssgmt AS PRT
INNER JOIN I_BOOOperationPRTChangeState AS PRTChangeState ON /* join condition not captured in parsed metadata */
INNER JOIN I_DocumentPRTByInternalKey AS PRTDocInternalKey ON /* join condition not captured in parsed metadata */
;
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