P_ReleaseDocumentationForPC

DDL: P_RELEASEDOCUMENTATIONFORPC SQL: PMMRELVALPC Type: view CONSUMPTION

Release Documentation For Contracts

P_ReleaseDocumentationForPC is a Consumption CDS View that provides data about "Release Documentation For Contracts" in SAP S/4HANA. It reads from 3 data sources (I_PurchaseContract, I_PurchaseContractHistory, I_PurchaseContractItem) and exposes 9 fields with key fields PurchaseContract, PurchaseContractItem, ReleaseOrder, ReleaseOrderItem.

Data Sources (3)

SourceAliasJoin Type
I_PurchaseContract PurchaseContract inner
I_PurchaseContractHistory PurchaseContractHistory from
I_PurchaseContractItem PurchaseContractItem inner

Parameters (1)

NameTypeDefault
P_PurchaseContract ebeln

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PMMRELVALPC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Release Documentation For Contracts view

Fields (9)

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
ReleaseOrderItemNetAmount
ReleaseOrderCurrency I_PurchaseContractHistory ReleaseOrderCurrency Currency
DocumentCurrency I_PurchaseContract DocumentCurrency Document Currency
ReleaseOrderDate I_PurchaseContractHistory ReleaseOrderDate PO Date
quan130asReleaseOrderItemOrderQuantity

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_ReleaseDocumentationForPC.
-- 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: PMMRELVALPC
-- Parameters: P_PurchaseContract : ebeln

CREATE VIEW P_ReleaseDocumentationForPC AS
SELECT
  PurchaseContractHistory.PurchaseContract AS PurchaseContract,
  PurchaseContractHistory.PurchaseContractItem AS PurchaseContractItem,
  PurchaseContractHistory.ReleaseOrder AS ReleaseOrder,
  PurchaseContractHistory.ReleaseOrderItem AS ReleaseOrderItem,
  cast(PurchaseContractHistory.ReleaseOrderItemNetAmount as abap.curr(21,2)) AS ReleaseOrderItemNetAmount,
  PurchaseContractHistory.ReleaseOrderCurrency AS ReleaseOrderCurrency,
  PurchaseContract.DocumentCurrency AS DocumentCurrency,
  PurchaseContractHistory.ReleaseOrderDate AS ReleaseOrderDate,
  cast( unit_conversion ( quantity => ReleaseOrderItemOrderQuantity, source_unit => ReleaseOrderItemQuantityUnit, target_unit => PurchaseContractItem.OrderQuantityUnit, error_handling => 'KEEP_UNCONVERTED' ) as abap.quan( 13, 0 ) ) as ReleaseOrderItemOrderQuantity AS quan130asReleaseOrderItemOrderQuantity
FROM I_PurchaseContractHistory AS PurchaseContractHistory
INNER JOIN I_PurchaseContractItem AS PurchaseContractItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_PurchaseContract AS PurchaseContract ON /* join condition not captured in parsed metadata */
;