I_ShiftNoteDocumentLink
Shift Note Document Link
I_ShiftNoteDocumentLink is a Composite CDS View that provides data about "Shift Note Document Link" in SAP S/4HANA. It reads from 3 data sources (I_DocumentInfoRecord, I_DocumentInfoRecordObjectLink, I_ShiftNote) and exposes 25 fields with key fields DocumentInfoRecordDocType, DocumentInfoRecordDocVersion, DocumentInfoRecordDocNumber, DocumentInfoRecordDocPart. It has 4 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_DocumentInfoRecord | docu | inner |
| I_DocumentInfoRecordObjectLink | link | inner |
| I_ShiftNote | note | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ChangeMaster | _ChangeNumber | $projection.ChangeNumber = _ChangeNumber.ChangeNumber |
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_User | _ChangedByUser | $projection.LastChangedByUser = _ChangedByUser.UserID -- to child: attachments |
| [0..*] | I_DocumentInfoRecordAttachment | _DocumentAttachment | $projection.DocumentInfoRecordDocType = _DocumentAttachment.DocumentInfoRecordDocType and $projection.DocumentInfoRecordDocNumber = _DocumentAttachment.DocumentInfoRecordDocNumber and $projection.DocumentInfoRecordDocVersion = _DocumentAttachment.DocumentInfoRecordDocVersion and $projection.DocumentInfoRecordDocPart = _DocumentAttachment.DocumentInfoRecordDocPart |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Shift Note Document Link | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DocumentInfoRecordDocType | I_DocumentInfoRecord | DocumentInfoRecordDocType | Document Type |
| KEY | DocumentInfoRecordDocVersion | |||
| KEY | DocumentInfoRecordDocNumber | |||
| KEY | DocumentInfoRecordDocPart | |||
| DocumentInfoRecord | I_DocumentInfoRecord | DocumentInfoRecord | Document | |
| InternalDocumentStatus | I_DocumentInfoRecord | InternalDocumentStatus | Status | |
| LinkedSAPObject | I_DocumentInfoRecordObjectLink | LinkedSAPObject | Object | |
| LinkedSAPObjectKey | I_DocumentInfoRecordObjectLink | LinkedSAPObjectKey | SAP Object Key | |
| ChangeNumber | I_DocumentInfoRecord | ChangeNumber | Change Number | |
| CreationDateTime | ||||
| CreatedByUser | I_DocumentInfoRecord | CreatedByUser | User Name | |
| ChangedDateTime | ||||
| LastChangedByUser | I_DocumentInfoRecord | LastChangedByUser | User Name | |
| ShiftNoteID | I_ShiftNote | ShiftNoteID | ||
| ShiftNoteType | I_ShiftNote | ShiftNoteType | ||
| _DocumentAttachment | _DocumentAttachment | |||
| _ChangeNumber | _ChangeNumber | |||
| _CreatedByUser | _CreatedByUser | |||
| _ChangedByUser | _ChangedByUser | |||
| _Text | I_DocumentInfoRecordObjectLink | _Text | ||
| _DocType | I_DocumentInfoRecord | _DocType | ||
| _DocNumber | I_DocumentInfoRecord | _DocNumber | ||
| _DocVersion | I_DocumentInfoRecord | _DocVersion | ||
| _DocPart | I_DocumentInfoRecord | _DocPart | ||
| _DocDesc | I_DocumentInfoRecord | _DocDesc |
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_ShiftNoteDocumentLink.
-- 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.
CREATE VIEW I_ShiftNoteDocumentLink AS
SELECT
docu.DocumentInfoRecordDocType AS DocumentInfoRecordDocType,
cast(docu.DocumentInfoRecordDocVersion as dokvr preserving type) AS DocumentInfoRecordDocVersion,
cast(docu.DocumentInfoRecordDocNumber as doknr preserving type) AS DocumentInfoRecordDocNumber,
cast(docu.DocumentInfoRecordDocPart as doktl_d preserving type) AS DocumentInfoRecordDocPart,
docu.DocumentInfoRecord AS DocumentInfoRecord,
docu.InternalDocumentStatus AS InternalDocumentStatus,
link.LinkedSAPObject AS LinkedSAPObject,
link.LinkedSAPObjectKey AS LinkedSAPObjectKey,
docu.ChangeNumber AS ChangeNumber,
cast(docu.CreationDateTime as hp_created_at preserving type) AS CreationDateTime,
docu.CreatedByUser AS CreatedByUser,
cast(docu.ChangedDateTime as hp_changed_at preserving type) AS ChangedDateTime,
docu.LastChangedByUser AS LastChangedByUser,
note.ShiftNoteID AS ShiftNoteID,
note.ShiftNoteType AS ShiftNoteType,
link._Text AS _Text,
docu._DocType AS _DocType,
docu._DocNumber AS _DocNumber,
docu._DocVersion AS _DocVersion,
docu._DocPart AS _DocPart,
docu._DocDesc AS _DocDesc
FROM I_ShiftNote AS note
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_ChangeMaster AS _ChangeNumber ON ChangeNumber = _ChangeNumber.ChangeNumber -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_User AS _ChangedByUser ON LastChangedByUser = _ChangedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_DocumentInfoRecordAttachment AS _DocumentAttachment ON DocumentInfoRecordDocType = _DocumentAttachment.DocumentInfoRecordDocType AND DocumentInfoRecordDocNumber = _DocumentAttachment.DocumentInfoRecordDocNumber AND DocumentInfoRecordDocVersion = _DocumentAttachment.DocumentInfoRecordDocVersion AND DocumentInfoRecordDocPart = _DocumentAttachment.DocumentInfoRecordDocPart -- association [0..*]
;
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