A_CostCenter

DDL: A_COSTCENTER SQL: AFICOSTCENTER Type: view BASIC

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)

SourceAliasJoin Type
I_CostCenter I_CostCenter from

Associations (2)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;