I_LglCntntMNotesDet

DDL: I_LGLCNTNTMNOTESDET SQL: ILCMNOTESDET Type: view COMPOSITE Package: APPL_LCM_COMMON_NOTES

Notes Details of Legal Content Mgmt.

I_LglCntntMNotesDet is a Composite CDS View that provides data about "Notes Details of Legal Content Mgmt." in SAP S/4HANA. It reads from 4 data sources (I_LglCntntMNotes, Sgbt_Nte_Cds_Cont, I_LglCntntMNotesReplyCnt, I_LglCntntMNotesThreadTime) and exposes 21 fields with key field LglCntntMNoteUUID. It has 3 associations to related views. Part of development package APPL_LCM_COMMON_NOTES.

Data Sources (4)

SourceAliasJoin Type
I_LglCntntMNotes LCMNote from
Sgbt_Nte_Cds_Cont Note inner
I_LglCntntMNotesReplyCnt ReplyCnt left_outer
I_LglCntntMNotesThreadTime ThreadTime inner

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_LglCntntMNotesObjTypes _LglCntntMNotesObjTypes _LglCntntMNotesObjTypes.LglCntntMObjType = LCMNote.LglCntntMObjType
[0..1] I_LCMUserContactCard _CreatedByContactCard _CreatedByContactCard.ContactCardType = 'User' and _CreatedByContactCard.ContactCardID = $projection.LglCntntMCreatedByUser and _CreatedByContactCard.ContactCardRole = 'Creator'
[0..1] I_LCMUserContactCard _ChangedByContactCard _ChangedByContactCard.ContactCardType = 'User' and _ChangedByContactCard.ContactCardID = $projection.LglCntntMChangedByUser and _ChangedByContactCard.ContactCardRole = 'Creator'

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName ILCMNOTESDET view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Notes Details of Legal Content Mgmt. view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY LglCntntMNoteUUID LglCntntMNoteUUID Note UUID
LglCntntMParentNoteUUID I_LglCntntMNotes LglCntntMParentNoteUUID Parent Note UUID
LglCntntMTopNoteUUID I_LglCntntMNotes LglCntntMTopNoteUUID Top Note UUID
LglCntntMStdNoteUUID I_LglCntntMNotes LglCntntMStdNoteUUID Note ID
LglCntntMNoteLvl LglCntntMNoteLvl Note Level
LglCntntMObjType I_LglCntntMNotes LglCntntMObjType Obj. Types for Notes
LglCntntMObjTypeDesc _LglCntntMNotesObjTypes LglCntntMObjTypeDesc
LglCntntMObjUUID I_LglCntntMNotes LglCntntMObjUUID Object UUID
LglCntntMObjectID I_LglCntntMNotes LglCntntMObjectID Object ID
LglCntntMNoteReplyCnt I_LglCntntMNotesReplyCnt LglCntntMNoteReplyCnt
LglCntntMNotesThreadUTCDteTme I_LglCntntMNotesThreadTime LglCntntMNotesThreadUTCDteTme
LglCntntMObjNodeType objectnodetype SAP Obj Node Type
LglCntntMNoteType notetype Topic
MimeType MIMETYPE
LglCntntMNoteCntnt content Trusted Site Content
LglCntntMCreatedUTCDateTime I_LglCntntMNotes LglCntntMCreatedUTCDateTime Created On
LglCntntMCreatedByUser I_LglCntntMNotes LglCntntMCreatedByUser Created By
LglCntntMChangedUTCDateTime I_LglCntntMNotes LglCntntMChangedUTCDateTime Changed On
LglCntntMChangedByUser I_LglCntntMNotes LglCntntMChangedByUser Changed By
_ChangedByContactCard _ChangedByContactCard
_CreatedByContactCard _CreatedByContactCard

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_LglCntntMNotesDet.
-- 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: ILCMNOTESDET

CREATE VIEW I_LglCntntMNotesDet AS
SELECT
  LglCntntMNoteUUID,
  LCMNote.LglCntntMParentNoteUUID AS LglCntntMParentNoteUUID,
  LCMNote.LglCntntMTopNoteUUID AS LglCntntMTopNoteUUID,
  LCMNote.LglCntntMStdNoteUUID AS LglCntntMStdNoteUUID,
  LglCntntMNoteLvl,
  LCMNote.LglCntntMObjType AS LglCntntMObjType,
  _LglCntntMNotesObjTypes.LglCntntMObjTypeDesc AS LglCntntMObjTypeDesc,
  LCMNote.LglCntntMObjUUID AS LglCntntMObjUUID,
  LCMNote.LglCntntMObjectID AS LglCntntMObjectID,
  ReplyCnt.LglCntntMNoteReplyCnt AS LglCntntMNoteReplyCnt,
  ThreadTime.LglCntntMNotesThreadUTCDteTme AS LglCntntMNotesThreadUTCDteTme,
  objectnodetype AS LglCntntMObjNodeType,
  notetype AS LglCntntMNoteType,
  cast( mimetype as w3conttype ) AS MimeType,
  content AS LglCntntMNoteCntnt,
  LCMNote.LglCntntMCreatedUTCDateTime AS LglCntntMCreatedUTCDateTime,
  LCMNote.LglCntntMCreatedByUser AS LglCntntMCreatedByUser,
  LCMNote.LglCntntMChangedUTCDateTime AS LglCntntMChangedUTCDateTime,
  LCMNote.LglCntntMChangedByUser AS LglCntntMChangedByUser
FROM I_LglCntntMNotes AS LCMNote
INNER JOIN Sgbt_Nte_Cds_Cont AS Note ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_LglCntntMNotesReplyCnt AS ReplyCnt ON /* join condition not captured in parsed metadata */
INNER JOIN I_LglCntntMNotesThreadTime AS ThreadTime ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_LglCntntMNotesObjTypes AS _LglCntntMNotesObjTypes ON _LglCntntMNotesObjTypes.LglCntntMObjType = LCMNote.LglCntntMObjType  -- association [1..1]
LEFT OUTER JOIN I_LCMUserContactCard AS _CreatedByContactCard ON _CreatedByContactCard.ContactCardType = 'User' AND _CreatedByContactCard.ContactCardID = LglCntntMCreatedByUser AND _CreatedByContactCard.ContactCardRole = 'Creator'  -- association [0..1]
LEFT OUTER JOIN I_LCMUserContactCard AS _ChangedByContactCard ON _ChangedByContactCard.ContactCardType = 'User' AND _ChangedByContactCard.ContactCardID = LglCntntMChangedByUser AND _ChangedByContactCard.ContactCardRole = 'Creator'  -- association [0..1]
;