I_PPS_PurchaseOrderInformation
Purchase order Document Information
I_PPS_PurchaseOrderInformation is a Basic CDS View that provides data about "Purchase order Document Information" in SAP S/4HANA. It reads from 2 data sources (ekko, ekpo) and exposes 27 fields with key fields PurchasingHistoryDocument, PurchasingHistoryDocumentItem, CompanyCode, FiscalYear.
Data Sources (2)
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPPSPURINFO | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Purchase order Document Information | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingHistoryDocument | ekko | ebeln | Source PurchDoc |
| KEY | PurchasingHistoryDocumentItem | |||
| KEY | CompanyCode | ekko | bukrs | Value |
| KEY | FiscalYear | |||
| PurchasingDocument | ekko | ebeln | Source PurchDoc | |
| PurchasingDocumentItem | ekpo | ebelp | Item pur. doc. | |
| PurchasingDocumentType | ekko | bsart | Stnd purch.ord. | |
| PurchasingDocumentCategory | ekko | bstyp | Source doc.cat. | |
| PurchasingOrganization | ekko | ekorg | Purchasing Org. | |
| PurchasingGroup | ekko | ekgrp | Sub. purchasing grp | |
| PPSPurgHistDocumentType | ||||
| PostingDate | ekko | aedat | Obsolete | |
| Quantity | ekpo | menge | WarrCountValue | |
| UnitOfMeasure | ekpo | bprme | PO Price Unit | |
| PurchaseOrderQty | ekpo | menge | WarrCountValue | |
| POUnitOfMeasure | ekpo | meins | Valuation Unit | |
| AmountInLocalCurrency | ekpo | netwr | Value | |
| LocalCurrency | ekko | waers | Transaction Currency | |
| NetValueAmountInDocCurrency | ekpo | netwr | Value | |
| DocumentCurrency | ekko | waers | Transaction Currency | |
| PPSReferenceDocument | ||||
| PPSReferenceDocumentItem | ||||
| ReferenceDocumentFiscalYear | ||||
| PPSReferenceDocumentType | ||||
| ReferenceDocumentCategory | ||||
| SemanticObject | ||||
| ReferenceSemanticObject |
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_PurchaseOrderInformation.
-- 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: IPPSPURINFO
CREATE VIEW I_PPS_PurchaseOrderInformation AS
SELECT
PurchasingDocument.ebeln AS PurchasingHistoryDocument,
cast( right (PurchasingDocumentItem.ebelp , 4) as mblpo ) AS PurchasingHistoryDocumentItem,
PurchasingDocument.bukrs AS CompanyCode,
cast( left (PurchasingDocument.aedat,4 ) as gjahr ) AS FiscalYear,
PurchasingDocument.ebeln AS PurchasingDocument,
PurchasingDocumentItem.ebelp AS PurchasingDocumentItem,
PurchasingDocument.bsart AS PurchasingDocumentType,
PurchasingDocument.bstyp AS PurchasingDocumentCategory,
PurchasingDocument.ekorg AS PurchasingOrganization,
PurchasingDocument.ekgrp AS PurchasingGroup,
cast( POHistory.vgabe as pps_e_purch_hist_documenttype) AS PPSPurgHistDocumentType,
PurchasingDocument.aedat AS PostingDate,
PurchasingDocumentItem.menge AS Quantity,
PurchasingDocumentItem.bprme AS UnitOfMeasure,
PurchasingDocumentItem.menge AS PurchaseOrderQty,
PurchasingDocumentItem.meins AS POUnitOfMeasure,
PurchasingDocumentItem.netwr AS AmountInLocalCurrency,
PurchasingDocument.waers AS LocalCurrency,
PurchasingDocumentItem.netwr AS NetValueAmountInDocCurrency,
PurchasingDocument.waers AS DocumentCurrency,
cast( ' ' as pps_e_referencedocument ) AS PPSReferenceDocument,
cast( ' ' as ebelp ) AS PPSReferenceDocumentItem,
cast( ' ' as gjahr ) AS ReferenceDocumentFiscalYear,
cast( ' ' as char4 ) AS PPSReferenceDocumentType,
' ' AS ReferenceDocumentCategory,
'PurchaseOrder' AS SemanticObject,
cast ( ' ' as pps_e_semantic_object ) AS ReferenceSemanticObject
FROM ekko AS PurchasingDocument
INNER JOIN ekpo AS PurchasingDocumentItem ON /* join condition not captured in parsed metadata */
;
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