C_PurchaseContractTemplate

DDL: C_PURCHASECONTRACTTEMPLATE SQL: CCONTRTMPL Type: view CONSUMPTION Package: ODATA_MM_OA_MAINTAIN

C view for contract template

C_PurchaseContractTemplate is a Consumption CDS View that provides data about "C view for contract template" in SAP S/4HANA. It reads from 1 data source (I_PurContrTemplate) and exposes 19 fields with key fields DraftUUID, PurchaseContract. Part of development package ODATA_MM_OA_MAINTAIN.

Data Sources (1)

SourceAliasJoin Type
I_PurContrTemplate I_PurContrTemplate from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName CCONTRTMPL view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
EndUserText.label C view for contract template view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY DraftUUID DraftUUID UUID
KEY PurchaseContract PurchaseContract Purchasing Doc.
PurchaseContractForEdit PurchaseContractForEdit Purchase Contract
PurchaseContractType PurchaseContractType Order Type
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
PurchasingDocumentName PurchasingDocumentName Purch. Doc. Name
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingOrganization PurchasingOrganization Purchasing Organization
IsPurContrTemplate IsPurContrTemplate Is Contract Template
DocumentCurrency DocumentCurrency Document Currency
PurchaseContractTargetAmount PurchaseContractTargetAmount Target Value
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
Supplier Supplier Supplier
ExchangeRateIsFixed ExchangeRateIsFixed Fixed Exch.Rate
CreatedByUser CreatedByUser User Name
ChangeRecordReferenceUUID ChangeRecordReferenceUUID UUID
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
IsActiveEntity

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_PurchaseContractTemplate.
-- 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: CCONTRTMPL

CREATE VIEW C_PurchaseContractTemplate AS
SELECT
  DraftUUID,
  PurchaseContract,
  PurchaseContractForEdit,
  PurchaseContractType,
  PurchasingDocumentCategory,
  PurchasingDocumentName,
  PurchasingGroup,
  PurchasingOrganization,
  IsPurContrTemplate,
  DocumentCurrency,
  PurchaseContractTargetAmount,
  ValidityStartDate,
  ValidityEndDate,
  Supplier,
  ExchangeRateIsFixed,
  CreatedByUser,
  ChangeRecordReferenceUUID,
  IsEndOfPurposeBlocked,
  '' AS IsActiveEntity
FROM I_PurContrTemplate
;