I_PPS_PurReqnAcctAssgmt
Purchase Reqn Account Assignment
I_PPS_PurReqnAcctAssgmt is a Composite CDS View that provides data about "Purchase Reqn Account Assignment" in SAP S/4HANA. It reads from 1 data source (I_PurReqnAcctAssgmtBasic) and exposes 59 fields with key fields PurchaseRequisition, PurchaseRequisitionItem, PurReqnAcctAssgmtNmbr. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurReqnAcctAssgmtBasic | I_PurReqnAcctAssgmtBasic | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PurchaseRequisitionItemBasic | _PurchaseReqnItemBsc | _PurchaseReqnItemBsc.PurchaseRequisition = $projection.PurchaseRequisition and _PurchaseReqnItemBsc.PurchaseRequisitionItem = $projection.PurchaseRequisitionItem |
| [1..1] | I_Plant | _Plant | $projection.plant = _Plant.Plant |
| [0..*] | I_BusinessAreaText | _BusinessAreaText | $projection.BusinessArea = _BusinessAreaText.BusinessArea |
| [0..1] | I_SalesOrder | _SalesOrder | $projection.SalesOrder = _SalesOrder.SalesOrder |
| [0..1] | I_SalesOrderItem | _SalesOrderItem | $projection.SalesOrder = _SalesOrderItem.SalesOrder and $projection.SalesOrderItem = _SalesOrderItem.SalesOrderItem |
| [0..1] | I_WBSElementBasicData | _WBSElementBasicData | $projection.WBSElementInternalID_2 = _WBSElementBasicData.WBSElementInternalID |
| [0..1] | I_Order | _Order | $projection.OrderID = _Order.OrderID |
| [0..1] | I_ProjectNetwork | _ProjectNetwork | $projection.ProjectNetwork = _ProjectNetwork.ProjectNetwork |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Purchase Reqn Account Assignment | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.extensibility.extensible | true | view |
Fields (59)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseRequisition | PurchaseRequisition | Requisition | |
| KEY | PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item | |
| KEY | PurReqnAcctAssgmtNmbr | PurchaseReqnAcctAssgmtNumber | Ser.no.acc.ass. | |
| Plant | _PurchaseReqnItemBsc | Plant | Valuation Area | |
| CostCenter | CostCenter | Cost Center | ||
| MasterFixedAsset | MasterFixedAsset | Fixed Asset | ||
| ProjectNetwork | ProjectNetwork | Order | ||
| Quantity | Quantity | Value | ||
| BaseUnit | _PurchaseReqnItemBsc | BaseUnit | Unit of Measure | |
| MultipleAcctAssgmtDistrPercent | MultipleAcctAssgmtDistrPercent | Distribution | ||
| PurReqnNetAmount | PurReqnNetAmount | Net Value | ||
| PurReqnItemCurrency | _PurchaseReqnItemBsc | PurReqnItemCurrency | Currency | |
| IsDeleted | IsDeleted | TRUE | ||
| GLAccount | GLAccount | General Ledger | ||
| BusinessArea | BusinessArea | Business Area | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| SalesOrderScheduleLine | SalesOrderScheduleLine | SOrder schedule | ||
| FixedAsset | FixedAsset | Sub-number | ||
| OrderID | OrderID | Order ID | ||
| UnloadingPointName | UnloadingPointName | Unloading Point Name | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| ProfitabilitySegment | ProfitabilitySegment | Profitability Segment | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| WBSElementInternalID | ||||
| WBSElementInternalID_2 | WBSElementInternalID_2 | |||
| WBSElement | ||||
| WBSElementExternalID | ||||
| WBSElementExternalID_2 | _WBSElementBasicData | WBSElementExternalID | WBS Element External ID | |
| ProjectNetworkInternalID | ProjectNetworkInternalID | Plan No.f.Oper. | ||
| CommitmentItemShortID | CommitmentItemShortID | Commitment Item Short ID | ||
| FundsCenter | FundsCenter | Funds Center | ||
| Fund | Fund | Sender Fund | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| CreationDate | CreationDate | Time Stamp | ||
| GoodsRecipientName | GoodsRecipientName | Recipient Name | ||
| REInternalFinNumber | REInternalFinNumber | Real Estate Key | ||
| NetworkActivityInternalID | NetworkActivityInternalID | Counter | ||
| PartnerAccountNumber | PartnerAccountNumber | Partner | ||
| JointVentureRecoveryCode | JointVentureRecoveryCode | Recovery Ind. | ||
| SettlementReferenceDate | SettlementReferenceDate | Reference date | ||
| CostObject | CostObject | Cost Object | ||
| EarmarkedFundsDocument | EarmarkedFundsDocument | Earmarked Funds | ||
| EarmarkedFundsDocumentItem | EarmarkedFundsDocumentItem | Document Item | ||
| CostCtrActivityType | CostCtrActivityType | Activity Type | ||
| BusinessProcess | BusinessProcess | Business Process | ||
| GrantID | GrantID | Sender Grant | ||
| ValidityDate | ||||
| BudgetPeriod | BudgetPeriod | Budget Period | ||
| PubSecSplitBatchNumberID | PubSecSplitBatchNumberID | Dist.Batch No. | ||
| PubSecSplitAuthznGroup | PubSecSplitAuthznGroup | Auth.Group | ||
| _PurchaseReqnItemBsc | _PurchaseReqnItemBsc | |||
| _BusinessAreaText | _BusinessAreaText | |||
| _SalesOrderItem | _SalesOrderItem | |||
| _SalesOrder | _SalesOrder | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _Plant | _Plant | |||
| _Order | _Order | |||
| _ProjectNetwork | _ProjectNetwork |
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 I_PPS_PurReqnAcctAssgmt.
-- 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.
CREATE VIEW I_PPS_PurReqnAcctAssgmt AS
SELECT
PurchaseRequisition,
PurchaseRequisitionItem,
PurchaseReqnAcctAssgmtNumber AS PurReqnAcctAssgmtNmbr,
_PurchaseReqnItemBsc.Plant AS Plant,
CostCenter,
MasterFixedAsset,
ProjectNetwork,
Quantity,
_PurchaseReqnItemBsc.BaseUnit AS BaseUnit,
MultipleAcctAssgmtDistrPercent,
PurReqnNetAmount,
_PurchaseReqnItemBsc.PurReqnItemCurrency AS PurReqnItemCurrency,
IsDeleted,
GLAccount,
BusinessArea,
SalesOrder,
SalesOrderItem,
SalesOrderScheduleLine,
FixedAsset,
OrderID,
UnloadingPointName,
ControllingArea,
ProfitabilitySegment,
ProfitCenter,
cast( WBSElementInternalID_2 as ps_s4_pspnr ) AS WBSElementInternalID,
WBSElementInternalID_2,
cast( _WBSElementBasicData.WBSElement as ps_posid_edit ) AS WBSElement,
cast( _WBSElementBasicData.WBSElement as ps_posid_edit ) AS WBSElementExternalID,
_WBSElementBasicData.WBSElementExternalID AS WBSElementExternalID_2,
ProjectNetworkInternalID,
CommitmentItemShortID,
FundsCenter,
Fund,
FunctionalArea,
CreationDate,
GoodsRecipientName,
REInternalFinNumber,
NetworkActivityInternalID,
PartnerAccountNumber,
JointVentureRecoveryCode,
SettlementReferenceDate,
CostObject,
EarmarkedFundsDocument,
EarmarkedFundsDocumentItem,
CostCtrActivityType,
BusinessProcess,
GrantID,
cast(substring( cast(tstmp_current_utctimestamp() as abap.char( 17 ) ), 1, 8 ) as abap.dats ) AS ValidityDate,
BudgetPeriod,
PubSecSplitBatchNumberID,
PubSecSplitAuthznGroup
FROM I_PurReqnAcctAssgmtBasic
LEFT OUTER JOIN I_PurchaseRequisitionItemBasic AS _PurchaseReqnItemBsc ON _PurchaseReqnItemBsc.PurchaseRequisition = PurchaseRequisition AND _PurchaseReqnItemBsc.PurchaseRequisitionItem = PurchaseRequisitionItem -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON plant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_BusinessAreaText AS _BusinessAreaText ON BusinessArea = _BusinessAreaText.BusinessArea -- association [0..*]
LEFT OUTER JOIN I_SalesOrder AS _SalesOrder ON SalesOrder = _SalesOrder.SalesOrder -- association [0..1]
LEFT OUTER JOIN I_SalesOrderItem AS _SalesOrderItem ON SalesOrder = _SalesOrderItem.SalesOrder AND SalesOrderItem = _SalesOrderItem.SalesOrderItem -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementInternalID_2 = _WBSElementBasicData.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_Order AS _Order ON OrderID = _Order.OrderID -- association [0..1]
LEFT OUTER JOIN I_ProjectNetwork AS _ProjectNetwork ON ProjectNetwork = _ProjectNetwork.ProjectNetwork -- 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