R_ProjSrvcOrgCostCenter

DDL: R_PROJSRVCORGCOSTCENTER Type: view_entity BASIC

Cost Center

R_ProjSrvcOrgCostCenter is a Basic CDS View that provides data about "Cost Center" in SAP S/4HANA. It reads from 1 data source (/cpd/pwsc_orgpid) and exposes 4 fields with key fields ProjectServiceOrganization, ProjSrvcOrgCostCenter. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
/cpd/pwsc_orgpid /cpd/pwsc_orgpid from

Associations (1)

CardinalityTargetAliasCondition
[1..1] /cpd/pwsc_org_at _AdditionalAttribute _AdditionalAttribute.org_unit_id = $projection.ProjectServiceOrganization

Annotations (7)

NameValueLevelField
EndUserText.label Cost Center view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #ORGANIZATIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY ProjectServiceOrganization org_unit_id Service Org.
KEY ProjSrvcOrgCostCenter Org. Unit Key
ProjectServiceOrganizationUUID _AdditionalAttribute service_org_uuid Service Org UUID
ProjSrvcOrgIsMainCostCenter Default

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 R_ProjSrvcOrgCostCenter.
-- 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 R_ProjSrvcOrgCostCenter AS
SELECT
  org_unit_id AS ProjectServiceOrganization,
  cast(org_unit_key as /s4ppm/tv_svorg_kostl ) AS ProjSrvcOrgCostCenter,
  _AdditionalAttribute.service_org_uuid AS ProjectServiceOrganizationUUID,
  cast(default_val as /s4ppm/tv_svorg_ismaincostcntr) AS ProjSrvcOrgIsMainCostCenter
FROM /cpd/pwsc_orgpid
LEFT OUTER JOIN /cpd/pwsc_org_at AS _AdditionalAttribute ON _AdditionalAttribute.org_unit_id = ProjectServiceOrganization  -- association [1..1]
;