C_ChgRecdLfcycStChgDocOvPg
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)
| Source | Alias | Join Type |
|---|---|---|
| P_LtstChgDocForChgRecByMnth | _LatestRecordByMnth | left_outer |
| P_LtstChgDocForChgRecdByQtr | _LatestRecordByQtr | left_outer |
| P_LtstChgDocForChgRecdByWk | _LatestRecordByWk | left_outer |
| I_ChgRecordLifeCycleStatusLog | Document | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
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