C_ChgRecdLfcycStChgDocOvPg

DDL: C_CHGRECDLFCYCSTCHGDOCOVPG SQL: CCHGRECLIFSTATUS Type: view CONSUMPTION

Change Record Lifecycle Status

C_ChgRecdLfcycStChgDocOvPg is a Consumption CDS View that provides data about "Change Record Lifecycle Status" in SAP S/4HANA. It reads from 4 data sources (P_LtstChgDocForChgRecByMnth, P_LtstChgDocForChgRecdByQtr, P_LtstChgDocForChgRecdByWk, I_ChgRecordLifeCycleStatusLog) and exposes 24 fields with key fields ChangeDocumentUUID, ChangeDocObjectClass, ChangeDocument. It has 5 associations to related views.

Data Sources (4)

SourceAliasJoin Type
P_LtstChgDocForChgRecByMnth _LatestRecordByMnth left_outer
P_LtstChgDocForChgRecdByQtr _LatestRecordByQtr left_outer
P_LtstChgDocForChgRecdByWk _LatestRecordByWk left_outer
I_ChgRecordLifeCycleStatusLog Document from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_ChgRecLifecycleStatusTxt _ChgRecLifecycleStatusTxt Document.ChangeRecordLifecycleStatus = _ChgRecLifecycleStatusTxt.ChangeRecordLifecycleStatus
[0..*] I_CalendarMonthText _CalendarMonthText _CalendarMonthText.CalendarMonth = Document.CalendarMonth and _CalendarMonthText.Language = $session.system_language
[0..*] I_CalendarQuarterText _CalendarQuarterText _CalendarQuarterText.CalendarQuarter = Document.CalendarQuarter and _CalendarQuarterText.Language = $session.system_language
[0..*] I_CalendarDate _Calendar01 _Calendar01.CalendarDate = Document.FourMonthsInThePast
[0..*] I_CalendarDate _Calendar02 _Calendar02.CalendarDate = Document.FourQuartersInThePast

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName CCHGRECLIFSTATUS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Change Record Lifecycle Status view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #CONSUMPTION view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY ChangeDocumentUUID I_ChgRecordLifeCycleStatusLog ChangeDocumentUUID
KEY ChangeDocObjectClass ChangeDocObjectClass Change Doc. Object
KEY ChangeDocument ChangeDocument Document Number
NmbrOfChgRecdByLfcycStatus Change Records Number
ChangeRecordLifecycleStatus ChangeRecordLifecycleStatus Issue Lifecycle
ChangeRecordLifecycleStatusTxt _ChgRecLifecycleStatusTxt ChangeRecordLifecycleStatusTxt
CreatedByUser CreatedByUser User Name
CreationDate I_ChgRecordLifeCycleStatusLog CreationDate Time Stamp
CreationTime I_ChgRecordLifeCycleStatusLog CreationTime Time of Change
ChangeRecord ChangeRecord Char20
ChangeRecordType ChangeRecordType Record Type
ChgRecordDescriptionText ChgRecordDescriptionText
Partner Partner With Partner
YearMonth I_ChgRecordLifeCycleStatusLog YearMonth Year Month
CalendarMonthName _CalendarMonthText CalendarMonthName
CalendarYear I_ChgRecordLifeCycleStatusLog CalendarYear Year
CalendarMonth I_ChgRecordLifeCycleStatusLog CalendarMonth Calendar Month
YearQuarter I_ChgRecordLifeCycleStatusLog YearQuarter Year Quarter
CalendarQuarterName _CalendarQuarterText CalendarQuarterName
YearWeek I_ChgRecordLifeCycleStatusLog YearWeek Year and Calendar Week
CalendarWeek I_ChgRecordLifeCycleStatusLog CalendarWeek Calendar Week
YearMonthName
YearQuarterName
YearWeekName

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_ChgRecdLfcycStChgDocOvPg.
-- 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: CCHGRECLIFSTATUS

CREATE VIEW C_ChgRecdLfcycStChgDocOvPg AS
SELECT
  Document.ChangeDocumentUUID AS ChangeDocumentUUID,
  ChangeDocObjectClass,
  ChangeDocument,
  cast( '1' as /plmb/number_of_change_records) AS NmbrOfChgRecdByLfcycStatus,
  ChangeRecordLifecycleStatus,
  _ChgRecLifecycleStatusTxt.ChangeRecordLifecycleStatusTxt AS ChangeRecordLifecycleStatusTxt,
  CreatedByUser,
  Document.CreationDate AS CreationDate,
  Document.CreationTime AS CreationTime,
  ChangeRecord,
  ChangeRecordType,
  ChgRecordDescriptionText,
  Partner,
  Document.YearMonth AS YearMonth,
  _CalendarMonthText.CalendarMonthName AS CalendarMonthName,
  Document.CalendarYear AS CalendarYear,
  Document.CalendarMonth AS CalendarMonth,
  Document.YearQuarter AS YearQuarter,
  _CalendarQuarterText.CalendarQuarterName AS CalendarQuarterName,
  Document.YearWeek AS YearWeek,
  Document.CalendarWeek AS CalendarWeek,
  CONCAT_WITH_SPACE(cast(Document.CalendarYear as abap.char( 4 )), _CalendarMonthText.CalendarMonthName, 1 ) AS YearMonthName,
  CONCAT_WITH_SPACE(cast(Document.CalendarYear as abap.char( 4 )), _CalendarQuarterText.CalendarQuarterName,1) AS YearQuarterName,
  CONCAT_WITH_SPACE(cast(Document.CalendarYear as abap.char( 4 )), CONCAT( 'CW', cast(Document.CalendarWeek as abap.char(2)) ),1) AS YearWeekName
FROM I_ChgRecordLifeCycleStatusLog AS Document
LEFT OUTER JOIN P_LtstChgDocForChgRecdByWk AS _LatestRecordByWk ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_LtstChgDocForChgRecByMnth AS _LatestRecordByMnth ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_LtstChgDocForChgRecdByQtr AS _LatestRecordByQtr ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ChgRecLifecycleStatusTxt AS _ChgRecLifecycleStatusTxt ON Document.ChangeRecordLifecycleStatus = _ChgRecLifecycleStatusTxt.ChangeRecordLifecycleStatus  -- association [0..1]
LEFT OUTER JOIN I_CalendarMonthText AS _CalendarMonthText ON _CalendarMonthText.CalendarMonth = Document.CalendarMonth AND _CalendarMonthText.Language = $session.system_language  -- association [0..*]
LEFT OUTER JOIN I_CalendarQuarterText AS _CalendarQuarterText ON _CalendarQuarterText.CalendarQuarter = Document.CalendarQuarter AND _CalendarQuarterText.Language = $session.system_language  -- association [0..*]
LEFT OUTER JOIN I_CalendarDate AS _Calendar01 ON _Calendar01.CalendarDate = Document.FourMonthsInThePast  -- association [0..*]
LEFT OUTER JOIN I_CalendarDate AS _Calendar02 ON _Calendar02.CalendarDate = Document.FourQuartersInThePast  -- association [0..*]
;