C_POAccountAssignmentFactSheet

DDL: C_POACCOUNTASSIGNMENTFACTSHEET SQL: CPOACCASSFS Type: view CONSUMPTION

Purchase Order Account Assignment

C_POAccountAssignmentFactSheet is a Consumption CDS View that provides data about "Purchase Order Account Assignment" in SAP S/4HANA. It reads from 1 data source (I_PurOrdAccountAssignment) and exposes 50 fields with key fields PurchaseOrder, PurchaseOrderItem, AccountAssignmentNumber. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PurOrdAccountAssignment I_PurOrdAccountAssignment from

Associations (10)

CardinalityTargetAliasCondition
[0..*] I_WBSElementBasicData _WBSElement $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID
[0..1] I_MasterFixedAsset _MasterFixedAsset $projection.CompanyCode = _MasterFixedAsset.CompanyCode and $projection.MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset
[0..1] I_FixedAsset _FixedAsset $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset and $projection.FixedAsset = _FixedAsset.FixedAsset and $projection.CompanyCode = _FixedAsset.CompanyCode
[0..1] I_ProjectNetwork _ProjectNetwork $projection.ProjectNetwork = _ProjectNetwork.ProjectNetwork
[0..1] I_NetworkActivityByInternalKey _NetworkActivityByInternalKey $projection.ProjectNetworkInternalID = _NetworkActivityByInternalKey.ProjectNetworkInternalID and $projection.NetworkActivityInternalID = _NetworkActivityByInternalKey.NetworkActivityInternalID
[0..1] I_CostCenterText _CostCenterDesc $projection.CostCenter = _CostCenterDesc.CostCenter and $projection.ControllingArea = _CostCenterDesc.ControllingArea and $projection.ValidityDate <= _CostCenterDesc.ValidityEndDate and $projection.ValidityDate >= _CostCenterDesc.ValidityStartDate and _CostCenterDesc.Language = $session.system_language
[0..1] I_GLAccountText _GLAccountDesc $projection.GLAccount = _GLAccountDesc.GLAccount and $projection.ChartOfAccounts = _GLAccountDesc.ChartOfAccounts and _GLAccountDesc.Language = $session.system_language
[0..1] I_FunctionalAreaText _FunctionalAreaDesc $projection.FunctionalArea = _FunctionalAreaDesc.FunctionalArea and _FunctionalAreaDesc.Language = $session.system_language
[0..1] I_ProfitCenterText _ProfitCenterDesc $projection.ProfitCenter = _ProfitCenterDesc.ProfitCenter and $projection.ControllingArea = _ProfitCenterDesc.ControllingArea and $projection.ValidityDate <= _ProfitCenterDesc.ValidityEndDate and $projection.ValidityDate >= _ProfitCenterDesc.ValidityStartDate and _ProfitCenterDesc.Language = $session.system_language
[0..1] I_OrderBasic _orderbasic $projection.OrderID = _orderbasic.OrderID

Annotations (16)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName CPOACCASSFS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
UI.headerInfo.typeName Purchase Order Account Assignment view
UI.headerInfo.typeNamePlural Purchase Order Account Assignment view
UI.headerInfo.title.value AccountAssignmentNumber view
ObjectModel.representativeKey AccountAssignmentNumber view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Purchase Order Account Assignment view

Fields (50)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
KEY AccountAssignmentNumber AccountAssignmentNumber Account Assgmt No.
CompanyCode CompanyCode Receiver Company Code
ValidityDate ValidityDate Valid On
CostCenter CostCenter Cost Center
MasterFixedAsset MasterFixedAsset Fixed Asset
FixedAsset FixedAsset Sub-number
ProjectNetwork ProjectNetwork Order
NetworkActivityInternalID NetworkActivityInternalID Counter
ProjectNetworkInternalID ProjectNetworkInternalID Plan No.f.Oper.
NetworkActivity _NetworkActivityByInternalKey NetworkActivity Operation/Activity
MultipleAcctAssgmtDistrPercent MultipleAcctAssgmtDistrPercent Distribution
GLAccount GLAccount General Ledger
ChartOfAccounts ChartOfAccounts Node Class
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
OrderID OrderID Order ID
UnloadingPointName UnloadingPointName Unloading Point Name
ControllingArea ControllingArea Controlling Area
ProfitCenter ProfitCenter Profit Center
WBSElementExternalID WBSElementExternalID WBS Element External ID
WBSElementInternalID WBS Internal ID
CommitmentItemShortID CommitmentItemShortID Commitment Item Short ID
CommitmentItem _CommitmentItemShortID CommitmentItem Commitment item
FundsCenter FundsCenter Funds Center
Fund Fund Sender Fund
FunctionalArea FunctionalArea Sendr Fctl Area
GoodsRecipientName GoodsRecipientName Recipient Name
BusinessProcess BusinessProcess Business Process
GrantID GrantID Sender Grant
BudgetPeriod BudgetPeriod Budget Period
EarmarkedFundsDocument EarmarkedFundsDocument Earmarked Funds
EarmarkedFundsDocumentItem EarmarkedFundsDocumentItem Document Item
ServiceDocumentType ServiceDocumentType Transaction Type
ServiceDocument ServiceDocument Transaction ID
ServiceDocumentItem ServiceDocumentItem Service Document
ProjectDescriptionendasProjectName Project Name
WorkPackageName _WBSElement WBSDescription Work Package Name
_PurchaseOrder _PurchaseOrder
_PurchaseOrderItem _PurchaseOrderItem
_CostCenterDesc _CostCenterDesc
_ControllingArea _ControllingArea
_MasterFixedAsset _MasterFixedAsset
_FixedAsset _FixedAsset
_ProjectNetwork _ProjectNetwork
_GLAccountDesc _GLAccountDesc
_FunctionalAreaDesc _FunctionalAreaDesc
_ProfitCenterDesc _ProfitCenterDesc
OrderDescription _orderbasic OrderDescription

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_POAccountAssignmentFactSheet.
-- 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: CPOACCASSFS

CREATE VIEW C_POAccountAssignmentFactSheet AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  AccountAssignmentNumber,
  CompanyCode,
  ValidityDate,
  CostCenter,
  MasterFixedAsset,
  FixedAsset,
  ProjectNetwork,
  NetworkActivityInternalID,
  ProjectNetworkInternalID,
  _NetworkActivityByInternalKey.NetworkActivity AS NetworkActivity,
  MultipleAcctAssgmtDistrPercent,
  GLAccount,
  ChartOfAccounts,
  SalesOrder,
  SalesOrderItem,
  OrderID,
  UnloadingPointName,
  ControllingArea,
  ProfitCenter,
  WBSElementExternalID,
  cast ( WBSElementInternalID as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
  CommitmentItemShortID,
  _CommitmentItemShortID.CommitmentItem AS CommitmentItem,
  FundsCenter,
  Fund,
  FunctionalArea,
  GoodsRecipientName,
  BusinessProcess,
  GrantID,
  BudgetPeriod,
  EarmarkedFundsDocument,
  EarmarkedFundsDocumentItem,
  ServiceDocumentType,
  ServiceDocument,
  ServiceDocumentItem,
  case when ProjectNetwork is not initial then _NetworkActivityByInternalKey._ProjectNetworkBasicData._Project.ProjectDescription else _WBSElement._Project.ProjectDescription end as ProjectName AS ProjectDescriptionendasProjectName,
  _WBSElement.WBSDescription AS WorkPackageName,
  _orderbasic.OrderDescription AS OrderDescription
FROM I_PurOrdAccountAssignment
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElement ON WBSElementInternalID = _WBSElement.WBSElementInternalID  -- association [0..*]
LEFT OUTER JOIN I_MasterFixedAsset AS _MasterFixedAsset ON CompanyCode = _MasterFixedAsset.CompanyCode AND MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset  -- association [0..1]
LEFT OUTER JOIN I_FixedAsset AS _FixedAsset ON MasterFixedAsset = _FixedAsset.MasterFixedAsset AND FixedAsset = _FixedAsset.FixedAsset AND CompanyCode = _FixedAsset.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_ProjectNetwork AS _ProjectNetwork ON ProjectNetwork = _ProjectNetwork.ProjectNetwork  -- association [0..1]
LEFT OUTER JOIN I_NetworkActivityByInternalKey AS _NetworkActivityByInternalKey ON ProjectNetworkInternalID = _NetworkActivityByInternalKey.ProjectNetworkInternalID AND NetworkActivityInternalID = _NetworkActivityByInternalKey.NetworkActivityInternalID  -- association [0..1]
LEFT OUTER JOIN I_CostCenterText AS _CostCenterDesc ON CostCenter = _CostCenterDesc.CostCenter AND ControllingArea = _CostCenterDesc.ControllingArea AND ValidityDate <= _CostCenterDesc.ValidityEndDate AND ValidityDate >= _CostCenterDesc.ValidityStartDate AND _CostCenterDesc.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_GLAccountText AS _GLAccountDesc ON GLAccount = _GLAccountDesc.GLAccount AND ChartOfAccounts = _GLAccountDesc.ChartOfAccounts AND _GLAccountDesc.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_FunctionalAreaText AS _FunctionalAreaDesc ON FunctionalArea = _FunctionalAreaDesc.FunctionalArea AND _FunctionalAreaDesc.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterDesc ON ProfitCenter = _ProfitCenterDesc.ProfitCenter AND ControllingArea = _ProfitCenterDesc.ControllingArea AND ValidityDate <= _ProfitCenterDesc.ValidityEndDate AND ValidityDate >= _ProfitCenterDesc.ValidityStartDate AND _ProfitCenterDesc.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_OrderBasic AS _orderbasic ON OrderID = _orderbasic.OrderID  -- association [0..1]
;