P_PurchaseContractTargetAmount

DDL: P_PURCHASECONTRACTTARGETAMOUNT SQL: PMMPCTARAMT Type: view CONSUMPTION

P_PurchaseContractTargetAmount is a Consumption CDS View in SAP S/4HANA. It reads from 3 data sources (I_PurContractClassification, I_PurchaseContract, I_PurchaseContractItem) and exposes 4 fields with key field PurchaseContract.

Data Sources (3)

SourceAliasJoin Type
I_PurContractClassification ContractClassification inner
I_PurchaseContract PurchaseContract inner
I_PurchaseContractItem PurchaseContractItem from

Parameters (4)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_Material matnr
P_StartDate vdm_validitystart
P_EndDate vdm_validityend

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PMMPCTARAMT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
VDM.private true view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract I_PurchaseContract ActivePurchasingDocument Active Purchase Doc
PurchasingGroup I_PurchaseContract PurchasingGroup Purchasing Group
PurchasingOrganization I_PurchaseContract PurchasingOrganization Purchasing Organization
Plant Plant Valuation Area

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_PurchaseContractTargetAmount.
-- 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: PMMPCTARAMT
-- Parameters: P_DisplayCurrency : displaycurrency, P_Material : matnr, P_StartDate : vdm_validitystart, P_EndDate : vdm_validityend

CREATE VIEW P_PurchaseContractTargetAmount AS
SELECT
  PurchaseContract.ActivePurchasingDocument AS PurchaseContract,
  PurchaseContract.PurchasingGroup AS PurchasingGroup,
  PurchaseContract.PurchasingOrganization AS PurchasingOrganization,
  Plant
FROM I_PurchaseContractItem AS PurchaseContractItem
INNER JOIN I_PurchaseContract AS PurchaseContract ON /* join condition not captured in parsed metadata */
INNER JOIN I_PurContractClassification AS ContractClassification ON /* join condition not captured in parsed metadata */
;