P_OrglChangeReportSegmenttoPC
Dependent Segment to Root ProfitCenter
P_OrglChangeReportSegmenttoPC is a Consumption CDS View that provides data about "Dependent Segment to Root ProfitCenter" in SAP S/4HANA. It reads from 1 data source (I_SegmentToProfitCenter) and exposes 20 fields with key fields ControllingArea, ProfitCenter, ValidityStartDate. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SegmentToProfitCenter | _SegmentToProfitCenter | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_ProfitCenter | _ProfitCenter | _ProfitCenter.ControllingArea = _SegmentToProfitCenter.ControllingArea and _ProfitCenter.ProfitCenter = _SegmentToProfitCenter.ProfitCenter and _ProfitCenter.ValidityStartDate = _SegmentToProfitCenter.ValidityStartDate |
| [0..*] | I_ProfitCenterText | _ProfitCenterText | _SegmentToProfitCenter.ControllingArea = _ProfitCenterText.ControllingArea and _SegmentToProfitCenter.ProfitCenter = _ProfitCenterText.ProfitCenter and _ProfitCenterText.ValidityEndDate = '99991231' |
| [0..*] | I_SegmentText | _SegmentText | _SegmentToProfitCenter.Segment = _SegmentText.Segment |
| [0..*] | I_SegmentText | _SegmentBeforeOrglChangeText | _SegmentToProfitCenter.SegmentBeforeOrglChange = _SegmentBeforeOrglChangeText.Segment |
| [0..*] | I_OrglChgReassignmentStsText | _OrglChgReassignmentStsText | $projection.OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | Dependent Segment to Root ProfitCenter | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ControllingArea | ControllingArea | Controlling Area | |
| KEY | ProfitCenter | ProfitCenter | Profit Center | |
| KEY | ValidityStartDate | ValidityStartDate | Validity Start Date | |
| DependentObjectID | Segment number | |||
| OrglChgRptDependentObjectType | ||||
| RootObjectID | Profit Center | |||
| OrglChgRptRootObjectType | ||||
| SemanticObject | ||||
| OrganizationalChange | OrganizationalChange | Organizational Change | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| Segment | Segment | Segment number | ||
| SegmentBeforeOrglChange | SegmentBeforeOrglChange | |||
| ControllingAreaName | _ControllingArea | ControllingAreaName | Long Text | |
| ProfitCenterName | ||||
| OrglChangeReassignmentStatus | OrglChangeReassignmentStatus | Status | ||
| OrglChgReassignmentStatusName | ||||
| _ControllingArea | _ControllingArea | |||
| _OrglChange | _OrglChange | |||
| _OrglChgReassignmentStatus | _OrglChgReassignmentStatus | |||
| _ProfitCtr | _ProfitCtr |
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 P_OrglChangeReportSegmenttoPC.
-- 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.
CREATE VIEW P_OrglChangeReportSegmenttoPC AS
SELECT
ControllingArea,
ProfitCenter,
ValidityStartDate,
cast ( Segment as finoc_object_id ) AS DependentObjectID,
cast( 'SG' as finoc_dependent_object_type ) AS OrglChgRptDependentObjectType,
cast ( ProfitCenter as finoc_object_id ) AS RootObjectID,
'PC' AS OrglChgRptRootObjectType,
cast( 'Segment' as finoc_semantic_object ) AS SemanticObject,
OrganizationalChange,
ValidityEndDate,
Segment,
SegmentBeforeOrglChange,
_ControllingArea.ControllingAreaName AS ControllingAreaName,
_ProfitCtr._Text[1:Language=$session.system_language].ProfitCenterName AS ProfitCenterName,
OrglChangeReassignmentStatus,
_OrglChgReassignmentStsText[1:Language=$session.system_language].OrglChgReassignmentStatusName AS OrglChgReassignmentStatusName
FROM I_SegmentToProfitCenter AS _SegmentToProfitCenter
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON _ProfitCenter.ControllingArea = _SegmentToProfitCenter.ControllingArea AND _ProfitCenter.ProfitCenter = _SegmentToProfitCenter.ProfitCenter AND _ProfitCenter.ValidityStartDate = _SegmentToProfitCenter.ValidityStartDate -- association [0..*]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterText ON _SegmentToProfitCenter.ControllingArea = _ProfitCenterText.ControllingArea AND _SegmentToProfitCenter.ProfitCenter = _ProfitCenterText.ProfitCenter AND _ProfitCenterText.ValidityEndDate = '99991231' -- association [0..*]
LEFT OUTER JOIN I_SegmentText AS _SegmentText ON _SegmentToProfitCenter.Segment = _SegmentText.Segment -- association [0..*]
LEFT OUTER JOIN I_SegmentText AS _SegmentBeforeOrglChangeText ON _SegmentToProfitCenter.SegmentBeforeOrglChange = _SegmentBeforeOrglChangeText.Segment -- association [0..*]
LEFT OUTER JOIN I_OrglChgReassignmentStsText AS _OrglChgReassignmentStsText ON OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus -- 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