Deprecated
This CDS view is deprecated in S/4HANA. View all deprecated CDS views →

P_PurchaseOrderHistCastAmt

DDL: P_PURCHASEORDERHISTCASTAMT SQL: PPURDORDHISAMT Type: view CONSUMPTION

Purchase Order History Cast aMount

P_PurchaseOrderHistCastAmt is a Consumption CDS View that provides data about "Purchase Order History Cast aMount" in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocumentHistory) and exposes 6 fields with key fields PurchaseOrder, PurchaseOrderItem.

Data Sources (1)

SourceAliasJoin Type
I_PurchasingDocumentHistory I_PurchasingDocumentHistory from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PPURDORDHISAMT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
VDM.private true view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.status #DEPRECATED view
EndUserText.label Purchase Order History Cast aMount view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchasingDocument Purchasing Document
KEY PurchaseOrderItem PurchasingDocumentItem Purchasing Doc. Item
PurchaseOrderAmount
DocumentDate DocumentDate Journal Entry Date
DebitCreditCode DebitCreditCode Single-Character Flag
Currency Currency Valuation Crcy

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_PurchaseOrderHistCastAmt.
-- 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: PPURDORDHISAMT

CREATE VIEW P_PurchaseOrderHistCastAmt AS
SELECT
  PurchasingDocument AS PurchaseOrder,
  PurchasingDocumentItem AS PurchaseOrderItem,
  cast(PurchaseOrderAmount as abap.curr(21,5)) AS PurchaseOrderAmount,
  DocumentDate,
  DebitCreditCode,
  Currency
FROM I_PurchasingDocumentHistory
;