C_MaintNotificationChgHistory

DDL: C_MAINTNOTIFICATIONCHGHISTORY SQL: CMNOTIFCHNHIST Type: view CONSUMPTION

Maint. Notification Change History

C_MaintNotificationChgHistory is a Consumption CDS View that provides data about "Maint. Notification Change History" in SAP S/4HANA. It has 4 associations to related views.

Associations (4)

CardinalityTargetAliasCondition
[0..*] I_ChangeDocFieldNamesT _ChangeDocFieldNamesT $projection.DatabaseTable = _ChangeDocFieldNamesT.DatabaseTable and $projection.ChangeDocDatabaseTableField = _ChangeDocFieldNamesT.Value
[0..*] I_ChangeDocChangeIndT _ChangeDocChangeIndT $projection.ChangeDocItemChangeType = _ChangeDocChangeIndT.Value
[0..*] I_MaintObjectChgTypeCodeText _MaintObjectChgTypeCodeText $projection.MaintObjectChangeTypeCode = _MaintObjectChgTypeCodeText.MaintObjectChangeTypeCode
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CMNOTIFCHNHIST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Maint. Notification Change History view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY ChangeDocObject ChangeDocObject Object Value
KEY ChangeDocument ChangeDocument Document Number
KEY DatabaseTable DatabaseTable Table Name
KEY ChangeDocDatabaseTableField ChangeDocDatabaseTableField
KEY ChangeDocItemChangeType ChangeDocItemChangeType Activity
KEY CreationDateTime
KEY ChangeDocTableKey ChangeDocTableKey
MaintObjectChangeTypeCode MaintObjectChangeTypeCode Edit Type
MaintObjectChangeTypeCodeText
NotificationText Short Description
CreatedByUser CreatedByUser User Name
UserDescription _CreatedByUser UserDescription Full Name
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
ChangeDocNewFieldValue ChangeDocNewFieldValue
ChangeDocPreviousFieldValue ChangeDocPreviousFieldValue
ChangeDocNewFieldValueText
ChangeDocPrevFieldValueText
ChangeDocObjectClass ChangeDocObjectClass Change Doc. Object
Class Class User Group
StatusName StatusName
StatusProfile StatusProfile Status Profile
StatusIsInactive StatusIsInactive
_ChangeDocFieldNamesT _ChangeDocFieldNamesT
_ChangeDocChangeIndT _ChangeDocChangeIndT
_MaintObjectChgTypeCodeText _MaintObjectChgTypeCodeText

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 C_MaintNotificationChgHistory.
-- 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: CMNOTIFCHNHIST

CREATE VIEW C_MaintNotificationChgHistory AS
SELECT
  ChangeDocObject,
  ChangeDocument,
  DatabaseTable,
  ChangeDocDatabaseTableField,
  ChangeDocItemChangeType,
  cast (dats_tims_to_tstmp( CreationDate, CreationTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL') as tzntstmps preserving type ) AS CreationDateTime,
  ChangeDocTableKey,
  MaintObjectChangeTypeCode,
  _MaintObjectChgTypeCodeText[1:Language = $session.system_language ].MaintObjectChangeTypeCodeText AS MaintObjectChangeTypeCodeText,
  cast ( '' as abap.char(200)) AS NotificationText,
  CreatedByUser,
  _CreatedByUser.UserDescription AS UserDescription,
  CreationDate,
  CreationTime,
  ChangeDocNewFieldValue,
  ChangeDocPreviousFieldValue,
  cast('' as cdfldvaln) AS ChangeDocNewFieldValueText,
  cast('' as cdfldvalo) AS ChangeDocPrevFieldValueText,
  ChangeDocObjectClass,
  Class,
  StatusName,
  StatusProfile,
  StatusIsInactive
LEFT OUTER JOIN I_ChangeDocFieldNamesT AS _ChangeDocFieldNamesT ON DatabaseTable = _ChangeDocFieldNamesT.DatabaseTable AND ChangeDocDatabaseTableField = _ChangeDocFieldNamesT.Value  -- association [0..*]
LEFT OUTER JOIN I_ChangeDocChangeIndT AS _ChangeDocChangeIndT ON ChangeDocItemChangeType = _ChangeDocChangeIndT.Value  -- association [0..*]
LEFT OUTER JOIN I_MaintObjectChgTypeCodeText AS _MaintObjectChgTypeCodeText ON MaintObjectChangeTypeCode = _MaintObjectChgTypeCodeText.MaintObjectChangeTypeCode  -- association [0..*]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
;