C_ExtPurReqnAcctAssgmt
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 35 fields with key fields ProcmtHubPurchaseRequisition, ProcmtHubPurRequisitionItem, ProcmtHubPurReqnAcctAssgmtNo, ProcurementHubSourceSystem. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PrmtHbRpldPurReqnAcctAssgmt | I_PrmtHbRpldPurReqnAcctAssgmt | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProcmtHubPurchaseRequisition | ProcmtHubPurchaseRequisition | Purchase Req. | |
| KEY | ProcmtHubPurRequisitionItem | ProcmtHubPurRequisitionItem | Requisn. item | |
| KEY | ProcmtHubPurReqnAcctAssgmtNo | ProcmtHubPurReqnAcctAssgmtNo | Serial Number | |
| KEY | ProcurementHubSourceSystem | ProcurementHubSourceSystem | Connected System ID | |
| 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 | |
| _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,
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
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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA