P_MfgOrderDocInfoRecdObjLink
P_MfgOrderDocInfoRecdObjLink is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_DocumentInfoRecord, I_DocumentInfoRecordObjectLink, P_MfgOrdLinkedSAPObjKeyRnge) and exposes 44 fields with key fields LinkedSAPObjectKey, LinkedSAPObject, DocumentType, DocumentInfoRecord, DocumentPart. It has 10 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_DocumentInfoRecord | docu | inner |
| I_DocumentInfoRecordObjectLink | link | inner |
| P_MfgOrdLinkedSAPObjKeyRnge | ord | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ManufacturingOrder | _MfgOrder | $projection.ManufacturingOrder = _MfgOrder.ManufacturingOrder |
| [1..1] | I_DocumentInfoRecordDocType | _DocumentType | $projection.DocumentType = _DocumentType.DocumentInfoRecordDocType |
| [1..1] | I_DocumentInfoRecordDocNumber | _DocumentNumber | $projection.DocumentType = _DocumentNumber.DocumentInfoRecordDocType and $projection.DocumentInfoRecord = _DocumentNumber.DocumentInfoRecordDocNumber |
| [1..1] | I_DocumentInfoRecordDocVersion | _DocumentVersion | $projection.DocumentType = _DocumentVersion.DocumentInfoRecordDocType and $projection.DocumentInfoRecord = _DocumentVersion.DocumentInfoRecordDocNumber and $projection.DocumentVersion = _DocumentVersion.DocumentInfoRecordDocVersion |
| [1..1] | I_DocumentInfoRecordDocPrt | _DocumentPart | $projection.DocumentType = _DocumentPart.DocumentInfoRecordDocType and $projection.DocumentInfoRecord = _DocumentPart.DocumentInfoRecordDocNumber and $projection.DocumentVersion = _DocumentPart.DocumentInfoRecordDocVersion and $projection.DocumentPart = _DocumentPart.DocumentInfoRecordDocPart |
| [0..1] | I_DocumentInfoRecordDocStatus | _DocumentStatus | $projection.DocumentType = _DocumentStatus.DocumentInfoRecordDocType and $projection.InternalDocumentStatus = _DocumentStatus.InternalDocumentStatus |
| [0..*] | I_DocumentInfoRecordDesc | _DocumentText | $projection.DocumentType = _DocumentText.DocumentInfoRecordDocType and $projection.DocumentInfoRecord = _DocumentText.DocumentInfoRecordDocNumber and $projection.DocumentVersion = _DocumentText.DocumentInfoRecordDocVersion and $projection.DocumentPart = _DocumentText.DocumentInfoRecordDocPart |
| [0..1] | I_ChangeMaster | _ChangeNumber | $projection.ChangeNumber = _ChangeNumber.ChangeNumber |
| [0..1] | I_User | _CreatedUser | $projection.CreatedByUser = _CreatedUser.UserID |
| [0..1] | I_User | _ChangedUser | $projection.LastChangedByUser = _ChangedUser.UserID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPPMFGORDDOCOBJL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.lifecycle.contract.type | #NONE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LinkedSAPObjectKey | I_DocumentInfoRecordObjectLink | LinkedSAPObjectKey | SAP Object Key |
| KEY | LinkedSAPObject | I_DocumentInfoRecordObjectLink | LinkedSAPObject | Object |
| KEY | DocumentType | I_DocumentInfoRecordObjectLink | DocumentInfoRecordDocType | Document Type |
| KEY | DocumentInfoRecord | I_DocumentInfoRecordObjectLink | DocumentInfoRecordDocNumber | Document |
| KEY | DocumentPart | I_DocumentInfoRecordObjectLink | DocumentInfoRecordDocPart | Document Part |
| KEY | DocumentVersion | I_DocumentInfoRecordObjectLink | DocumentInfoRecordDocVersion | Doc. Version |
| CreationDateTime | I_DocumentInfoRecordObjectLink | CreationDateTime | Timestamp | |
| CreatedByUser | I_DocumentInfoRecordObjectLink | CreatedByUser | User Name | |
| ChangedDateTime | I_DocumentInfoRecordObjectLink | ChangedDateTime | Time Stamp | |
| LastChangedByUser | I_DocumentInfoRecordObjectLink | LastChangedByUser | User Name | |
| InternalDocumentStatus | I_DocumentInfoRecord | InternalDocumentStatus | Status | |
| ChangeNumber | I_DocumentInfoRecord | ChangeNumber | Change Number | |
| AuthorizationGroup | I_DocumentInfoRecord | AuthorizationGroup | AuthorizGroup | |
| ResponsiblePersonName | I_DocumentInfoRecord | ResponsiblePersonName | User | |
| LaboratoryOrDesignOffice | I_DocumentInfoRecord | LaboratoryOrDesignOffice | Lab/Office | |
| Plant | I_DocumentInfoRecord | Plant | Valuation Area | |
| DocInfoRecdLinkStatus | I_DocumentInfoRecordObjectLink | DocInfoRecdLinkStatus | Link status | |
| DocInfoRecdObjectLinkStatus | I_DocumentInfoRecordObjectLink | DocInfoRecdObjectLinkStatus | Object link status | |
| ObjectTypeDatabaseTable | I_DocumentInfoRecordObjectLink | ObjectTypeDatabaseTable | Table | |
| IsDefaultDocument | I_DocumentInfoRecordObjectLink | IsDefaultDocument | View indocator | |
| DocInfoRecdIsMarkedForDeletion | I_DocumentInfoRecordObjectLink | DocInfoRecdIsMarkedForDeletion | Deletion ind. | |
| ManufacturingOrder | P_MfgOrdLinkedSAPObjKeyRnge | ManufacturingOrder | Order | |
| MfgOrderLinkedObjType | ||||
| ManufacturingOrderItem | ||||
| ManufacturingOrderSequence | ||||
| ManufacturingOrderOperation | ||||
| OrderOperationInternalID | ||||
| OpActyNtwkElementExternalID | ||||
| SerialNumber | ||||
| ManufacturingOrderCategory | P_MfgOrdLinkedSAPObjKeyRnge | ManufacturingOrderCategory | ||
| ManufacturingOrderType | P_MfgOrdLinkedSAPObjKeyRnge | ManufacturingOrderType | ||
| _MfgOrder | _MfgOrder | |||
| _DocumentType | _DocumentType | |||
| _DocumentNumber | _DocumentNumber | |||
| _DocumentVersion | _DocumentVersion | |||
| _DocumentPart | _DocumentPart | |||
| _DocumentStatus | _DocumentStatus | |||
| _DocumentText | _DocumentText | |||
| _CreatedUser | _CreatedUser | |||
| _ChangedUser | _ChangedUser | |||
| _ChangeNumber | _ChangeNumber | |||
| _MfgOrderCategory | P_MfgOrdLinkedSAPObjKeyRnge | _MfgOrderCategory | ||
| _MfgOrderType | P_MfgOrdLinkedSAPObjKeyRnge | _MfgOrderType | ||
| _Text | I_DocumentInfoRecordObjectLink | _DocumentInfoRecordDesc |
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 P_MfgOrderDocInfoRecdObjLink.
-- 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: PPPMFGORDDOCOBJL
CREATE VIEW P_MfgOrderDocInfoRecdObjLink AS
SELECT
link.LinkedSAPObjectKey AS LinkedSAPObjectKey,
link.LinkedSAPObject AS LinkedSAPObject,
link.DocumentInfoRecordDocType AS DocumentType,
link.DocumentInfoRecordDocNumber AS DocumentInfoRecord,
link.DocumentInfoRecordDocPart AS DocumentPart,
link.DocumentInfoRecordDocVersion AS DocumentVersion,
link.CreationDateTime AS CreationDateTime,
link.CreatedByUser AS CreatedByUser,
link.ChangedDateTime AS ChangedDateTime,
link.LastChangedByUser AS LastChangedByUser,
docu.InternalDocumentStatus AS InternalDocumentStatus,
docu.ChangeNumber AS ChangeNumber,
docu.AuthorizationGroup AS AuthorizationGroup,
docu.ResponsiblePersonName AS ResponsiblePersonName,
docu.LaboratoryOrDesignOffice AS LaboratoryOrDesignOffice,
docu.Plant AS Plant,
link.DocInfoRecdLinkStatus AS DocInfoRecdLinkStatus,
link.DocInfoRecdObjectLinkStatus AS DocInfoRecdObjectLinkStatus,
link.ObjectTypeDatabaseTable AS ObjectTypeDatabaseTable,
link.IsDefaultDocument AS IsDefaultDocument,
link.DocInfoRecdIsMarkedForDeletion AS DocInfoRecdIsMarkedForDeletion,
ord.ManufacturingOrder AS ManufacturingOrder,
substring(link.LinkedSAPObjectKey, 13, 1) AS MfgOrderLinkedObjType,
substring(link.LinkedSAPObjectKey, 14, 4) AS ManufacturingOrderItem,
substring(link.LinkedSAPObjectKey, 18, 6) AS ManufacturingOrderSequence,
substring(link.LinkedSAPObjectKey, 24, 4) AS ManufacturingOrderOperation,
substring(link.LinkedSAPObjectKey, 28, 8) AS OrderOperationInternalID,
substring(link.LinkedSAPObjectKey, 41,10) AS OpActyNtwkElementExternalID,
substring(link.LinkedSAPObjectKey, 51,18) AS SerialNumber,
ord.ManufacturingOrderCategory AS ManufacturingOrderCategory,
ord.ManufacturingOrderType AS ManufacturingOrderType,
ord._MfgOrderCategory AS _MfgOrderCategory,
ord._MfgOrderType AS _MfgOrderType,
link._DocumentInfoRecordDesc AS _Text
FROM P_MfgOrdLinkedSAPObjKeyRnge AS ord
INNER JOIN I_DocumentInfoRecordObjectLink AS link ON /* join condition not captured in parsed metadata */
INNER JOIN I_DocumentInfoRecord AS docu ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ManufacturingOrder AS _MfgOrder ON ManufacturingOrder = _MfgOrder.ManufacturingOrder -- association [1..1]
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_DocumentInfoRecordDocPrt AS _DocumentPart ON DocumentType = _DocumentPart.DocumentInfoRecordDocType AND DocumentInfoRecord = _DocumentPart.DocumentInfoRecordDocNumber AND DocumentVersion = _DocumentPart.DocumentInfoRecordDocVersion AND DocumentPart = _DocumentPart.DocumentInfoRecordDocPart -- association [1..1]
LEFT OUTER JOIN I_DocumentInfoRecordDocStatus AS _DocumentStatus ON DocumentType = _DocumentStatus.DocumentInfoRecordDocType AND InternalDocumentStatus = _DocumentStatus.InternalDocumentStatus -- association [0..1]
LEFT OUTER JOIN I_DocumentInfoRecordDesc AS _DocumentText ON DocumentType = _DocumentText.DocumentInfoRecordDocType AND DocumentInfoRecord = _DocumentText.DocumentInfoRecordDocNumber AND DocumentVersion = _DocumentText.DocumentInfoRecordDocVersion AND DocumentPart = _DocumentText.DocumentInfoRecordDocPart -- association [0..*]
LEFT OUTER JOIN I_ChangeMaster AS _ChangeNumber ON ChangeNumber = _ChangeNumber.ChangeNumber -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedUser ON CreatedByUser = _CreatedUser.UserID -- association [0..1]
LEFT OUTER JOIN I_User AS _ChangedUser ON LastChangedByUser = _ChangedUser.UserID -- 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