P_PurOrdItmAcctAssgmtDualStack
Purchase order item from Dual stack
P_PurOrdItmAcctAssgmtDualStack is a Consumption CDS View that provides data about "Purchase order item from Dual stack" in SAP S/4HANA. It reads from 4 data sources (I_PurOrdScheduleLineEnhanced, I_PurgAnalyticsConfiguration, I_PurgAnalyticsConfiguration, I_PurchaseOrderItem) and exposes 80 fields with key fields PurchaseOrder, PurchaseOrderItem, PurchaseOrderItem.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_PurOrdScheduleLineEnhanced | I_PurOrdScheduleLineEnhanced | inner |
| I_PurgAnalyticsConfiguration | MigrationStatus | from |
| I_PurgAnalyticsConfiguration | MigrationStatus | union_all |
| I_PurchaseOrderItem | PurchaseOrderItem | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | bedat | |
| P_EndDate | bedat |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMMPOIDSTACK | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Purchase order item from Dual stack | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (80)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| KEY | PurchaseOrderItem | Purchasing Document Item | ||
| PurchaseRequisition | PurchaseRequisition | Requisition | ||
| PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item | ||
| Supplier | Supplier | Supplier | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurchaseOrderType | PurchaseOrderType | PO Type | ||
| PurchaseOrderDate | PurchaseOrderDate | PO Date | ||
| CreatedByUser | CreatedByUser | User Name | ||
| Currency | DocumentCurrency | Document Currency | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| Material | Material | Vehicle Model | ||
| Plant | Plant | Valuation Area | ||
| PurchaseOrderItemCategory | PurchaseOrderItemCategory | Item Category | ||
| PurchaseOrderCategory | PurchaseOrderCategory | Doc. Category | ||
| PurchaseContract | PurchaseContract | Purchasing Doc. | ||
| PurchaseContractItem | PurchaseContractItem | Item | ||
| ProductType | ProductTypeCode | Product Type Group | ||
| ServicePerformer | ServicePerformer | Service Performer | ||
| MultipleAcctAssgmtDistribution | MultipleAcctAssgmtDistribution | Distribution | ||
| AccountAssignmentCategory | AccountAssignmentCategory | Acct Assgmt Cat | ||
| PurchaseOrderQuantityUnit | PurchaseOrderQuantityUnit | Order Unit | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| NetAmount | Stated Amount | |||
| NetAmountInReportingCurrency | NetAmountInReportingCurrency | Net Amt Rpting Crcy1 | ||
| NetAmountInReportingCurrency2 | NetAmountInReportingCurrency2 | Net Amt Rpting Crcy2 | ||
| NetAmountInCoCodeCurrency | NetAmountInCoCodeCurrency | Net Amt (Co. Crcy) | ||
| NetPriceAmount | Net Price | |||
| NetPriceInReportingCurrency | NetPriceInReportingCurrency | Net Price: Re. Cu. 1 | ||
| NetPriceInReportingCurrency2 | NetPriceInReportingCurrency2 | Net Price: Re. Cu. 2 | ||
| NetPriceInCompanyCodeCrcy | NetPriceInCompanyCodeCrcy | Net Price: Cmp Cur. | ||
| IsReturnsItem | IsReturnsItem | Returns Item | ||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Del. Indicator | ||
| ReleaseIsNotCompleted | ReleaseIsNotCompleted | Subj.to Release | ||
| PurchasingCompletenessStatus | PurchasingCompletenessStatus | Incomplete | ||
| OrderQuantity | OrderQuantity | Quantity | ||
| AnalyticalReportingCurrency | AnalyticalReportingCurrency | Reporting Currency 1 | ||
| AnalyticalReportingCurrency2 | AnalyticalReportingCurrency2 | Reporting Currency 2 | ||
| KEY | PurchaseOrderItem | Purchasing Document Item | ||
| PurchaseRequisition | I_PurchaseOrderItem | PurchaseRequisition | Requisition | |
| PurchaseRequisitionItem | I_PurchaseOrderItem | PurchaseRequisitionItem | Requisn. item | |
| Supplier | Supplier | |||
| PurchasingOrganization | Purchasing Organization | |||
| PurchasingGroup | Purchasing Group | |||
| CompanyCode | Receiver Company Code | |||
| PurchaseOrderType | PO Type | |||
| PurchaseOrderDate | PO Date | |||
| CreatedByUser | User Name | |||
| Currency | Document Currency | |||
| MaterialGroup | I_PurchaseOrderItem | MaterialGroup | Product Group | |
| Material | I_PurchaseOrderItem | Material | Vehicle Model | |
| Plant | I_PurchaseOrderItem | Plant | Valuation Area | |
| PurchaseOrderItemCategory | I_PurchaseOrderItem | PurchaseOrderItemCategory | Item Category | |
| PurchaseOrderCategory | I_PurchaseOrderItem | PurchaseOrderCategory | Doc. Category | |
| PurchaseContract | I_PurchaseOrderItem | PurchaseContract | Purchasing Doc. | |
| PurchaseContractItem | I_PurchaseOrderItem | PurchaseContractItem | Item | |
| ProductType | I_PurchaseOrderItem | ProductType | Product Type Group | |
| ServicePerformer | I_PurchaseOrderItem | ServicePerformer | Service Performer | |
| MultipleAcctAssgmtDistribution | I_PurchaseOrderItem | MultipleAcctAssgmtDistribution | Distribution | |
| AccountAssignmentCategory | I_PurchaseOrderItem | AccountAssignmentCategory | Acct Assgmt Cat | |
| PurchaseOrderQuantityUnit | I_PurchaseOrderItem | PurchaseOrderQuantityUnit | Order Unit | |
| DocumentCurrency | Document Currency | |||
| NetAmount | I_PurchaseOrderItem | NetAmount | Stated Amount | |
| NetAmountInReportingCurrency | Net Amt Rpting Crcy1 | |||
| NetAmountInReportingCurrency2 | Net Amt Rpting Crcy2 | |||
| NetAmountInCoCodeCurrency | Net Amt (Co. Crcy) | |||
| NetPriceAmount | I_PurchaseOrderItem | NetPriceAmount | Net Price | |
| NetPriceInReportingCurrency | Net Price: Re. Cu. 1 | |||
| NetPriceInReportingCurrency2 | Net Price: Re. Cu. 2 | |||
| NetPriceInCompanyCodeCrcy | Net Price: Cmp Cur. | |||
| IsReturnsItem | IsReturnsItem | Returns Item | ||
| PurchasingDocumentDeletionCode | I_PurchaseOrderItem | PurchasingDocumentDeletionCode | Del. Indicator | |
| ReleaseIsNotCompleted | Subj.to Release | |||
| PurchasingCompletenessStatus | Incomplete | |||
| OrderQuantity | I_PurchaseOrderItem | OrderQuantity | Quantity | |
| AnalyticalReportingCurrency | Reporting Currency 1 | |||
| AnalyticalReportingCurrency2 | Reporting Currency 2 | |||
| _Plant | I_PurchaseOrderItem | _Plant |
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 P_PurOrdItmAcctAssgmtDualStack.
-- 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: PMMPOIDSTACK
-- Parameters: P_StartDate : bedat, P_EndDate : bedat
CREATE VIEW P_PurOrdItmAcctAssgmtDualStack AS
SELECT
PurchaseOrder,
cast( PurchaseOrderItem as vdm_purchaseorderitem ) AS PurchaseOrderItem,
PurchaseRequisition,
PurchaseRequisitionItem,
Supplier,
PurchasingOrganization,
PurchasingGroup,
CompanyCode,
PurchaseOrderType,
PurchaseOrderDate,
CreatedByUser,
DocumentCurrency AS Currency,
MaterialGroup,
Material,
Plant,
PurchaseOrderItemCategory,
PurchaseOrderCategory,
PurchaseContract,
PurchaseContractItem,
ProductTypeCode AS ProductType,
ServicePerformer,
MultipleAcctAssgmtDistribution,
AccountAssignmentCategory,
PurchaseOrderQuantityUnit,
DocumentCurrency,
cast(NetAmount as abap.curr( 21, 5 ) ) AS NetAmount,
NetAmountInReportingCurrency,
NetAmountInReportingCurrency2,
NetAmountInCoCodeCurrency,
cast(NetPriceAmount as abap.curr( 21, 5 ) ) AS NetPriceAmount,
NetPriceInReportingCurrency,
NetPriceInReportingCurrency2,
NetPriceInCompanyCodeCrcy,
IsReturnsItem,
PurchasingDocumentDeletionCode,
ReleaseIsNotCompleted,
PurchasingCompletenessStatus,
OrderQuantity,
AnalyticalReportingCurrency,
AnalyticalReportingCurrency2,
PurchaseOrderItem._Plant AS _Plant
FROM I_PurgAnalyticsConfiguration AS MigrationStatus
INNER JOIN I_PurOrdScheduleLineEnhanced ON /* join condition not captured in parsed metadata */
INNER JOIN I_PurchaseOrderItem AS PurchaseOrderItem ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_PurgAnalyticsConfiguration
;
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