C_ExtPurReqnAcctAssgmt

DDL: C_EXTPURREQNACCTASSGMT SQL: CEXTPRACCASNMT Type: view CONSUMPTION Package: ODATA_MM_PUR_EXT_PR

Account Assignment Details

C_ExtPurReqnAcctAssgmt is a Consumption CDS View that provides data about "Account Assignment Details" in SAP S/4HANA. It reads from 1 data source (I_PrmtHbRpldPurReqnAcctAssgmt) and exposes 38 fields with key fields ProcmtHubPurchaseRequisition, ProcmtHubPurRequisitionItem, ProcmtHubPurReqnAcctAssgmtNo, ProcurementHubSourceSystem. It has 6 associations to related views. Part of development package ODATA_MM_PUR_EXT_PR.

Data Sources (1)

SourceAliasJoin Type
I_PrmtHbRpldPurReqnAcctAssgmt I_PrmtHbRpldPurReqnAcctAssgmt from

Associations (6)

CardinalityTargetAliasCondition
[1..1] C_ExtPurchaseRequisitionItem _ExtPurchaseRequisitionItem $projection.ProcmtHubPurchaseRequisition = _ExtPurchaseRequisitionItem.ProcmtHubPurchaseRequisition and $projection.ProcmtHubPurRequisitionItem = _ExtPurchaseRequisitionItem.ProcmtHubPurRequisitionItem and $projection.ProcurementHubSourceSystem = _ExtPurchaseRequisitionItem.ProcurementHubSourceSystem
[0..1] I_ProcmtHubWBSElement _ProcmtHubWBSElement $projection.ProcmtHubWBSElementInternalID = _ProcmtHubWBSElement.WBSElementInternalID and $projection.ProcurementHubSourceSystem = _ProcmtHubWBSElement.ProcurementHubSourceSystem
[0..1] I_ProcmtHubGLAcctInChtOfAccts _ProcmtHubGLAcctInChtOfAccts $projection.ChartOfAccounts = _ProcmtHubGLAcctInChtOfAccts.ChartOfAccounts and $projection.ProcmtHubGLAccount = _ProcmtHubGLAcctInChtOfAccts.GLAccount and $projection.ProcurementHubSourceSystem = _ProcmtHubGLAcctInChtOfAccts.ProcurementHubSourceSystem
[0..1] I_ProcmtHubProjectNetworkText _ProcmtHubProjectNetworkText _ProcmtHubProjectNetworkText.ProjectNetwork = $projection.ProcmtHubProjectNetwork and _ProcmtHubProjectNetworkText.ExtSourceSystem = $projection.ProcurementHubSourceSystem
[0..1] I_ProcmtHubCostCenter _ProcmtHubCostCenter _ProcmtHubCostCenter.ProcmtHubCostCenter = $projection.ProcmtHubCostCenter and _ProcmtHubCostCenter.ExtSourceSystem = $projection.ProcurementHubSourceSystem and _ProcmtHubCostCenter.ProcmtHubControllingArea = $projection.ProcmtHubControllingArea and $projection.ValidityDate <= _ProcmtHubCostCenter.ValidityEndDate
[0..1] I_ProcmtHubFixedAsset _ProcmtHubFixedAsset _ProcmtHubFixedAsset.ProcmtHubMasterFixedAsset = $projection.ProcmtHubMasterFixedAsset and _ProcmtHubFixedAsset.ExtSourceSystem = $projection.ProcurementHubSourceSystem and _ProcmtHubFixedAsset.CompanyCode = $projection.ProcmtHubCompanyCode

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CEXTPRACCASNMT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Account Assignment Details view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AbapCatalog.preserveKey true view
VDM.viewType #CONSUMPTION view
UI.headerInfo.typeName Account Assignment view
UI.headerInfo.typeNamePlural Account Assignments view
UI.headerInfo.title.value ProcmtHubPurReqnAcctAssgmtNo view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY ProcmtHubPurchaseRequisition ProcmtHubPurchaseRequisition Purchase Req.
KEY ProcmtHubPurRequisitionItem ProcmtHubPurRequisitionItem Item of Requisition
KEY ProcmtHubPurReqnAcctAssgmtNo ProcmtHubPurReqnAcctAssgmtNo Serial Number
KEY ProcurementHubSourceSystem ProcurementHubSourceSystem Connected System ID
FormattedItemID Central Purchase Requisition Item
Quantity Quantity Quantity Requested
MultipleAcctAssgmtDistrPercent MultipleAcctAssgmtDistrPercent Distribution
ProcmtHubGLAccount ProcmtHubGLAccount G/L Account
ProcmtHubCostCenter ProcmtHubCostCenter Cost Center
ProcmtHubFunctionalArea ProcmtHubFunctionalArea Functional Area
ProcmtHubFund ProcmtHubFund Fund
ProcmtHubFundsCenter ProcmtHubFundsCenter Funds Center
ProcmtHubControllingArea ProcmtHubControllingArea CO Area
ProcmtHubUnloadingPointName ProcmtHubUnloadingPointName Unloading Point Name
ProcmtHubGoodsRecipientName ProcmtHubGoodsRecipientName Recipient Name
ProcmtHubProcessOrder ProcmtHubProcessOrder Order
ProcmtHubProjectNetwork ProcmtHubProjectNetwork Network
ProcmtHubProjectNetworkIntID ProcmtHubProjectNetworkIntID Plan Number
WBSElementDescription _ProcmtHubWBSElement WBSElementDescription WBS Element Description
ProcmtHubWBSElementExternalID _ProcmtHubWBSElement WBSElement WBS Element
ProcmtHubWBSElementInternalID ProcmtHubWBSElementInternalID WBS Element Internal ID
ProcmtHubSalesOrder ProcmtHubSalesOrder SD Document
ProcmtHubSalesOrdScheduleLine ProcmtHubSalesOrdScheduleLine SOrder schedule
ProcmtHubSalesDocumentItem ProcmtHubSalesDocumentItem Sales Document Item
ProcmtHubMasterFixedAsset ProcmtHubMasterFixedAsset Asset
ChartOfAccounts ChartOfAccounts Node Class
ValidityDate ValidityDate Valid To
BusinessArea BusinessArea Business Area
ProfitCenter ProfitCenter Profit Center
ProcmtHubCompanyCode _ExtPurchaseRequisitionItem ProcmtHubCompanyCode Company Code
PrmtHbMssUpAcctAssgmtIsCrted Is New
IsDeleted IsDeleted TRUE
_ExtPurchaseRequisitionItem _ExtPurchaseRequisitionItem
_ProcmtHubWBSElement _ProcmtHubWBSElement
_ProcmtHubGLAcctInChtOfAccts _ProcmtHubGLAcctInChtOfAccts
_ProcmtHubProjectNetworkText _ProcmtHubProjectNetworkText
_ProcmtHubCostCenter _ProcmtHubCostCenter
_ProcmtHubFixedAsset _ProcmtHubFixedAsset

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_ExtPurReqnAcctAssgmt.
-- 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: CEXTPRACCASNMT

CREATE VIEW C_ExtPurReqnAcctAssgmt AS
SELECT
  ProcmtHubPurchaseRequisition,
  ProcmtHubPurRequisitionItem,
  ProcmtHubPurReqnAcctAssgmtNo,
  ProcurementHubSourceSystem,
  cast (concat(concat(concat(concat(ProcmtHubPurchaseRequisition, '/'), ProcmtHubPurRequisitionItem ), '/' ), ProcurementHubSourceSystem )as vdm_formatteditemid) AS FormattedItemID,
  Quantity,
  MultipleAcctAssgmtDistrPercent,
  ProcmtHubGLAccount,
  ProcmtHubCostCenter,
  ProcmtHubFunctionalArea,
  ProcmtHubFund,
  ProcmtHubFundsCenter,
  ProcmtHubControllingArea,
  ProcmtHubUnloadingPointName,
  ProcmtHubGoodsRecipientName,
  ProcmtHubProcessOrder,
  ProcmtHubProjectNetwork,
  ProcmtHubProjectNetworkIntID,
  _ProcmtHubWBSElement.WBSElementDescription AS WBSElementDescription,
  _ProcmtHubWBSElement.WBSElement AS ProcmtHubWBSElementExternalID,
  ProcmtHubWBSElementInternalID,
  ProcmtHubSalesOrder,
  ProcmtHubSalesOrdScheduleLine,
  ProcmtHubSalesDocumentItem,
  ProcmtHubMasterFixedAsset,
  ChartOfAccounts,
  ValidityDate,
  BusinessArea,
  ProfitCenter,
  _ExtPurchaseRequisitionItem.ProcmtHubCompanyCode AS ProcmtHubCompanyCode,
  cast ('' as xfeld) AS PrmtHbMssUpAcctAssgmtIsCrted,
  IsDeleted
FROM I_PrmtHbRpldPurReqnAcctAssgmt
LEFT OUTER JOIN C_ExtPurchaseRequisitionItem AS _ExtPurchaseRequisitionItem ON ProcmtHubPurchaseRequisition = _ExtPurchaseRequisitionItem.ProcmtHubPurchaseRequisition AND ProcmtHubPurRequisitionItem = _ExtPurchaseRequisitionItem.ProcmtHubPurRequisitionItem AND ProcurementHubSourceSystem = _ExtPurchaseRequisitionItem.ProcurementHubSourceSystem  -- association [1..1]
LEFT OUTER JOIN I_ProcmtHubWBSElement AS _ProcmtHubWBSElement ON ProcmtHubWBSElementInternalID = _ProcmtHubWBSElement.WBSElementInternalID AND ProcurementHubSourceSystem = _ProcmtHubWBSElement.ProcurementHubSourceSystem  -- association [0..1]
LEFT OUTER JOIN I_ProcmtHubGLAcctInChtOfAccts AS _ProcmtHubGLAcctInChtOfAccts ON ChartOfAccounts = _ProcmtHubGLAcctInChtOfAccts.ChartOfAccounts AND ProcmtHubGLAccount = _ProcmtHubGLAcctInChtOfAccts.GLAccount AND ProcurementHubSourceSystem = _ProcmtHubGLAcctInChtOfAccts.ProcurementHubSourceSystem  -- association [0..1]
LEFT OUTER JOIN I_ProcmtHubProjectNetworkText AS _ProcmtHubProjectNetworkText ON _ProcmtHubProjectNetworkText.ProjectNetwork = ProcmtHubProjectNetwork AND _ProcmtHubProjectNetworkText.ExtSourceSystem = ProcurementHubSourceSystem  -- association [0..1]
LEFT OUTER JOIN I_ProcmtHubCostCenter AS _ProcmtHubCostCenter ON _ProcmtHubCostCenter.ProcmtHubCostCenter = ProcmtHubCostCenter AND _ProcmtHubCostCenter.ExtSourceSystem = ProcurementHubSourceSystem AND _ProcmtHubCostCenter.ProcmtHubControllingArea = ProcmtHubControllingArea AND ValidityDate <= _ProcmtHubCostCenter.ValidityEndDate  -- association [0..1]
LEFT OUTER JOIN I_ProcmtHubFixedAsset AS _ProcmtHubFixedAsset ON _ProcmtHubFixedAsset.ProcmtHubMasterFixedAsset = ProcmtHubMasterFixedAsset AND _ProcmtHubFixedAsset.ExtSourceSystem = ProcurementHubSourceSystem AND _ProcmtHubFixedAsset.CompanyCode = ProcmtHubCompanyCode  -- association [0..1]
;