P_ReleaseDocumentationValues8

DDL: P_RELEASEDOCUMENTATIONVALUES8 SQL: PMMRELDOCVAL8 Type: view CONSUMPTION

P_ReleaseDocumentationValues8 is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_PurchaseContractHistory, I_PurchaseContractItem) and exposes 16 fields with key fields PurchaseContract, PurchaseContractItem, ReleaseOrder, ReleaseOrderItem.

Data Sources (2)

SourceAliasJoin Type
I_PurchaseContractHistory PurchaseContractHistory from
I_PurchaseContractItem PurchaseContractItem inner

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PMMRELDOCVAL8 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract I_PurchaseContractHistory PurchaseContract Purchasing Doc.
KEY PurchaseContractItem I_PurchaseContractHistory PurchaseContractItem Item
KEY ReleaseOrder I_PurchaseContractHistory ReleaseOrder Purchasing Doc.
KEY ReleaseOrderItem I_PurchaseContractHistory ReleaseOrderItem Item
ReleaseOrderItemQuantityUnit I_PurchaseContractHistory ReleaseOrderItemQuantityUnit Order Unit
OrderQuantityUnit I_PurchaseContractItem OrderQuantityUnit Sales Unit
Plant I_PurchaseContractItem Plant Valuation Area
PurchasingGroup
PurchasingOrganization
CompanyCode
PurchaseContractType PurchaseContractType Order Type
ReleaseOrderCurrency I_PurchaseContractHistory ReleaseOrderCurrency Currency
ReleaseOrderDate
ReleaseOrderItemLastChgDate Changed On
ReleaseOrderItemNetAmount
ReleaseOrderItemOrderQuantity ReleaseOrderItemOrderQuantity PO Quantity

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_ReleaseDocumentationValues8.
-- 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: PMMRELDOCVAL8

CREATE VIEW P_ReleaseDocumentationValues8 AS
SELECT
  PurchaseContractHistory.PurchaseContract AS PurchaseContract,
  PurchaseContractHistory.PurchaseContractItem AS PurchaseContractItem,
  PurchaseContractHistory.ReleaseOrder AS ReleaseOrder,
  PurchaseContractHistory.ReleaseOrderItem AS ReleaseOrderItem,
  PurchaseContractHistory.ReleaseOrderItemQuantityUnit AS ReleaseOrderItemQuantityUnit,
  PurchaseContractItem.OrderQuantityUnit AS OrderQuantityUnit,
  PurchaseContractItem.Plant AS Plant,
  PurchaseContractItem._PurchaseContract.PurchasingGroup AS PurchasingGroup,
  PurchaseContractItem._PurchaseContract.PurchasingOrganization AS PurchasingOrganization,
  PurchaseContractItem._PurchaseContract.CompanyCode AS CompanyCode,
  PurchaseContractType,
  PurchaseContractHistory.ReleaseOrderCurrency AS ReleaseOrderCurrency,
  cast(PurchaseContractHistory.ReleaseOrderDate as bedat) AS ReleaseOrderDate,
  cast(ReleaseOrderItemLastChgDate as aedat) AS ReleaseOrderItemLastChgDate,
  cast(PurchaseContractHistory.ReleaseOrderItemNetAmount as abap.curr(21,2)) AS ReleaseOrderItemNetAmount,
  ReleaseOrderItemOrderQuantity
FROM I_PurchaseContractHistory AS PurchaseContractHistory
INNER JOIN I_PurchaseContractItem AS PurchaseContractItem ON /* join condition not captured in parsed metadata */
;