C_PrftCtrCompCodeAssgmtTP

DDL: C_PRFTCTRCOMPCODEASSGMTTP SQL: CFIPCTRCOMASTP Type: view CONSUMPTION Package: ODATA_PROFIT_CENTER_V2

Assignment of PrftCtr to company code

C_PrftCtrCompCodeAssgmtTP is a Consumption CDS View that provides data about "Assignment of PrftCtr to company code" in SAP S/4HANA. It reads from 1 data source (I_PrftCtrCompCodeAssgmtTP) and exposes 25 fields with key fields ControllingArea, ProfitCenter, CompanyCode, ValidityEndDate. It has 7 associations to related views. It is exposed through 1 OData service (ASQL_F3516). Part of development package ODATA_PROFIT_CENTER_V2.

Data Sources (1)

SourceAliasJoin Type
I_PrftCtrCompCodeAssgmtTP I_PrftCtrCompCodeAssgmtTP from

Associations (7)

CardinalityTargetAliasCondition
[1..1] C_ProfitCenterTP _ParentNode $projection.ControllingArea = _ParentNode.ControllingArea and $projection.ProfitCenter = _ParentNode.ProfitCenter and $projection.ValidityEndDate = _ParentNode.ValidityEndDate
[0..1] I_JointVentureMaster _JointVentureMaster $projection.JointVenture = _JointVentureMaster.JointVenture and $projection.CompanyCode = _JointVentureMaster.CompanyCode
[0..1] I_JointVentureRecovery _JointVentureRecovery $projection.JointVentureRecoveryCode = _JointVentureRecovery.JointVentureRecoveryCode and $projection.CompanyCode = _JointVentureRecovery.CompanyCode
[0..1] I_JntVntrEquityTypeMaster _JntVntrEquityTypeMaster $projection.JointVentureEquityType = _JntVntrEquityTypeMaster.JointVentureEquityType and $projection.CompanyCode = _JntVntrEquityTypeMaster.CompanyCode
[0..1] I_JntVntrCostCtrType _JntVntrCostCtrType $projection.JointVentureObjectType = _JntVntrCostCtrType.JntVntrCostCtrType and $projection.CompanyCode = _JntVntrCostCtrType.CompanyCode
[0..1] I_JntIntrstBillgClass _JntIntrstBillgClass $projection.JointVentureClass = _JntIntrstBillgClass.JntIntrstBillgClass and $projection.CompanyCode = _JntIntrstBillgClass.CompanyCode
[0..1] I_JntIntrstBillgSubclass _JntIntrstBillgSubclass $projection.CompanyCode = _JntIntrstBillgSubclass.CompanyCode and $projection.JointVentureClass = _JntIntrstBillgSubclass.JntIntrstBillgClass and $projection.JointVentureSubClass = _JntIntrstBillgSubclass.JntIntrstBillgSubClass

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName CFIPCTRCOMASTP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Assignment of PrftCtr to company code view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled false view
ObjectModel.deleteEnabled false view
ObjectModel.updateEnabled true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #CONSUMPTION view
Search.searchable true view
UI.headerInfo.typeName Item view
UI.headerInfo.typeNamePlural Items view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F3516 ASQL_F3516 C2 NOT_RELEASED

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY ControllingArea ControllingArea Controlling Area
KEY ProfitCenter ProfitCenter Profit Center
KEY CompanyCode CompanyCode Receiver Company Code
KEY ValidityEndDate ValidityEndDate ValidTo
CompanyCodeName CompanyCodeName Company Name
PrftCtrIsAssignedToCompCode PrftCtrIsAssignedToCompCode Assigned
JointVenture JointVenture Joint venture
JointVentureName _JointVentureMaster JointVentureName
JointVentureRecoveryCode JointVentureRecoveryCode Recovery Ind.
JointVentureRecoveryCodeName
JointVentureEquityType JointVentureEquityType Joint Venture Equity Type
JointVentureEquityTypeName
JointVentureObjectType JointVentureObjectType JV Object Type
JntVntrCostCtrTypeText
JointVentureClass JointVentureClass JIB/JIBE Class
JntIntrstBillgClassText
JointVentureSubClass JointVentureSubClass JIB/JIBE SbClsA
JntIntrstBillgSubClassText
_ParentNode _ParentNode
_JointVentureMaster _JointVentureMaster
_JointVentureRecovery _JointVentureRecovery
_JntVntrEquityTypeMaster _JntVntrEquityTypeMaster
_JntVntrCostCtrType _JntVntrCostCtrType
_JntIntrstBillgClass _JntIntrstBillgClass
_JntIntrstBillgSubclass _JntIntrstBillgSubclass

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_PrftCtrCompCodeAssgmtTP.
-- 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: CFIPCTRCOMASTP

CREATE VIEW C_PrftCtrCompCodeAssgmtTP AS
SELECT
  ControllingArea,
  ProfitCenter,
  CompanyCode,
  ValidityEndDate,
  CompanyCodeName,
  PrftCtrIsAssignedToCompCode,
  JointVenture,
  _JointVentureMaster.JointVentureName AS JointVentureName,
  JointVentureRecoveryCode,
  _JointVentureRecovery._Text[1:Language = $session.system_language].JointVentureRecoveryCodeName AS JointVentureRecoveryCodeName,
  JointVentureEquityType,
  _JntVntrEquityTypeMaster._JntVntrEquityTypeDesc[1:Language = $session.system_language].JointVentureEquityTypeName AS JointVentureEquityTypeName,
  JointVentureObjectType,
  _JntVntrCostCtrType._JntVntrCostCtrTypeText[1:Language = $session.system_language].JntVntrCostCtrTypeText AS JntVntrCostCtrTypeText,
  JointVentureClass,
  _JntIntrstBillgClass._JntIntrstBillgClassText[1:Language = $session.system_language].JntIntrstBillgClassText AS JntIntrstBillgClassText,
  JointVentureSubClass,
  _JntIntrstBillgSubclass._JntIntrstBillgSubclassT[1:Language = $session.system_language].JntIntrstBillgSubClassText AS JntIntrstBillgSubClassText
FROM I_PrftCtrCompCodeAssgmtTP
LEFT OUTER JOIN C_ProfitCenterTP AS _ParentNode ON ControllingArea = _ParentNode.ControllingArea AND ProfitCenter = _ParentNode.ProfitCenter AND ValidityEndDate = _ParentNode.ValidityEndDate  -- association [1..1]
LEFT OUTER JOIN I_JointVentureMaster AS _JointVentureMaster ON JointVenture = _JointVentureMaster.JointVenture AND CompanyCode = _JointVentureMaster.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_JointVentureRecovery AS _JointVentureRecovery ON JointVentureRecoveryCode = _JointVentureRecovery.JointVentureRecoveryCode AND CompanyCode = _JointVentureRecovery.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_JntVntrEquityTypeMaster AS _JntVntrEquityTypeMaster ON JointVentureEquityType = _JntVntrEquityTypeMaster.JointVentureEquityType AND CompanyCode = _JntVntrEquityTypeMaster.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_JntVntrCostCtrType AS _JntVntrCostCtrType ON JointVentureObjectType = _JntVntrCostCtrType.JntVntrCostCtrType AND CompanyCode = _JntVntrCostCtrType.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_JntIntrstBillgClass AS _JntIntrstBillgClass ON JointVentureClass = _JntIntrstBillgClass.JntIntrstBillgClass AND CompanyCode = _JntIntrstBillgClass.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_JntIntrstBillgSubclass AS _JntIntrstBillgSubclass ON CompanyCode = _JntIntrstBillgSubclass.CompanyCode AND JointVentureClass = _JntIntrstBillgSubclass.JntIntrstBillgClass AND JointVentureSubClass = _JntIntrstBillgSubclass.JntIntrstBillgSubClass  -- association [0..1]
;