C_PurContrSourceNomination

DDL: C_PURCONTRSOURCENOMINATION SQL: CPURCONTRSNOM Type: view CONSUMPTION

Purchase Contract Header View

C_PurContrSourceNomination is a Consumption CDS View that provides data about "Purchase Contract Header View" in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocumentItem) and exposes 7 fields with key fields PurchaseContract, PurchaseContractItem. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_PurchasingDocumentItem I_PurchasingDocumentItem from

Associations (1)

CardinalityTargetAliasCondition
[1..1] C_PurchaseContractHdr _PurchaseContractHdr $projection.PurchaseContract = _PurchaseContractHdr.PurchaseContract

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CPURCONTRSNOM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Purchase Contract Header View view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.personalData.blocking #REQUIRED view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract PurchasingDocument Purchasing Document
KEY PurchaseContractItem PurchasingDocumentItem Purchasing Doc. Item
SupplierName
ValidityEndDate _PurchaseContractHdr ValidityEndDate ValidTo
PaymentTerms _PurchaseContractHdr PaymentTerms Pyt Terms
DocumentCurrency _PurchaseContractHdr DocumentCurrency Document Currency
_PurchaseContractHdr _PurchaseContractHdr

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 C_PurContrSourceNomination.
-- 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: CPURCONTRSNOM

CREATE VIEW C_PurContrSourceNomination AS
SELECT
  PurchasingDocument AS PurchaseContract,
  PurchasingDocumentItem AS PurchaseContractItem,
  _PurchaseContractHdr._Supplier.SupplierName AS SupplierName,
  _PurchaseContractHdr.ValidityEndDate AS ValidityEndDate,
  _PurchaseContractHdr.PaymentTerms AS PaymentTerms,
  _PurchaseContractHdr.DocumentCurrency AS DocumentCurrency
FROM I_PurchasingDocumentItem
LEFT OUTER JOIN C_PurchaseContractHdr AS _PurchaseContractHdr ON PurchaseContract = _PurchaseContractHdr.PurchaseContract  -- association [1..1]
;