I_PrftCtrCompanyCodeAssignment

DDL: I_PRFTCTRCOMPANYCODEASSIGNMENT Type: view COMPOSITE

Company code assignment to profit center

I_PrftCtrCompanyCodeAssignment (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

PrftCtrCompanyCodeAssignment · Accounting and Financial Close

I_PrftCtrCompanyCodeAssignment is a Composite CDS View (Fact) that provides data about "Company code assignment to profit center" in SAP S/4HANA. It has 2 associations to related views.

SAP API Hub

StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI-FIO-GL-IS
CapabilitiesData Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities, Data Source for Data Extraction
PackageAccounting and Financial Close for SAP S/4HANA Cloud Private Edition

Documentation

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_PrftCtrSpcfcCoCodeAssgmt _PrftCtrSpcfcCoCodeAssgmt $projection.ProfitCenter = _PrftCtrSpcfcCoCodeAssgmt.ProfitCenter and $projection.ControllingArea = _PrftCtrSpcfcCoCodeAssgmt.ControllingArea
[0..*] I_CompanyCode _CompanyCode $projection.ControllingArea = _CompanyCode.ControllingArea

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName IFIPRFTCTRCCASGN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.sapObjectNodeType.name PrftCtrCompanyCodeAssignment view
Analytics.dataCategory #FACT view
Analytics.dataExtraction.enabled true view
EndUserText.label Company code assignment to profit center view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY ControllingArea ControllingArea Controlling Area
KEY ProfitCenter ProfitCenter Profit Center
KEY CompanyCode
JointVentureObjectType _PrftCtrSpcfcCoCodeAssgmt JointVentureObjectType Joint Venture Object Type
JointVentureClass _PrftCtrSpcfcCoCodeAssgmt JointVentureClass JIB/JIBE Class
JointVentureSubClass _PrftCtrSpcfcCoCodeAssgmt JointVentureSubClass JIB/JIBE Subclass A
JointVenture _PrftCtrSpcfcCoCodeAssgmt JointVenture Joint venture
JointVentureRecoveryCode _PrftCtrSpcfcCoCodeAssgmt JointVentureRecoveryCode Recovery Indicator
JointVentureEquityType _PrftCtrSpcfcCoCodeAssgmt JointVentureEquityType Joint Venture Equity Type
_ControllingArea _ControllingArea
_CompanyCode _CompanyCode

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 I_PrftCtrCompanyCodeAssignment.
-- 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 I_PrftCtrCompanyCodeAssignment AS
SELECT
  ControllingArea,
  ProfitCenter,
  coalesce( _PrftCtrSpcfcCoCodeAssgmt.CompanyCode, _CompanyCode.CompanyCode ) AS CompanyCode,
  _PrftCtrSpcfcCoCodeAssgmt.JointVentureObjectType AS JointVentureObjectType,
  _PrftCtrSpcfcCoCodeAssgmt.JointVentureClass AS JointVentureClass,
  _PrftCtrSpcfcCoCodeAssgmt.JointVentureSubClass AS JointVentureSubClass,
  _PrftCtrSpcfcCoCodeAssgmt.JointVenture AS JointVenture,
  _PrftCtrSpcfcCoCodeAssgmt.JointVentureRecoveryCode AS JointVentureRecoveryCode,
  _PrftCtrSpcfcCoCodeAssgmt.JointVentureEquityType AS JointVentureEquityType
LEFT OUTER JOIN I_PrftCtrSpcfcCoCodeAssgmt AS _PrftCtrSpcfcCoCodeAssgmt ON ProfitCenter = _PrftCtrSpcfcCoCodeAssgmt.ProfitCenter AND ControllingArea = _PrftCtrSpcfcCoCodeAssgmt.ControllingArea  -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON ControllingArea = _CompanyCode.ControllingArea  -- association [0..*]
;