I_PPS_PurchaseOrderInformation

DDL: I_PPS_PURCHASEORDERINFORMATION SQL: IPPSPURINFO Type: view BASIC

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)

SourceAliasJoin Type
ekko PurchasingDocument from
ekpo PurchasingDocumentItem inner

Annotations (10)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;