I_ShiftNoteDocumentLink

DDL: I_SHIFTNOTEDOCUMENTLINK Type: view_entity COMPOSITE

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)

SourceAliasJoin Type
I_DocumentInfoRecord docu inner
I_DocumentInfoRecordObjectLink link inner
I_ShiftNote note from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;