I_ShiftNote
Shift Note
I_ShiftNote is a Composite CDS View that provides data about "Shift Note" in SAP S/4HANA. It reads from 1 data source (I_Notification) and exposes 28 fields with key field ShiftNoteID. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Notification | sn | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_User | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
| [0..1] | I_User | _ReportedByUser | $projection.ReportedByUser = _ReportedByUser.UserID |
| [1..1] | I_NotificationType | _ShiftNoteType | $projection.ShiftNoteType = _ShiftNoteType.NotificationType |
| [0..1] | I_WorkCenter | _WorkCenter | $projection.ShiftNoteWorkCenterInternalID = _WorkCenter.WorkCenterInternalID and $projection.ShiftNoteWorkCenterType = _WorkCenter.WorkCenterTypeCode -- to reference |
| [0..1] | I_ShiftNoteReferenceObject | _ReferenceObject | $projection.ShiftNoteID = _ReferenceObject.ShiftNoteID -- to documents |
| [0..*] | I_ShiftNoteDocumentLink | _DocumentLink | $projection.ShiftNoteID = _DocumentLink.ShiftNoteID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Consumption.ranked | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Search.searchable | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | Shift Note | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ShiftNoteID | |||
| CreatedByUser | I_Notification | CreatedByUser | User Name | |
| CreationDate | I_Notification | CreationDate | Time Stamp | |
| LastChangedByUser | I_Notification | LastChangedByUser | User Name | |
| LastChangedDate | I_Notification | LastChangedDate | Created On | |
| ChangedDateTime | I_Notification | ChangedDateTime | Time Stamp | |
| ReportingDate | I_Notification | NotificationReportingDate | Notif. Date | |
| ReportedByUser | I_Notification | ReportedByUser | Reported By | |
| ShiftNoteIsMarkedForDeletion | ||||
| ShiftNoteType | ||||
| ShiftNoteText | ||||
| NotificationCodeGroup | I_Notification | NotificationCodeGroup | Code Group | |
| ShiftNoteOrigin | I_Notification | ShiftNoteOrigin | Origin | |
| ShiftNoteWorkCenterType | I_Notification | ShiftNoteWorkCenterType | Object Type | |
| ShiftNoteWorkCenterInternalID | I_Notification | ShiftNoteWorkCenterInternalID | Object ID | |
| WorkCenter | _WorkCenter | WorkCenter | Work Center | |
| Plant | _WorkCenter | Plant | Valuation Area | |
| FunctionalLocation | ||||
| Equipment | I_Notification | Equipment | Equipment check | |
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _ReportedByUser | _ReportedByUser | |||
| _WorkCenter | _WorkCenter | |||
| _ShiftNoteType | _ShiftNoteType | |||
| _ReferenceObject | _ReferenceObject | |||
| _NotificationCatalog | ||||
| _NotificationCodeGroup | ||||
| _NotificationCode |
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_ShiftNote.
-- 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_ShiftNote AS
SELECT
cast(sn.Notification as cocf_sn_id preserving type) AS ShiftNoteID,
sn.CreatedByUser AS CreatedByUser,
sn.CreationDate AS CreationDate,
sn.LastChangedByUser AS LastChangedByUser,
sn.LastChangedDate AS LastChangedDate,
sn.ChangedDateTime AS ChangedDateTime,
sn.NotificationReportingDate AS ReportingDate,
sn.ReportedByUser AS ReportedByUser,
cast(sn.IsDeleted as aufloekz preserving type) AS ShiftNoteIsMarkedForDeletion,
cast(sn.NotificationType as cocf_sn_sntype preserving type) AS ShiftNoteType,
cast(sn.NotificationText as cocf_sn_sntext preserving type) AS ShiftNoteText,
sn.NotificationCodeGroup AS NotificationCodeGroup,
sn.ShiftNoteOrigin AS ShiftNoteOrigin,
sn.ShiftNoteWorkCenterType AS ShiftNoteWorkCenterType,
sn.ShiftNoteWorkCenterInternalID AS ShiftNoteWorkCenterInternalID,
_WorkCenter.WorkCenter AS WorkCenter,
_WorkCenter.Plant AS Plant,
cast(sn.FunctionalLocation as ps_s4_tplnr preserving type) AS FunctionalLocation,
sn.Equipment AS Equipment
FROM I_Notification AS sn
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [1..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_User AS _ReportedByUser ON ReportedByUser = _ReportedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_NotificationType AS _ShiftNoteType ON ShiftNoteType = _ShiftNoteType.NotificationType -- association [1..1]
LEFT OUTER JOIN I_WorkCenter AS _WorkCenter ON ShiftNoteWorkCenterInternalID = _WorkCenter.WorkCenterInternalID AND ShiftNoteWorkCenterType = _WorkCenter.WorkCenterTypeCode -- association [0..1]
LEFT OUTER JOIN I_ShiftNoteReferenceObject AS _ReferenceObject ON ShiftNoteID = _ReferenceObject.ShiftNoteID -- association [0..1]
LEFT OUTER JOIN I_ShiftNoteDocumentLink AS _DocumentLink ON ShiftNoteID = _DocumentLink.ShiftNoteID -- 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