R_CntrlPurContrVersHistoryTP

DDL: R_CNTRLPURCONTRVERSHISTORYTP Type: view_entity TRANSACTIONAL Package: RAP_MM_PUR_CNTRL_PUR_CONTR

Cntrl Purchase Contract Version History

R_CntrlPurContrVersHistoryTP is a Transactional CDS View that provides data about "Cntrl Purchase Contract Version History" in SAP S/4HANA. It reads from 1 data source (I_CntrlPurContrVersionHistory) and exposes 43 fields with key field CentralPurchaseContract. Part of development package RAP_MM_PUR_CNTRL_PUR_CONTR.

Data Sources (1)

SourceAliasJoin Type
I_CntrlPurContrVersionHistory I_CntrlPurContrVersionHistory from

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Cntrl Purchase Contract Version History view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
Metadata.ignorePropagatedAnnotations true view

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY CentralPurchaseContract CentralPurchaseContract Purchasing Doc.
PurchaseContractType PurchaseContractType Order Type
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
Supplier Supplier Supplier
PurchasingDocumentSubtype PurchasingDocumentSubtype Control
CompanyCode CompanyCode Receiver Company Code
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
DocumentCurrency DocumentCurrency Document Currency
IncotermsClassification IncotermsClassification Incoterms
IncotermsTransferLocation IncotermsTransferLocation Incoterms 2
PaymentTerms PaymentTerms Pyt Terms
CashDiscount1Days CashDiscount1Days Days from Baseline Date for Payment
CashDiscount2Days CashDiscount2Days Days from Baseline Date for Payment
NetPaymentDays NetPaymentDays Net Pmt Terms Period
CashDiscount1Percent CashDiscount1Percent Disc. Percent 1
CashDiscount2Percent CashDiscount2Percent Disc. Percent 2
PurchaseContractTargetAmount PurchaseContractTargetAmount Target Value
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
QuotationSubmissionDate QuotationSubmissionDate Quotation Date
SupplierQuotation SupplierQuotation RFQ
CorrespncExternalReference CorrespncExternalReference Your Reference
CorrespncInternalReference CorrespncInternalReference Our Reference
SupplierRespSalesPersonName SupplierRespSalesPersonName Salesperson
SupplierPhoneNumber SupplierPhoneNumber Telephone
IncotermsVersion IncotermsVersion Inco. Version
IncotermsLocation1 IncotermsLocation1 Inco. Location1
IncotermsLocation2 IncotermsLocation2 Inco. Location2
PurchasingDocumentName PurchasingDocumentName Purch. Doc. Name
LastChangeDateTime LastChangeDateTime Timestamp
CntrlPurContrFlxblDistrIsAllwd Boolean Variable (X = True, - = False, Space = Unknown)
PurchasingParentDocument PurchasingParentDocument Parent Document ID
ProcmtHubCompanyCodeGroupingID ProcmtHubCompanyCodeGroupingID Grouping ID
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
ActivePurchasingDocument ActivePurchasingDocument Active Purchase Doc
PurchasingDocumentVersion PurchasingDocumentVersion Version
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
PurchasingDocVersionReasonCode PurchasingDocVersionReasonCode Reason
PurchasingDocVersionStatus PurchasingDocVersionStatus Version status
_CntrlPurContr _CntrlPurContr

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 R_CntrlPurContrVersHistoryTP.
-- 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.

CREATE VIEW R_CntrlPurContrVersHistoryTP AS
SELECT
  CentralPurchaseContract,
  PurchaseContractType,
  PurchasingDocumentCategory,
  Supplier,
  PurchasingDocumentSubtype,
  CompanyCode,
  PurchasingOrganization,
  PurchasingGroup,
  DocumentCurrency,
  IncotermsClassification,
  IncotermsTransferLocation,
  PaymentTerms,
  CashDiscount1Days,
  CashDiscount2Days,
  NetPaymentDays,
  CashDiscount1Percent,
  CashDiscount2Percent,
  PurchaseContractTargetAmount,
  ValidityStartDate,
  ValidityEndDate,
  QuotationSubmissionDate,
  SupplierQuotation,
  CorrespncExternalReference,
  CorrespncInternalReference,
  SupplierRespSalesPersonName,
  SupplierPhoneNumber,
  IncotermsVersion,
  IncotermsLocation1,
  IncotermsLocation2,
  PurchasingDocumentName,
  LastChangeDateTime,
  cast (CntrlPurContrFlxblDistrIsAllwd as xfeld ) AS CntrlPurContrFlxblDistrIsAllwd,
  PurchasingParentDocument,
  ProcmtHubCompanyCodeGroupingID,
  IsEndOfPurposeBlocked,
  ActivePurchasingDocument,
  PurchasingDocumentVersion,
  CreatedByUser,
  CreationDate,
  CreationTime,
  PurchasingDocVersionReasonCode,
  PurchasingDocVersionStatus
FROM I_CntrlPurContrVersionHistory
;