I_ShiftNoteReferenceObject
Shift Note Reference Object
I_ShiftNoteReferenceObject is a Composite CDS View that provides data about "Shift Note Reference Object" in SAP S/4HANA. It reads from 3 data sources (I_GnrcObjectRelationshipLink, I_GnrcObjectRelationshipRole, I_GnrcObjectRelationshipRole) and exposes 5 fields with key field ShiftNoteID. It has 2 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_GnrcObjectRelationshipLink | BinRel | from |
| I_GnrcObjectRelationshipRole | RelRoles_Ref | inner |
| I_GnrcObjectRelationshipRole | RelRoles_ShN | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ShiftNote | _ShiftNote | $projection.ShiftNoteID = _ShiftNote.ShiftNoteID |
| [0..*] | I_BusinessObjTypeText | _Text | $projection.ShiftNoteReferenceObjectType = _Text.BusinessObjectType |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Shift Note Reference Object | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ShiftNoteID | |||
| ShiftNoteReferenceObjectType | I_GnrcObjectRelationshipRole | GnrcObjRelshpRoleObjectType | ||
| ShiftNoteReferenceObjectKey | I_GnrcObjectRelationshipRole | GnrcObjRelshpRoleObjectKey | ||
| Associations_ShiftNote | ||||
| _Text | _Text |
@AccessControl.authorizationCheck: #NOT_REQUIRED //no personal or sensitive data
@EndUserText.label: 'Shift Note Reference Object'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #NONE
@ObjectModel.supportedCapabilities: [#CDS_MODELING_DATA_SOURCE, #SQL_DATA_SOURCE]
@ObjectModel.usageType: {serviceQuality: #B, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #COMPOSITE
/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK" ] } */
define view entity I_ShiftNoteReferenceObject
as select from I_GnrcObjectRelationshipLink as BinRel
inner join I_GnrcObjectRelationshipRole as RelRoles_ShN on RelRoles_ShN.GnrcObjectRelationshipRoleUUID = BinRel.GnrcObjRelationshipLinkRoleA
inner join I_GnrcObjectRelationshipRole as RelRoles_Ref on RelRoles_Ref.GnrcObjectRelationshipRoleUUID = BinRel.GnrcObjRelationshipLinkRoleB
association [1..1] to I_ShiftNote as _ShiftNote on $projection.ShiftNoteID = _ShiftNote.ShiftNoteID
association [0..*] to I_BusinessObjTypeText as _Text on $projection.ShiftNoteReferenceObjectType = _Text.BusinessObjectType
{
@ObjectModel.text.association: '_Text'
key cast( substring( RelRoles_ShN.GnrcObjRelshpRoleObjectKey,1,12 ) as cocf_sn_id preserving type) as ShiftNoteID,
RelRoles_Ref.GnrcObjRelshpRoleObjectType as ShiftNoteReferenceObjectType,
RelRoles_Ref.GnrcObjRelshpRoleObjectKey as ShiftNoteReferenceObjectKey,
-- Associations
_ShiftNote,
_Text
}
where RelRoles_Ref.GnrcObjectRelationshipRoleType = 'SHIFTNOTER';
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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