C_PurReqnAccountAssignment
Purchase Requisition Account Assignment
C_PurReqnAccountAssignment is a Consumption CDS View that provides data about "Purchase Requisition Account Assignment" in SAP S/4HANA. It reads from 1 data source (I_PurReqnAcctAssgmt) and exposes 76 fields with key fields PurchaseRequisition, PurchaseRequisitionItem, PurchaseReqnAcctAssgmtNumber. It has 14 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurReqnAcctAssgmt | I_PurReqnAcctAssgmt | from |
Associations (14)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MM_SalesOrderItemVH | _SalesOrderItem | _SalesOrderItem.SalesOrder = $projection.SalesOrder and _SalesOrderItem.SalesOrderItem = $projection.SalesOrderItem |
| [0..1] | I_MM_CostCenterValueHelp | _CostCenter | $projection.CostCenter = _CostCenter.CostCenter and $projection.ControllingArea = _CostCenter.ControllingArea and $projection.ValidityDate <= _CostCenter.ValidityEndDate |
| [0..1] | I_MM_FixedAssetValueHelp | _FixedAsset | $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset and $projection.FixedAsset = _FixedAsset.FixedAsset and $projection.companycode = _FixedAsset.CompanyCode |
| [0..1] | I_MM_GLAccountVH | _GLAccount | $projection.GLAccount = _GLAccount.GLAccount and $projection.companycode = _GLAccount.CompanyCode |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [1..1] | I_Purchaserequisitionitem | _Purchaserequisitionitem | $projection.PurchaseRequisition = _Purchaserequisitionitem.PurchaseRequisition and $projection.PurchaseRequisitionItem = _Purchaserequisitionitem.PurchaseRequisitionItem |
| [0..1] | I_MM_LogisticsOrderVH | _Order | $projection.OrderID = _Order.OrderID |
| [0..1] | I_MM_ProfitCenterValueHelp | _ProfitCenter | $projection.ControllingArea = _ProfitCenter.ControllingArea and $projection.ProfitCenter = _ProfitCenter.ProfitCenter and $projection.ValidityDate <= _ProfitCenter.ValidityEndDate |
| [0..1] | I_MM_SalesOrderValueHelp | _SalesOrder | $projection.SalesOrder = _SalesOrder.SalesOrder |
| [0..1] | I_WBSElementBasicData | _WBSElement | _WBSElement.WBSElementInternalID = $projection.WBSElementInternalID |
| [0..1] | I_BudgetPeriodStdVH | _BudgetPeriodStdVH | _BudgetPeriodStdVH.BudgetPeriod = $projection.BudgetPeriod |
| [0..1] | I_GrantStdVH | _GrantStdVH | $projection.GrantID = _GrantStdVH.GrantID |
| [1..1] | I_FundedPgmByPurReqnAcctAssgmt | _FundedProgram | $projection.PurchaseRequisition = _FundedProgram.PurchaseRequisition and $projection.PurchaseRequisitionItem = _FundedProgram.PurchaseRequisitionItem and $projection.PurchaseReqnAcctAssgmtNumber = _FundedProgram.PurchaseReqnAcctAssgmtNumber |
| [0..1] | I_MasterFixedAsset | _MasterFixedAsset | $projection.companycode = _MasterFixedAsset.CompanyCode and $projection.MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPURREQNACCTA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Purchase Requisition Account Assignment | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| UI.headerInfo.typeName | Account Assignment | view | |
| UI.headerInfo.typeNamePlural | Account Assignments | view | |
| UI.headerInfo.title.value | PurchaseReqnAcctAssgmtNumber | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view |
Fields (76)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseRequisition | I_PurReqnAcctAssgmt | PurchaseRequisition | Requisition |
| KEY | PurchaseRequisitionItem | I_PurReqnAcctAssgmt | PurchaseRequisitionItem | Purchase Requisition Item |
| KEY | PurchaseReqnAcctAssgmtNumber | I_PurReqnAcctAssgmt | PurchaseReqnAcctAssgmtNumber | Serial Number |
| CostCenter | I_PurReqnAcctAssgmt | CostCenter | Cost Center | |
| MasterFixedAsset | I_PurReqnAcctAssgmt | MasterFixedAsset | Fixed Asset | |
| CompanyCode | _Purchaserequisitionitem | CompanyCode | Receiver Company Code | |
| IsDeleted | I_PurReqnAcctAssgmt | IsDeleted | TRUE | |
| GLAccount | I_PurReqnAcctAssgmt | GLAccount | General Ledger | |
| PurReqnAcctAssgmtDistrPct | I_PurReqnAcctAssgmt | MultipleAcctAssgmtDistrPercent | Distribution | |
| BaseUnit | _Purchaserequisitionitem | BaseUnit | Unit of Measure | |
| ProjectNetwork | ProjectNetwork | Order | ||
| Quantity | I_PurReqnAcctAssgmt | Quantity | Value | |
| UnitOfMeasure | _Purchaserequisitionitem | BaseUnit | Unit of Measure | |
| ControllingArea | I_PurReqnAcctAssgmt | ControllingArea | Controlling Area | |
| BusinessArea | I_PurReqnAcctAssgmt | BusinessArea | Business Area | |
| SalesOrder | I_PurReqnAcctAssgmt | SalesOrder | Sales Order | |
| SalesOrderItem | I_PurReqnAcctAssgmt | SalesOrderItem | Sales Order Item | |
| SalesOrderScheduleLine | I_PurReqnAcctAssgmt | SalesOrderScheduleLine | Sales Order Schedule Line Number | |
| FixedAsset | I_PurReqnAcctAssgmt | FixedAsset | Sub-number | |
| ProcessOrder | I_PurReqnAcctAssgmt | ProcessOrder | Order | |
| OrderID | I_PurReqnAcctAssgmt | OrderID | Order ID | |
| UnloadingPointName | I_PurReqnAcctAssgmt | UnloadingPointName | Unloading Point Name | |
| CostObject | I_PurReqnAcctAssgmt | CostObject | Cost Object | |
| PrmtHbProfitabilitySegment | I_PurReqnAcctAssgmt | ProfitabilitySegment | Profitability Segment | |
| ProfitCenter | I_PurReqnAcctAssgmt | ProfitCenter | Profit Center | |
| WBSElementInternalID | I_PurReqnAcctAssgmt | WBSElementInternalID_2 | ||
| WBSElementExternalID | I_PurReqnAcctAssgmt | WBSElementExternalID_2 | WBS Element External ID | |
| WBSDescription | _WBSElement | WBSDescription | WBS Element Name | |
| ProjectNetworkInternalID | I_PurReqnAcctAssgmt | ProjectNetworkInternalID | Plan No.f.Oper. | |
| CommitmentItemShortID | I_PurReqnAcctAssgmt | CommitmentItemShortID | Commitment Item | |
| FundsCenter | I_PurReqnAcctAssgmt | FundsCenter | Funds Center | |
| Fund | I_PurReqnAcctAssgmt | Fund | Sender Fund | |
| FunctionalArea | I_PurReqnAcctAssgmt | FunctionalArea | Sendr Fctl Area | |
| CreationDate | I_PurReqnAcctAssgmt | CreationDate | Time Stamp | |
| GoodsRecipientName | I_PurReqnAcctAssgmt | GoodsRecipientName | Recipient Name | |
| REIdentification | _REObjectByIntFinNumber | REIdentification | Real Estate Key | |
| NetworkActivityInternalID | I_PurReqnAcctAssgmt | NetworkActivityInternalID | Counter | |
| NetworkActivity | I_PurReqnAcctAssgmt | NetworkActivity | Activity | |
| PartnerAccountNumber | I_PurReqnAcctAssgmt | PartnerAccountNumber | Partner | |
| JointVentureRecoveryCode | I_PurReqnAcctAssgmt | JointVentureRecoveryCode | Recovery Ind. | |
| SettlementReferenceDate | I_PurReqnAcctAssgmt | SettlementReferenceDate | Reference date | |
| OrderInternalID | I_PurReqnAcctAssgmt | OrderInternalID | Plan No.f.Oper. | |
| OrderIntBillOfOperationsItem | I_PurReqnAcctAssgmt | OrderIntBillOfOperationsItem | Order Internal Bill of Operations Item | |
| EarmarkedFundsDocument | I_PurReqnAcctAssgmt | EarmarkedFundsDocument | Earmarked Funds | |
| EarmarkedFundsDocumentItem | I_PurReqnAcctAssgmt | EarmarkedFundsDocumentItem | Document Item | |
| CostCtrActivityType | I_PurReqnAcctAssgmt | CostCtrActivityType | Activity Type | |
| GrantID | I_PurReqnAcctAssgmt | GrantID | Sender Grant | |
| ValidityDate | I_PurReqnAcctAssgmt | ValidityDate | Valid On | |
| GrantName | ||||
| ChartOfAccounts | _ControllingArea | ChartOfAccounts | Node Class | |
| BudgetPeriod | I_PurReqnAcctAssgmt | BudgetPeriod | Budget Period | |
| FundedProgram | _FundedProgram | FundedProgram | Funded Program | |
| ServiceDocID | I_PurReqnAcctAssgmt | ServiceDocID | Service Document | |
| ServiceDocItemID | I_PurReqnAcctAssgmt | ServiceDocItemID | Service Doc. Item | |
| ServiceDocumentType | I_PurReqnAcctAssgmt | ServiceDocumentType | Transaction Type | |
| AssignedWBSElementExternalID | I_PurReqnAcctAssgmt | ProcmtHubWBSElementExternalID | WBS Element (Hub) | |
| ExtNetworkActivityForPurg | I_PurReqnAcctAssgmt | ExtNetworkActivityForPurg | ||
| _BudgetPeriodStdVH | _BudgetPeriodStdVH | |||
| _BusinessArea | I_PurReqnAcctAssgmt | _BusinessArea | ||
| _BusinessAreaText | I_PurReqnAcctAssgmt | _BusinessAreaText | ||
| _CostCenter | _CostCenter | |||
| _FixedAsset | _FixedAsset | |||
| _MasterFixedAsset | _MasterFixedAsset | |||
| _GLAccount | _GLAccount | |||
| _ProjectNetwork | _ProjectNetwork | |||
| _ControllingArea | _ControllingArea | |||
| _GrantStdVH | _GrantStdVH | |||
| _ProfitCenter | _ProfitCenter | |||
| _SalesOrder | _SalesOrder | |||
| _SalesDocumentScheduleLine | _SalesDocumentScheduleLine | |||
| _SalesOrderItem | _SalesOrderItem | |||
| _WBSElement | _WBSElement | |||
| _FndsMgmtFuncnlAreaStdVH | _FndsMgmtFuncnlAreaStdVH | |||
| _Order | _Order | |||
| _CostCenterActivityType | _CostCenterActivityType | |||
| _Purchaserequisitionitem | _Purchaserequisitionitem |
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_PurReqnAccountAssignment.
-- 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: CPURREQNACCTA
CREATE VIEW C_PurReqnAccountAssignment AS
SELECT
I_PurReqnAcctAssgmt.PurchaseRequisition AS PurchaseRequisition,
I_PurReqnAcctAssgmt.PurchaseRequisitionItem AS PurchaseRequisitionItem,
I_PurReqnAcctAssgmt.PurchaseReqnAcctAssgmtNumber AS PurchaseReqnAcctAssgmtNumber,
I_PurReqnAcctAssgmt.CostCenter AS CostCenter,
I_PurReqnAcctAssgmt.MasterFixedAsset AS MasterFixedAsset,
_Purchaserequisitionitem.CompanyCode AS CompanyCode,
I_PurReqnAcctAssgmt.IsDeleted AS IsDeleted,
I_PurReqnAcctAssgmt.GLAccount AS GLAccount,
I_PurReqnAcctAssgmt.MultipleAcctAssgmtDistrPercent AS PurReqnAcctAssgmtDistrPct,
_Purchaserequisitionitem.BaseUnit AS BaseUnit,
ProjectNetwork,
I_PurReqnAcctAssgmt.Quantity AS Quantity,
_Purchaserequisitionitem.BaseUnit AS UnitOfMeasure,
I_PurReqnAcctAssgmt.ControllingArea AS ControllingArea,
I_PurReqnAcctAssgmt.BusinessArea AS BusinessArea,
I_PurReqnAcctAssgmt.SalesOrder AS SalesOrder,
I_PurReqnAcctAssgmt.SalesOrderItem AS SalesOrderItem,
I_PurReqnAcctAssgmt.SalesOrderScheduleLine AS SalesOrderScheduleLine,
I_PurReqnAcctAssgmt.FixedAsset AS FixedAsset,
I_PurReqnAcctAssgmt.ProcessOrder AS ProcessOrder,
I_PurReqnAcctAssgmt.OrderID AS OrderID,
I_PurReqnAcctAssgmt.UnloadingPointName AS UnloadingPointName,
I_PurReqnAcctAssgmt.CostObject AS CostObject,
I_PurReqnAcctAssgmt.ProfitabilitySegment AS PrmtHbProfitabilitySegment,
I_PurReqnAcctAssgmt.ProfitCenter AS ProfitCenter,
I_PurReqnAcctAssgmt.WBSElementInternalID_2 AS WBSElementInternalID,
I_PurReqnAcctAssgmt.WBSElementExternalID_2 AS WBSElementExternalID,
_WBSElement.WBSDescription AS WBSDescription,
I_PurReqnAcctAssgmt.ProjectNetworkInternalID AS ProjectNetworkInternalID,
I_PurReqnAcctAssgmt.CommitmentItemShortID AS CommitmentItemShortID,
I_PurReqnAcctAssgmt.FundsCenter AS FundsCenter,
I_PurReqnAcctAssgmt.Fund AS Fund,
I_PurReqnAcctAssgmt.FunctionalArea AS FunctionalArea,
I_PurReqnAcctAssgmt.CreationDate AS CreationDate,
I_PurReqnAcctAssgmt.GoodsRecipientName AS GoodsRecipientName,
_REObjectByIntFinNumber.REIdentification AS REIdentification,
I_PurReqnAcctAssgmt.NetworkActivityInternalID AS NetworkActivityInternalID,
I_PurReqnAcctAssgmt.NetworkActivity AS NetworkActivity,
I_PurReqnAcctAssgmt.PartnerAccountNumber AS PartnerAccountNumber,
I_PurReqnAcctAssgmt.JointVentureRecoveryCode AS JointVentureRecoveryCode,
I_PurReqnAcctAssgmt.SettlementReferenceDate AS SettlementReferenceDate,
I_PurReqnAcctAssgmt.OrderInternalID AS OrderInternalID,
I_PurReqnAcctAssgmt.OrderIntBillOfOperationsItem AS OrderIntBillOfOperationsItem,
I_PurReqnAcctAssgmt.EarmarkedFundsDocument AS EarmarkedFundsDocument,
I_PurReqnAcctAssgmt.EarmarkedFundsDocumentItem AS EarmarkedFundsDocumentItem,
I_PurReqnAcctAssgmt.CostCtrActivityType AS CostCtrActivityType,
I_PurReqnAcctAssgmt.GrantID AS GrantID,
I_PurReqnAcctAssgmt.ValidityDate AS ValidityDate,
_GrantStdVH._Text[1:Language = $session.system_language].GrantName AS GrantName,
_ControllingArea.ChartOfAccounts AS ChartOfAccounts,
I_PurReqnAcctAssgmt.BudgetPeriod AS BudgetPeriod,
_FundedProgram.FundedProgram AS FundedProgram,
I_PurReqnAcctAssgmt.ServiceDocID AS ServiceDocID,
I_PurReqnAcctAssgmt.ServiceDocItemID AS ServiceDocItemID,
I_PurReqnAcctAssgmt.ServiceDocumentType AS ServiceDocumentType,
I_PurReqnAcctAssgmt.ProcmtHubWBSElementExternalID AS AssignedWBSElementExternalID,
I_PurReqnAcctAssgmt.ExtNetworkActivityForPurg AS ExtNetworkActivityForPurg,
I_PurReqnAcctAssgmt._BusinessArea AS _BusinessArea,
I_PurReqnAcctAssgmt._BusinessAreaText AS _BusinessAreaText
FROM I_PurReqnAcctAssgmt
LEFT OUTER JOIN I_MM_SalesOrderItemVH AS _SalesOrderItem ON _SalesOrderItem.SalesOrder = SalesOrder AND _SalesOrderItem.SalesOrderItem = SalesOrderItem -- association [0..1]
LEFT OUTER JOIN I_MM_CostCenterValueHelp AS _CostCenter ON CostCenter = _CostCenter.CostCenter AND ControllingArea = _CostCenter.ControllingArea AND ValidityDate <= _CostCenter.ValidityEndDate -- association [0..1]
LEFT OUTER JOIN I_MM_FixedAssetValueHelp AS _FixedAsset ON MasterFixedAsset = _FixedAsset.MasterFixedAsset AND FixedAsset = _FixedAsset.FixedAsset AND companycode = _FixedAsset.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_MM_GLAccountVH AS _GLAccount ON GLAccount = _GLAccount.GLAccount AND companycode = _GLAccount.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_Purchaserequisitionitem AS _Purchaserequisitionitem ON PurchaseRequisition = _Purchaserequisitionitem.PurchaseRequisition AND PurchaseRequisitionItem = _Purchaserequisitionitem.PurchaseRequisitionItem -- association [1..1]
LEFT OUTER JOIN I_MM_LogisticsOrderVH AS _Order ON OrderID = _Order.OrderID -- association [0..1]
LEFT OUTER JOIN I_MM_ProfitCenterValueHelp AS _ProfitCenter ON ControllingArea = _ProfitCenter.ControllingArea AND ProfitCenter = _ProfitCenter.ProfitCenter AND ValidityDate <= _ProfitCenter.ValidityEndDate -- association [0..1]
LEFT OUTER JOIN I_MM_SalesOrderValueHelp AS _SalesOrder ON SalesOrder = _SalesOrder.SalesOrder -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElement ON _WBSElement.WBSElementInternalID = WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_BudgetPeriodStdVH AS _BudgetPeriodStdVH ON _BudgetPeriodStdVH.BudgetPeriod = BudgetPeriod -- association [0..1]
LEFT OUTER JOIN I_GrantStdVH AS _GrantStdVH ON GrantID = _GrantStdVH.GrantID -- association [0..1]
LEFT OUTER JOIN I_FundedPgmByPurReqnAcctAssgmt AS _FundedProgram ON PurchaseRequisition = _FundedProgram.PurchaseRequisition AND PurchaseRequisitionItem = _FundedProgram.PurchaseRequisitionItem AND PurchaseReqnAcctAssgmtNumber = _FundedProgram.PurchaseReqnAcctAssgmtNumber -- association [1..1]
LEFT OUTER JOIN I_MasterFixedAsset AS _MasterFixedAsset ON companycode = _MasterFixedAsset.CompanyCode AND MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset -- 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