I_PurReqnHdrItmAcAsWrkItm
PR Header Approval Account Assignment
I_PurReqnHdrItmAcAsWrkItm is a Composite CDS View that provides data about "PR Header Approval Account Assignment" in SAP S/4HANA. It reads from 1 data source (I_PurReqnAcctAssgmt) and exposes 84 fields with key fields WorkflowTaskInternalID, PurchaseRequisition, PurchaseRequisitionItem, PurReqnAcctAssgmtNmbr. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurReqnAcctAssgmt | _PurchaseReqnAcctAssgmt | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PurchaseReqnHeaderWorkItem | _PurchaseRequisitionWorkItem | $projection.PurchaseRequisition = _PurchaseRequisitionWorkItem.PurchaseRequisition |
| [1..1] | I_WorkItemPurReqnHdrItemDetail | _WorkItemPurReqnHdrItemDetail | $projection.PurchaseRequisition = _WorkItemPurReqnHdrItemDetail.PurchaseRequisition and $projection.PurchaseRequisitionItem = _WorkItemPurReqnHdrItemDetail.PurchaseRequisitionItem and $projection.workflowtaskinternalid = _WorkItemPurReqnHdrItemDetail.WorkflowTaskInternalID |
| [1..1] | I_PurchaseReqnItem | _PurchaseReqnItem | _PurchaseReqnItem.PurchaseRequisition = $projection.PurchaseRequisition and _PurchaseReqnItem.PurchaseRequisitionItem = $projection.PurchaseRequisitionItem |
| [0..*] | I_CommitmentItem | _CommitmentItem | $projection.CommitmentItem = _CommitmentItem.CommitmentItem |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPRHDITACTWRKITM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| EndUserText.label | PR Header Approval Account Assignment | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view |
Fields (84)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkflowTaskInternalID | _PurchaseRequisitionWorkItem | WorkflowTaskInternalID | Work Item ID |
| KEY | PurchaseRequisition | PurchaseRequisition | Requisition | |
| KEY | PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item | |
| KEY | PurReqnAcctAssgmtNmbr | PurchaseReqnAcctAssgmtNumber | ||
| CostCenter | CostCenter | Cost Center | ||
| MasterFixedAsset | MasterFixedAsset | Fixed Asset | ||
| ProjectNetwork | ProjectNetwork | Order | ||
| IsDeleted | IsDeleted | TRUE | ||
| SDDocument | SDDocument | SD Document | ||
| CostElement | CostElement | Cost Element | ||
| BusinessArea | BusinessArea | Business Area | ||
| SalesOrder | SalesOrder | Sales Order | ||
| SalesDocumentItem | SalesDocumentItem | Sales Document Item | ||
| SalesOrderScheduleLine | SalesOrderScheduleLine | Sales Order Schedule Line Number | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| ScheduleLine | ScheduleLine | Schedule Line | ||
| FixedAsset | FixedAsset | Sub-number | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| WBSElementInternalID_2 | WBSElementInternalID_2 | |||
| WBSElement | WBSElement | WBS Internal ID | ||
| WBSElementExternalID_2 | WBSElementExternalID_2 | WBS Element External ID | ||
| CommitmentItem | Commitment Item Short ID | |||
| FundsCenter | FundsCenter | Funds Center | ||
| Fund | Fund | Sender Fund | ||
| ProcessOrder | ProcessOrder | Order | ||
| ProfitabilitySegment | ProfitabilitySegment | Profitability Segment | ||
| CostObject | CostObject | Cost Object | ||
| UnloadingPointName | UnloadingPointName | Unloading Point Name | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| OrderID | OrderID | Order ID | ||
| CreationDate | CreationDate | Time Stamp | ||
| ProjectNetworkInternalID | ProjectNetworkInternalID | Project Network Internal ID | ||
| BaseUnit | _PurchaseReqnItem | BaseUnit | Unit of Measure | |
| PurReqnItemCurrency | _PurchaseReqnItem | PurReqnItemCurrency | Currency | |
| GoodsRecipientName | GoodsRecipientName | Goods Recipient | ||
| RealEstateObject | RealEstateObject | Real Estate Key | ||
| REInternalFinNumber | REInternalFinNumber | Real Estate Key | ||
| NetworkActivityInternalID | NetworkActivityInternalID | Internal counter | ||
| PartnerAccountNumber | PartnerAccountNumber | Partner | ||
| JointVentureRecoveryCode | JointVentureRecoveryCode | Recovery Ind. | ||
| SettlementReferenceDate | SettlementReferenceDate | Reference date | ||
| OrderInternalID | OrderInternalID | Plan No.f.Oper. | ||
| OrderIntBillOfOperationsItem | OrderIntBillOfOperationsItem | General counter for order | ||
| EarmarkedFundsDocument | EarmarkedFundsDocument | Earmarked Funds | ||
| EarmarkedFundsDocumentItem | EarmarkedFundsDocumentItem | Document Item | ||
| CostCtrActivityType | CostCtrActivityType | Activity Type | ||
| BusinessProcess | BusinessProcess | Business Process | ||
| GrantID | GrantID | Sender Grant | ||
| ValidityDate | ValidityDate | Valid On | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| BudgetPeriod | BudgetPeriod | Budget Period | ||
| FundedProgram | Funded Program | |||
| GLAccount | GLAccount | General Ledger | ||
| Quantity | Quantity | Value | ||
| MultipleAcctAssgmtDistrPercent | MultipleAcctAssgmtDistrPercent | Distribution | ||
| PurReqnNetAmount | PurReqnNetAmount | Net Value | ||
| _WorkItemPurReqnHdrItemDetail | _WorkItemPurReqnHdrItemDetail | |||
| _CostCenter | _CostCenter | |||
| _CostCenterText | _CostCenterText | |||
| _BusinessArea | _BusinessArea | |||
| _BusinessAreaText | _BusinessAreaText | |||
| _ProfitCenter | _ProfitCenter | |||
| _ProfitCenterText | _ProfitCenterText | |||
| _SalesOrderItem | _SalesOrderItem | |||
| _SalesOrder | _SalesOrder | |||
| _ControllingArea | _ControllingArea | |||
| _GLAccount | _GLAccount | |||
| _GLAccountText | _GLAccountText | |||
| _SalesDocumentScheduleLine | _SalesDocumentScheduleLine | |||
| _WBSElementByInternalKey | _WBSElementByInternalKey | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _FunctionalArea | _FunctionalArea | |||
| _FunctionalAreaText | _FunctionalAreaText | |||
| _CostCenterActivityType | _CostCenterActivityType | |||
| _CostCenterActivityTypeText | _CostCenterActivityTypeText | |||
| _BusinessProcess | _BusinessProcess | |||
| _BusinessProcessText | _BusinessProcessText | |||
| _FixedAsset | _FixedAsset | |||
| _CommitmentItem | _CommitmentItem | |||
| _Order | _Order | |||
| _ProjectNetwork | _ProjectNetwork | |||
| _PurchaseReqnItem | _PurchaseReqnItem |
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_PurReqnHdrItmAcAsWrkItm.
-- 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: IPRHDITACTWRKITM
CREATE VIEW I_PurReqnHdrItmAcAsWrkItm AS
SELECT
_PurchaseRequisitionWorkItem.WorkflowTaskInternalID AS WorkflowTaskInternalID,
PurchaseRequisition,
PurchaseRequisitionItem,
PurchaseReqnAcctAssgmtNumber AS PurReqnAcctAssgmtNmbr,
CostCenter,
MasterFixedAsset,
ProjectNetwork,
IsDeleted,
SDDocument,
CostElement,
BusinessArea,
SalesOrder,
SalesDocumentItem,
SalesOrderScheduleLine,
SalesOrderItem,
ScheduleLine,
FixedAsset,
ControllingArea,
ProfitCenter,
WBSElementInternalID,
WBSElementInternalID_2,
WBSElement,
WBSElementExternalID_2,
cast(CommitmentItemShortID as fipos) AS CommitmentItem,
FundsCenter,
Fund,
ProcessOrder,
ProfitabilitySegment,
CostObject,
UnloadingPointName,
FunctionalArea,
OrderID,
CreationDate,
ProjectNetworkInternalID,
_PurchaseReqnItem.BaseUnit AS BaseUnit,
_PurchaseReqnItem.PurReqnItemCurrency AS PurReqnItemCurrency,
GoodsRecipientName,
RealEstateObject,
REInternalFinNumber,
NetworkActivityInternalID,
PartnerAccountNumber,
JointVentureRecoveryCode,
SettlementReferenceDate,
OrderInternalID,
OrderIntBillOfOperationsItem,
EarmarkedFundsDocument,
EarmarkedFundsDocumentItem,
CostCtrActivityType,
BusinessProcess,
GrantID,
ValidityDate,
ChartOfAccounts,
BudgetPeriod,
cast (' ' as fm_measure) AS FundedProgram,
GLAccount,
Quantity,
MultipleAcctAssgmtDistrPercent,
PurReqnNetAmount
FROM I_PurReqnAcctAssgmt AS _PurchaseReqnAcctAssgmt
LEFT OUTER JOIN I_PurchaseReqnHeaderWorkItem AS _PurchaseRequisitionWorkItem ON PurchaseRequisition = _PurchaseRequisitionWorkItem.PurchaseRequisition -- association [1..1]
LEFT OUTER JOIN I_WorkItemPurReqnHdrItemDetail AS _WorkItemPurReqnHdrItemDetail ON PurchaseRequisition = _WorkItemPurReqnHdrItemDetail.PurchaseRequisition AND PurchaseRequisitionItem = _WorkItemPurReqnHdrItemDetail.PurchaseRequisitionItem AND workflowtaskinternalid = _WorkItemPurReqnHdrItemDetail.WorkflowTaskInternalID -- association [1..1]
LEFT OUTER JOIN I_PurchaseReqnItem AS _PurchaseReqnItem ON _PurchaseReqnItem.PurchaseRequisition = PurchaseRequisition AND _PurchaseReqnItem.PurchaseRequisitionItem = PurchaseRequisitionItem -- association [1..1]
LEFT OUTER JOIN I_CommitmentItem AS _CommitmentItem ON CommitmentItem = _CommitmentItem.CommitmentItem -- association [0..*]
;
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