A_CostCenter
Cost Center
A_CostCenter is a Basic CDS View that provides data about "Cost Center" in SAP S/4HANA. It reads from 1 data source (I_CostCenter) and exposes 32 fields with key fields ControllingArea, CostCenter, ValidityEndDate. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CostCenter | I_CostCenter | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | A_CostCenterText | _Text | $projection.ControllingArea = _Text.ControllingArea and $projection.CostCenter = _Text.CostCenter and $projection.ValidityEndDate = _Text.ValidityEndDate |
| [1..1] | E_CostCenter | _Extension | $projection.ControllingArea = _Extension.ControllingArea and $projection.CostCenter = _Extension.CostCenter and $projection.ValidityEndDate = _Extension.ValidityEndDate |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Cost Center | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | AFICOSTCENTER | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ControllingArea | ControllingArea | Controlling Area | |
| KEY | CostCenter | CostCenter | Cost Center | |
| KEY | ValidityEndDate | ValidityEndDate | ValidTo | |
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| BusinessArea | BusinessArea | Business Area | ||
| CostCtrResponsiblePersonName | CostCtrResponsiblePersonName | Person Resp. | ||
| CostCtrResponsibleUser | CostCtrResponsibleUser | User Responsible | ||
| CostCenterCurrency | CostCenterCurrency | Currency | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| Department | Department | Department | ||
| CostingSheet | CostingSheet | Costing Sheet | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| Country | Country | Venue: Ctry/Reg | ||
| PostalCode | PostalCode | Postal Code | ||
| StreetAddressName | StreetAddressName | Street | ||
| Region | Region | Venue Region | ||
| CityName | CityName | Name | ||
| CostCenterStandardHierArea | CostCenterStandardHierArea | Standard Hierarchy Node | ||
| CostCenterCategory | CostCenterCategory | CCtr Category | ||
| IsBlkdForPrimaryCostsPosting | IsBlkdForPrimaryCostsPosting | Lock Primary Costs Posting | ||
| IsBlkdForSecondaryCostsPosting | IsBlkdForSecondaryCostsPosting | Lock Secondary Costs Posting | ||
| IsBlockedForRevenuePosting | IsBlockedForRevenuePosting | Lock Revenue Posting | ||
| IsBlockedForCommitmentPosting | IsBlockedForCommitmentPosting | Lock Commitment Updates | ||
| IsBlockedForPlanPrimaryCosts | IsBlockedForPlanPrimaryCosts | Lock Primary Costs Planning | ||
| IsBlockedForPlanSecondaryCosts | IsBlockedForPlanSecondaryCosts | Lock Secondary Costs Planning | ||
| IsBlockedForPlanRevenues | IsBlockedForPlanRevenues | Lock Revenue Planning | ||
| ConsumptionQtyIsRecorded | ConsumptionQtyIsRecorded | Record Quantity | ||
| Language | Language | Report Text Language | ||
| CostCenterCreatedByUser | CostCenterCreatedByUser | Created By | ||
| CostCenterCreationDate | CostCenterCreationDate | Created On | ||
| _Text | _Text |
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 A_CostCenter.
-- 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: AFICOSTCENTER
CREATE VIEW A_CostCenter AS
SELECT
ControllingArea,
CostCenter,
ValidityEndDate,
ValidityStartDate,
CompanyCode,
BusinessArea,
CostCtrResponsiblePersonName,
CostCtrResponsibleUser,
CostCenterCurrency,
ProfitCenter,
Department,
CostingSheet,
FunctionalArea,
Country,
PostalCode,
StreetAddressName,
Region,
CityName,
CostCenterStandardHierArea,
CostCenterCategory,
IsBlkdForPrimaryCostsPosting,
IsBlkdForSecondaryCostsPosting,
IsBlockedForRevenuePosting,
IsBlockedForCommitmentPosting,
IsBlockedForPlanPrimaryCosts,
IsBlockedForPlanSecondaryCosts,
IsBlockedForPlanRevenues,
ConsumptionQtyIsRecorded,
Language,
CostCenterCreatedByUser,
CostCenterCreationDate
FROM I_CostCenter
LEFT OUTER JOIN A_CostCenterText AS _Text ON ControllingArea = _Text.ControllingArea AND CostCenter = _Text.CostCenter AND ValidityEndDate = _Text.ValidityEndDate -- association [0..*]
LEFT OUTER JOIN E_CostCenter AS _Extension ON ControllingArea = _Extension.ControllingArea AND CostCenter = _Extension.CostCenter AND ValidityEndDate = _Extension.ValidityEndDate -- association [1..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