C_PurReqItemAcctMntr
PR Items by Account Assignment
C_PurReqItemAcctMntr is a Consumption CDS View that provides data about "PR Items by Account Assignment" in SAP S/4HANA. It reads from 1 data source (P_PurReqItemAcctmntr) and exposes 70 fields with key fields PurchaseRequisition, PurchaseRequisitionItem, PurchaseReqnAcctAssgmtNumber. It has 17 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_PurReqItemAcctmntr | PurReqnAccountAssignment | from |
Associations (17)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MM_WBSElementValueHelp | _WBSElement | _WBSElement.WBSElementInternalID = $projection.WBSElementInternalID |
| [0..1] | I_MM_ProjectNetworkVH | _ProjectNetworkVH | _ProjectNetworkVH.ProjectNetwork = $projection.ProjectNetwork |
| [0..1] | I_CostCenter | _CostCenter | $projection.CostCenter = _CostCenter.CostCenter and $projection.ControllingArea = _CostCenter.ControllingArea and $projection.ValidityDate <= _CostCenter.ValidityEndDate and $projection.ValidityDate >= _CostCenter.ValidityStartDate |
| [0..*] | I_GLAccountText | _GLAccountText | $projection.GLAccount = _GLAccountText.GLAccount and PurReqnAccountAssignment.ChartOfAccounts = _GLAccountText.ChartOfAccounts |
| [0..*] | I_FundText | _FundText | $projection.Fund = _FundText.Fund and _FundText.Language = $session.system_language |
| [0..*] | I_BudgetPeriodText | _BudgetPeriodText | $projection.BudgetPeriod = _BudgetPeriodText.BudgetPeriod and _BudgetPeriodText.Language = $session.system_language |
| [0..*] | I_GrantText | _GrantText | $projection.GrantID = _GrantText.GrantID and _GrantText.Language = $session.system_language |
| [0..*] | I_ProfitCenterText | _ProfitCenterText | $projection.ProfitCenter = _ProfitCenterText.ProfitCenter and $projection.ControllingArea = _ProfitCenterText.ControllingArea and $projection.ValidityDate = _ProfitCenterText.ValidityEndDate and _ProfitCenterText.Language = $session.system_language |
| [0..*] | I_FunctionalAreaText | _FunctionalAreaText | _FunctionalAreaText.FunctionalArea = $projection.FunctionalArea |
| [0..1] | C_PurReqnReleaseStatuValueHelp | _ReleaseStatusText | _ReleaseStatusText.PurReqnReleaseStatus = $projection.PurReqnReleaseStatus |
| [1..1] | I_ProcmtDocIncompleteStatus | _ProcmtDocIncompleteStatus | _ProcmtDocIncompleteStatus.PurReqnCmpltnsCat = $projection.PurReqnCmpltnsCat |
| [0..1] | C_FixedAssetOvwAssetClassVH | _AssetClText | _AssetClText.AssetClass = $projection.AssetClass |
| [0..1] | I_Plant | _SupplyingPlant | $projection.SupplyingPlant = _SupplyingPlant.Plant |
| [0..1] | I_Plant | _ProcuringPlant | $projection.ProcuringPlant = _ProcuringPlant.Plant |
| [0..1] | I_Material | _ManufacturerMaterial | $projection.ManufacturerMaterial = _ManufacturerMaterial.Material |
| [0..1] | I_Supplier | _DesiredSupplierText | $projection.ExtDesiredSupplierForPurg = _DesiredSupplierText.Supplier |
| [0..1] | P_PURREQITMACCTMNTRFILT | _PURREQITMACCTMNTRFILT | $projection.PurchaseRequisition = _PURREQITMACCTMNTRFILT.PurchaseRequisition and $projection.PurchaseRequisitionItem = _PURREQITMACCTMNTRFILT.PurchaseRequisitionItem |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPREQITMACCMNTR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | PR Items by Account Assignment | view | |
| Search.searchable | true | view | |
| UI.headerInfo.typeName | Purchase Requisition Item | view | |
| UI.headerInfo.typeNamePlural | Purchase Requisition Items | view | |
| UI.headerInfo.title.value | FormattedPurRequisitionItem | view | |
| UI.headerInfo.description.value | PurchaseRequisitionItemText | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.lifecycle.contract.type | #NONE | view |
Fields (70)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseRequisition | P_PurReqItemAcctmntr | PurchaseRequisition | Purchase Requisition |
| KEY | PurchaseRequisitionItem | P_PurReqItemAcctmntr | PurchaseRequisitionItem | Item |
| KEY | PurchaseReqnAcctAssgmtNumber | P_PurReqItemAcctmntr | PurchaseReqnAcctAssgmtNumber | Sequence Number |
| CompanyCode | P_PurReqItemAcctmntr | CompanyCode | Company Code | |
| CompanyCodeName | Company Code Name | |||
| FormattedPurRequisitionItem | Purchase Requisition Item | |||
| Material | P_PurReqItemAcctmntr | Material | Vehicle Model | |
| MaterialName | P_PurReqItemAcctmntr | MaterialName | Material Description | |
| AccountAssignmentCategory | P_PurReqItemAcctmntr | AccountAssignmentCategory | Account Assignment Category | |
| AcctAssignmentCategoryName | P_PurReqItemAcctmntr | AcctAssignmentCategoryName | Description | |
| ValidityDate | P_PurReqItemAcctmntr | ValidityDate | Validity Date | |
| CostCenter | P_PurReqItemAcctmntr | CostCenter | Cost Center | |
| SenderCostCenterName | Cost Center Name | |||
| PurchaseRequisitionType | P_PurReqItemAcctmntr | PurchaseRequisitionType | Order Type | |
| PurchasingDocumentTypeName | P_PurReqItemAcctmntr | PurchasingDocumentTypeName | Document Type Description | |
| WBSElement | _WBSElement | WBSElement | WBS Element | |
| WBSElementExternalID | _WBSElement | WBSElementExternalID | WBS Element | |
| WBSDescription | _WBSElement | WBSDescription | WBS Element Name | |
| WBSElementInternalID | P_PurReqItemAcctmntr | WBSElementInternalID | WBS Internal ID | |
| MaterialGroup | P_PurReqItemAcctmntr | MaterialGroup | Product Group | |
| MaterialGroupName | P_PurReqItemAcctmntr | MaterialGroupName | Material Group Description | |
| Supplier | P_PurReqItemAcctmntr | Supplier | Supplier | |
| SupplierName | Desired Supplier Name | |||
| PurchasingOrganization | P_PurReqItemAcctmntr | PurchasingOrganization | Purchasing Organization | |
| PurchasingOrganizationName | P_PurReqItemAcctmntr | PurchasingOrganizationName | Purchasing Organization Name | |
| PurchasingGroup | P_PurReqItemAcctmntr | PurchasingGroup | Purchasing Group | |
| PurchasingGroupName | P_PurReqItemAcctmntr | PurchasingGroupName | Purchasing Group Name | |
| MasterFixedAsset | P_PurReqItemAcctmntr | MasterFixedAsset | Fixed Asset | |
| ProjectNetwork | P_PurReqItemAcctmntr | ProjectNetwork | Order | |
| ProjectNetworkDescription | _ProjectNetworkVH | ProjectNetworkDescription | Network Name | |
| PurReqnRequestor | P_PurReqItemAcctmntr | PurReqnRequestor | Requestor | |
| SalesOrderScheduleLine | P_PurReqItemAcctmntr | SalesOrderScheduleLine | Schedule Line Number | |
| RequirementTracking | P_PurReqItemAcctmntr | RequirementTracking | Requirement Tracking Number | |
| DeliveryDate | P_PurReqItemAcctmntr | DeliveryDate | Delivery Date | |
| PurchaseRequisitionReleaseDate | P_PurReqItemAcctmntr | PurchaseRequisitionReleaseDate | Release Date | |
| Quantity | P_PurReqItemAcctmntr | Quantity | Account Assignment Quantity | |
| RequestedQuantity | P_PurReqItemAcctmntr | RequestedQuantity | Quantity Requested | |
| BaseUnit | P_PurReqItemAcctmntr | BaseUnit | Unit of Measure | |
| PurchaseRequisitionPrice | P_PurReqItemAcctmntr | PurchaseRequisitionPrice | Valuation Price | |
| PurReqnItemCurrency | P_PurReqItemAcctmntr | PurReqnItemCurrency | Document Currency | |
| SalesPlanCurrency | P_PurReqItemAcctmntr | PurReqnItemCurrency | Sales Plan Currency | |
| Plant | P_PurReqItemAcctmntr | Plant | Valuation Area | |
| PlantName | P_PurReqItemAcctmntr | PlantName | Plant Name | |
| ExtDesiredSupplierForPurg | P_PurReqItemAcctmntr | ExtDesiredSupplierForPurg | Desired Supplier | |
| PreferredSupplierName | _DesiredSupplierText | SupplierName | Supplier Name | |
| PurchaseRequisitionStatus | P_PurReqItemAcctmntr | ProcessingStatus | Processing Status | |
| ProcessingStatusName | P_PurReqItemAcctmntr | DomainText | Processing Status Name | |
| PurReqCreationDate | P_PurReqItemAcctmntr | PurReqCreationDate | Requisition Date | |
| ReleaseCode | P_PurReqItemAcctmntr | ReleaseCode | Release Indicator | |
| PurchasingReleaseIndicatorDesc | P_PurReqItemAcctmntr | PurchasingReleaseIndicatorDesc | Release Indicator Description | |
| StorageLocation | P_PurReqItemAcctmntr | StorageLocation | Storage Location | |
| StorageLocationName | P_PurReqItemAcctmntr | StorageLocationName | Storage Location Name | |
| PurchasingInfoRecord | P_PurReqItemAcctmntr | PurchasingInfoRecord | Purchasing Info Record | |
| PurchasingInfoRecordDesc | P_PurReqItemAcctmntr | PurchasingInfoRecordDesc | Purchasing Info Record Description | |
| PurReqnOrigin | P_PurReqItemAcctmntr | PurReqnOrigin | Creation Indicator | |
| DomainText | P_PurReqItemAcctmntr | DomainText | Creation Indicator Description | |
| MRPController | P_PurReqItemAcctmntr | MRPController | MRP Controller | |
| ProcmtHubMRPController | P_PurReqItemAcctmntr | MRPControllerName | MRP Controller Name | |
| ReleaseStrategy | P_PurReqItemAcctmntr | ReleaseStrategy | Release Strategy | |
| LastChangeDate | P_PurReqItemAcctmntr | CreationDate | Created On | |
| ProcessOrder | P_PurReqItemAcctmntr | ProcessOrder | Order | |
| OrderDescription | P_PurReqItemAcctmntr | OrderDescription | Order Name | |
| Batch | P_PurReqItemAcctmntr | Batch | Lot No. | |
| SDDocument | P_PurReqItemAcctmntr | SalesOrder | SD Document | |
| FixedAsset | P_PurReqItemAcctmntr | FixedAsset | Asset Subnumber | |
| FixedAssetDescription | P_PurReqItemAcctmntr | FixedAssetDescription | Asset Description | |
| ControllingArea | P_PurReqItemAcctmntr | ControllingArea | Controlling Area | |
| ControllingAreaName | Controlling Area Name | |||
| BusinessArea | P_PurReqItemAcctmntr | BusinessArea | Business Area | |
| BusinessAreaName | Business Area Description |
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_PurReqItemAcctMntr.
-- 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: CPREQITMACCMNTR
CREATE VIEW C_PurReqItemAcctMntr AS
SELECT
PurReqnAccountAssignment.PurchaseRequisition AS PurchaseRequisition,
PurReqnAccountAssignment.PurchaseRequisitionItem AS PurchaseRequisitionItem,
PurReqnAccountAssignment.PurchaseReqnAcctAssgmtNumber AS PurchaseReqnAcctAssgmtNumber,
PurReqnAccountAssignment.CompanyCode AS CompanyCode,
PurReqnAccountAssignment._CompanyCode.CompanyCodeName AS CompanyCodeName,
concat(concat(PurReqnAccountAssignment.PurchaseRequisition, '/'), PurReqnAccountAssignment.PurchaseRequisitionItem) AS FormattedPurRequisitionItem,
PurReqnAccountAssignment.Material AS Material,
PurReqnAccountAssignment.MaterialName AS MaterialName,
PurReqnAccountAssignment.AccountAssignmentCategory AS AccountAssignmentCategory,
PurReqnAccountAssignment.AcctAssignmentCategoryName AS AcctAssignmentCategoryName,
PurReqnAccountAssignment.ValidityDate AS ValidityDate,
PurReqnAccountAssignment.CostCenter AS CostCenter,
_CostCenter._Text[1: Language = $session.system_language ].CostCenterName AS SenderCostCenterName,
PurReqnAccountAssignment.PurchaseRequisitionType AS PurchaseRequisitionType,
PurReqnAccountAssignment.PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
_WBSElement.WBSElement AS WBSElement,
_WBSElement.WBSElementExternalID AS WBSElementExternalID,
_WBSElement.WBSDescription AS WBSDescription,
PurReqnAccountAssignment.WBSElementInternalID AS WBSElementInternalID,
PurReqnAccountAssignment.MaterialGroup AS MaterialGroup,
PurReqnAccountAssignment.MaterialGroupName AS MaterialGroupName,
PurReqnAccountAssignment.Supplier AS Supplier,
PurReqnAccountAssignment._Supplier.SupplierName AS SupplierName,
PurReqnAccountAssignment.PurchasingOrganization AS PurchasingOrganization,
PurReqnAccountAssignment.PurchasingOrganizationName AS PurchasingOrganizationName,
PurReqnAccountAssignment.PurchasingGroup AS PurchasingGroup,
PurReqnAccountAssignment.PurchasingGroupName AS PurchasingGroupName,
PurReqnAccountAssignment.MasterFixedAsset AS MasterFixedAsset,
PurReqnAccountAssignment.ProjectNetwork AS ProjectNetwork,
_ProjectNetworkVH.ProjectNetworkDescription AS ProjectNetworkDescription,
PurReqnAccountAssignment.PurReqnRequestor AS PurReqnRequestor,
PurReqnAccountAssignment.SalesOrderScheduleLine AS SalesOrderScheduleLine,
PurReqnAccountAssignment.RequirementTracking AS RequirementTracking,
PurReqnAccountAssignment.DeliveryDate AS DeliveryDate,
PurReqnAccountAssignment.PurchaseRequisitionReleaseDate AS PurchaseRequisitionReleaseDate,
PurReqnAccountAssignment.Quantity AS Quantity,
PurReqnAccountAssignment.RequestedQuantity AS RequestedQuantity,
PurReqnAccountAssignment.BaseUnit AS BaseUnit,
PurReqnAccountAssignment.PurchaseRequisitionPrice AS PurchaseRequisitionPrice,
PurReqnAccountAssignment.PurReqnItemCurrency AS PurReqnItemCurrency,
PurReqnAccountAssignment.PurReqnItemCurrency AS SalesPlanCurrency,
PurReqnAccountAssignment.Plant AS Plant,
PurReqnAccountAssignment.PlantName AS PlantName,
PurReqnAccountAssignment.ExtDesiredSupplierForPurg AS ExtDesiredSupplierForPurg,
_DesiredSupplierText.SupplierName AS PreferredSupplierName,
PurReqnAccountAssignment.ProcessingStatus AS PurchaseRequisitionStatus,
PurReqnAccountAssignment.DomainText AS ProcessingStatusName,
PurReqnAccountAssignment.PurReqCreationDate AS PurReqCreationDate,
PurReqnAccountAssignment.ReleaseCode AS ReleaseCode,
PurReqnAccountAssignment.PurchasingReleaseIndicatorDesc AS PurchasingReleaseIndicatorDesc,
PurReqnAccountAssignment.StorageLocation AS StorageLocation,
PurReqnAccountAssignment.StorageLocationName AS StorageLocationName,
PurReqnAccountAssignment.PurchasingInfoRecord AS PurchasingInfoRecord,
PurReqnAccountAssignment.PurchasingInfoRecordDesc AS PurchasingInfoRecordDesc,
PurReqnAccountAssignment.PurReqnOrigin AS PurReqnOrigin,
PurReqnAccountAssignment.DomainText AS DomainText,
PurReqnAccountAssignment.MRPController AS MRPController,
PurReqnAccountAssignment.MRPControllerName AS ProcmtHubMRPController,
PurReqnAccountAssignment.ReleaseStrategy AS ReleaseStrategy,
PurReqnAccountAssignment.CreationDate AS LastChangeDate,
PurReqnAccountAssignment.ProcessOrder AS ProcessOrder,
PurReqnAccountAssignment.OrderDescription AS OrderDescription,
PurReqnAccountAssignment.Batch AS Batch,
PurReqnAccountAssignment.SalesOrder AS SDDocument,
PurReqnAccountAssignment.FixedAsset AS FixedAsset,
PurReqnAccountAssignment.FixedAssetDescription AS FixedAssetDescription,
PurReqnAccountAssignment.ControllingArea AS ControllingArea,
PurReqnAccountAssignment._ControllingArea.ControllingAreaName AS ControllingAreaName,
PurReqnAccountAssignment.BusinessArea AS BusinessArea,
PurReqnAccountAssignment._BusinessArea._Text[1: Language = $session.system_language].BusinessAreaName AS BusinessAreaName
FROM P_PurReqItemAcctmntr AS PurReqnAccountAssignment
LEFT OUTER JOIN I_MM_WBSElementValueHelp AS _WBSElement ON _WBSElement.WBSElementInternalID = WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_MM_ProjectNetworkVH AS _ProjectNetworkVH ON _ProjectNetworkVH.ProjectNetwork = ProjectNetwork -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON CostCenter = _CostCenter.CostCenter AND ControllingArea = _CostCenter.ControllingArea AND ValidityDate <= _CostCenter.ValidityEndDate AND ValidityDate >= _CostCenter.ValidityStartDate -- association [0..1]
LEFT OUTER JOIN I_GLAccountText AS _GLAccountText ON GLAccount = _GLAccountText.GLAccount AND PurReqnAccountAssignment.ChartOfAccounts = _GLAccountText.ChartOfAccounts -- association [0..*]
LEFT OUTER JOIN I_FundText AS _FundText ON Fund = _FundText.Fund AND _FundText.Language = $session.system_language -- association [0..*]
LEFT OUTER JOIN I_BudgetPeriodText AS _BudgetPeriodText ON BudgetPeriod = _BudgetPeriodText.BudgetPeriod AND _BudgetPeriodText.Language = $session.system_language -- association [0..*]
LEFT OUTER JOIN I_GrantText AS _GrantText ON GrantID = _GrantText.GrantID AND _GrantText.Language = $session.system_language -- association [0..*]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterText ON ProfitCenter = _ProfitCenterText.ProfitCenter AND ControllingArea = _ProfitCenterText.ControllingArea AND ValidityDate = _ProfitCenterText.ValidityEndDate AND _ProfitCenterText.Language = $session.system_language -- association [0..*]
LEFT OUTER JOIN I_FunctionalAreaText AS _FunctionalAreaText ON _FunctionalAreaText.FunctionalArea = FunctionalArea -- association [0..*]
LEFT OUTER JOIN C_PurReqnReleaseStatuValueHelp AS _ReleaseStatusText ON _ReleaseStatusText.PurReqnReleaseStatus = PurReqnReleaseStatus -- association [0..1]
LEFT OUTER JOIN I_ProcmtDocIncompleteStatus AS _ProcmtDocIncompleteStatus ON _ProcmtDocIncompleteStatus.PurReqnCmpltnsCat = PurReqnCmpltnsCat -- association [1..1]
LEFT OUTER JOIN C_FixedAssetOvwAssetClassVH AS _AssetClText ON _AssetClText.AssetClass = AssetClass -- association [0..1]
LEFT OUTER JOIN I_Plant AS _SupplyingPlant ON SupplyingPlant = _SupplyingPlant.Plant -- association [0..1]
LEFT OUTER JOIN I_Plant AS _ProcuringPlant ON ProcuringPlant = _ProcuringPlant.Plant -- association [0..1]
LEFT OUTER JOIN I_Material AS _ManufacturerMaterial ON ManufacturerMaterial = _ManufacturerMaterial.Material -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _DesiredSupplierText ON ExtDesiredSupplierForPurg = _DesiredSupplierText.Supplier -- association [0..1]
LEFT OUTER JOIN P_PURREQITMACCTMNTRFILT AS _PURREQITMACCTMNTRFILT ON PurchaseRequisition = _PURREQITMACCTMNTRFILT.PurchaseRequisition AND PurchaseRequisitionItem = _PURREQITMACCTMNTRFILT.PurchaseRequisitionItem -- 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