C_ReExAssignCostCenter
Cost Center
C_ReExAssignCostCenter is a Consumption CDS View that provides data about "Cost Center" in SAP S/4HANA. It reads from 1 data source (I_CostCenter) and exposes 19 fields with key fields ControllingArea, CostCenter, ValidityEndDate. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CostCenter | CostCenter | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_Language | sylangu |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ControllingArea | _ControllingAreaText | $projection.ControllingArea = _ControllingAreaText.ControllingArea association[0..*] to I_CostCenterText as _Text on $projection.ControllingArea = _Text.ControllingArea and $projection.CostCenter = _Text.CostCenter and $projection.ValidityEndDate = _Text.ValidityEndDate |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | CREEXASSCOSTCNTR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Cost Center | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Search.searchable | true | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ControllingArea | I_CostCenter | ControllingArea | Controlling Area |
| KEY | CostCenter | I_CostCenter | CostCenter | Cost Center |
| KEY | ValidityEndDate | I_CostCenter | ValidityEndDate | ValidTo |
| ValidityStartDate | I_CostCenter | ValidityStartDate | Validity Start Date | |
| CompanyCode | I_CostCenter | CompanyCode | Receiver Company Code | |
| BusinessArea | I_CostCenter | BusinessArea | Business Area | |
| CostCenterCategory | I_CostCenter | CostCenterCategory | CCtr Category | |
| CostCtrResponsiblePersonName | I_CostCenter | CostCtrResponsiblePersonName | Person Resp. | |
| CostCtrResponsibleUser | I_CostCenter | CostCtrResponsibleUser | User Responsible | |
| CostCenterCurrency | I_CostCenter | CostCenterCurrency | Currency | |
| ProfitCenter | I_CostCenter | ProfitCenter | Profit Center | |
| Department | I_CostCenter | Department | Department | |
| Country | I_CostCenter | Country | Venue: Ctry/Reg | |
| CityName | I_CostCenter | CityName | Name | |
| Region | I_CostCenter | Region | Venue Region | |
| Language | I_CostCenter | Language | Report Text Language | |
| FunctionalArea | I_CostCenter | FunctionalArea | Sendr Fctl Area | |
| CostCenterName | ||||
| CostCenterDescription |
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_ReExAssignCostCenter.
-- 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: CREEXASSCOSTCNTR
-- Parameters: P_Language : sylangu
CREATE VIEW C_ReExAssignCostCenter AS
SELECT
CostCenter.ControllingArea AS ControllingArea,
CostCenter.CostCenter AS CostCenter,
CostCenter.ValidityEndDate AS ValidityEndDate,
CostCenter.ValidityStartDate AS ValidityStartDate,
CostCenter.CompanyCode AS CompanyCode,
CostCenter.BusinessArea AS BusinessArea,
CostCenter.CostCenterCategory AS CostCenterCategory,
CostCenter.CostCtrResponsiblePersonName AS CostCtrResponsiblePersonName,
CostCenter.CostCtrResponsibleUser AS CostCtrResponsibleUser,
CostCenter.CostCenterCurrency AS CostCenterCurrency,
CostCenter.ProfitCenter AS ProfitCenter,
CostCenter.Department AS Department,
CostCenter.Country AS Country,
CostCenter.CityName AS CityName,
CostCenter.Region AS Region,
CostCenter.Language AS Language,
CostCenter.FunctionalArea AS FunctionalArea,
_Text[1: Language = $parameters.P_Language].CostCenterName AS CostCenterName,
_Text[1: Language = $parameters.P_Language].CostCenterDescription AS CostCenterDescription
FROM I_CostCenter AS CostCenter
LEFT OUTER JOIN I_ControllingArea AS _ControllingAreaText ON ControllingArea = _ControllingAreaText.ControllingArea association[0..*] to I_CostCenterText as _Text on ControllingArea = _Text.ControllingArea AND CostCenter = _Text.CostCenter AND ValidityEndDate = _Text.ValidityEndDate -- association [0..1]
;
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