C_ProfitCenterChangeDocument
Consumption: Profit Center Change Doc
C_ProfitCenterChangeDocument is a Consumption CDS View that provides data about "Consumption: Profit Center Change Doc" in SAP S/4HANA. It reads from 2 data sources (P_PctrChangeDocument, P_PctrChangeDocItem) and exposes 20 fields with key fields ChangeDocObject, ChangeDocObjectClass, ChangeDocument, DatabaseTable, ChangeDocTableKey. It has 2 associations to related views. It is exposed through 1 OData service (ASQL_F3516). Part of development package ODATA_PROFIT_CENTER_V2.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_PctrChangeDocument | _ProfitCenterChangeDocument | inner |
| P_PctrChangeDocItem | _ProfitCtrChangeDocItem | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ChangeDocFieldNamesT | _DatabaseTblFieldText | _DatabaseTblFieldText.DatabaseTable = _ProfitCtrChangeDocItem.ObjectDatabaseTable and _DatabaseTblFieldText.Value = _ProfitCtrChangeDocItem.DatabaseTableFieldName and _DatabaseTblFieldText.Language = $session.system_language |
| [0..1] | I_UserContactCard | _UserContactCard | $projection.CreatedByUser = _UserContactCard.ContactCardID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CFIPRFTCTRCHGDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| UI.headerInfo.typeName | Change Document | view | |
| UI.headerInfo.typeNamePlural | Change Documents | view | |
| EndUserText.label | Consumption: Profit Center Change Doc | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F3516 | ASQL_F3516 | C2 | NOT_RELEASED |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChangeDocObject | P_PctrChangeDocItem | ChangeDocObject | Object Value |
| KEY | ChangeDocObjectClass | P_PctrChangeDocItem | ChangeDocObjectClass | Change Doc. Object |
| KEY | ChangeDocument | P_PctrChangeDocItem | ChangeDocument | Document Number |
| KEY | DatabaseTable | P_PctrChangeDocItem | DatabaseTable | Table Name |
| KEY | ChangeDocTableKey | P_PctrChangeDocItem | ChangeDocTableKey | |
| KEY | ChangeDocDatabaseTableField | P_PctrChangeDocItem | ChangeDocDatabaseTableField | |
| KEY | ChangeDocItemChangeType | |||
| ChangeDocItemChangeTypeText | P_PctrChangeDocItem | ChangeDocItemChangeTypeText | User Group | |
| ChangeDocNewFieldValue | P_PctrChangeDocItem | ChangeDocNewFieldValue | ||
| ChangeDocPreviousFieldValue | P_PctrChangeDocItem | ChangeDocPreviousFieldValue | ||
| FullName | _UserContactCard | FullName | Name | |
| CreatedByUser | P_PctrChangeDocument | CreatedByUser | User Name | |
| CreationDate | P_PctrChangeDocument | CreationDate | Time Stamp | |
| CreationTime | P_PctrChangeDocument | CreationTime | Time of Change | |
| ChangeDocumentSAPClient | P_PctrChangeDocItem | ChangeDocumentSAPClient | ||
| ControllingArea | P_PctrChangeDocItem | ControllingArea | Controlling Area | |
| ProfitCenter | P_PctrChangeDocItem | ProfitCenter | Profit Center | |
| ValidityStartDate | P_PctrChangeDocItem | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | P_PctrChangeDocItem | ValidityEndDate | ValidTo | |
| _UserContactCard | _UserContactCard |
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_ProfitCenterChangeDocument.
-- 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: CFIPRFTCTRCHGDOC
CREATE VIEW C_ProfitCenterChangeDocument AS
SELECT
_ProfitCtrChangeDocItem.ChangeDocObject AS ChangeDocObject,
_ProfitCtrChangeDocItem.ChangeDocObjectClass AS ChangeDocObjectClass,
_ProfitCtrChangeDocItem.ChangeDocument AS ChangeDocument,
_ProfitCtrChangeDocItem.DatabaseTable AS DatabaseTable,
_ProfitCtrChangeDocItem.ChangeDocTableKey AS ChangeDocTableKey,
_ProfitCtrChangeDocItem.ChangeDocDatabaseTableField AS ChangeDocDatabaseTableField,
cast ( _ProfitCtrChangeDocItem.ChangeDocItemChangeType as fac_mpc_cdchngind preserving type ) AS ChangeDocItemChangeType,
_ProfitCtrChangeDocItem.ChangeDocItemChangeTypeText AS ChangeDocItemChangeTypeText,
_ProfitCtrChangeDocItem.ChangeDocNewFieldValue AS ChangeDocNewFieldValue,
_ProfitCtrChangeDocItem.ChangeDocPreviousFieldValue AS ChangeDocPreviousFieldValue,
_UserContactCard.FullName AS FullName,
_ProfitCenterChangeDocument.CreatedByUser AS CreatedByUser,
_ProfitCenterChangeDocument.CreationDate AS CreationDate,
_ProfitCenterChangeDocument.CreationTime AS CreationTime,
_ProfitCtrChangeDocItem.ChangeDocumentSAPClient AS ChangeDocumentSAPClient,
_ProfitCtrChangeDocItem.ControllingArea AS ControllingArea,
_ProfitCtrChangeDocItem.ProfitCenter AS ProfitCenter,
_ProfitCtrChangeDocItem.ValidityStartDate AS ValidityStartDate,
_ProfitCtrChangeDocItem.ValidityEndDate AS ValidityEndDate
FROM P_PctrChangeDocItem AS _ProfitCtrChangeDocItem
INNER JOIN P_PctrChangeDocument AS _ProfitCenterChangeDocument ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ChangeDocFieldNamesT AS _DatabaseTblFieldText ON _DatabaseTblFieldText.DatabaseTable = _ProfitCtrChangeDocItem.ObjectDatabaseTable AND _DatabaseTblFieldText.Value = _ProfitCtrChangeDocItem.DatabaseTableFieldName AND _DatabaseTblFieldText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _UserContactCard ON CreatedByUser = _UserContactCard.ContactCardID -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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