C_PurchaseContractMassUpdt
Mass Changes to Purchase Contracts
C_PurchaseContractMassUpdt is a Consumption CDS View that provides data about "Mass Changes to Purchase Contracts" in SAP S/4HANA. It reads from 1 data source (P_PurchaseContractMassUpdt) and exposes 63 fields with key field PurchaseContract. It has 5 associations to related views. It is exposed through 1 OData service (ASQL_F2669). Part of development package ODATA_MM_PUR_CTRMASS_UPDATE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_PurchaseContractMassUpdt | P_PurchaseContractMassUpdt | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_PurContractItemMassUpdt | _PurContractItmMassUpdt | $projection.PurchaseContract = _PurContractItmMassUpdt.PurchaseContract |
| [1..*] | C_MassUpdtPurchasingDocPart | _PurCtrPartner | $projection.PurchaseContract = _PurCtrPartner.PurchaseContract |
| [0..1] | C_PurContrMassValdtyStsDropDwn | _ValidityText | $projection.PurchaseContractValidityStatus = _ValidityText.Status |
| [0..1] | C_PurgDocVersionReasonValHelp | _VersionReasonVH | $projection.PurchasingDocVersionReasonCode = _VersionReasonVH.PurchasingDocVersionReasonCode |
| [0..1] | I_Purctrnotes | _PurchaserNote | $projection.PurchaseContract = _PurchaserNote.PurchaseContract and _PurchaserNote.ArchitecturalObjectNumber = $projection.PurchaseContract and _PurchaserNote.TechnicalObjectType = 'EKKO' and _PurchaserNote.DocumentText = 'K17' and _PurchaserNote.Language = $session.system_language |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | CCTRMASSCHANGE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Mass Changes to Purchase Contracts | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| UI.headerInfo.typeName | Purchase Contract Headers | view | |
| UI.headerInfo.typeNamePlural | Purchase Contract Headers | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2669 | ASQL_F2669 | C2 | NOT_RELEASED |
Fields (63)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseContract | PurchaseContract | Purchasing Doc. | |
| PartnerFunction | Partner Function | |||
| PartnerCounter | ||||
| PurchaseContractType | PurchaseContractType | Purchasing Document Type | ||
| PurchasingDocumentTypeName | ||||
| ExchangeRate | ExchangeRate | Exchange Rate | ||
| ExchangeRateIsFixed | ExchangeRateIsFixed | Fixed Exch.Rate | ||
| CreationDate | CreationDate | Purchase Contract Date | ||
| PurchaseContractValidityStatus | PurchaseContractValidityStatus | Validity Status | ||
| Supplier | Supplier | Supplier | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurchasingOrganization | Purchasing Organization | |||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| IncotermsClassification | Incoterms | |||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| PurchaseContractTargetAmount | PurchaseContractTargetAmount | Target Value | ||
| ValidityStartDate | ValidityStartDate | Valid From | ||
| ValidityEndDate | ValidityEndDate | Valid To | ||
| NumberOfBusinessPartners | Partner | |||
| CorrespncExternalReference | CorrespncExternalReference | Your Reference | ||
| CorrespncInternalReference | CorrespncInternalReference | Our Reference | ||
| SupplierRespSalesPersonName | SupplierRespSalesPersonName | Salesperson | ||
| SupplierPhoneNumber | SupplierPhoneNumber | Telephone | ||
| PurchasingDocumentName | Purch. Doc. Name | |||
| IncotermsVersion | IncotermsVersion | Inco. Version | ||
| IncotermsLocation1 | Inco. Location1 | |||
| IncotermsLocation2 | Inco. Location2 | |||
| MaterialGroup | MaterialGroup | |||
| Plant | Plant | |||
| Material | Material | |||
| PurchasingDocumentItemCategory | Purchasing Document Item Category | |||
| AccountAssignmentCategory | Account Assignment Category | |||
| PurchasingContractDeletionCode | Item Deletion Indicator | |||
| SupplierSubrange | Supplier Subrange | |||
| ReferenceSupplier | Supplier Reference | |||
| PreferredSupplierName | Supplier Name | |||
| SupplierName | _Supplier | SupplierName | Supplier Name | |
| CreatedByUser | CreatedByUser | User Name | ||
| CashDiscount1Percent | CashDiscount1Percent | Disc. Percent 1 | ||
| CashDiscount1Days | CashDiscount1Days | Days from Baseline Date for Payment | ||
| CashDiscount2Percent | CashDiscount2Percent | Disc. Percent 2 | ||
| CashDiscount2Days | CashDiscount2Days | Days from Baseline Date for Payment | ||
| NetPaymentDays | NetPaymentDays | Net Pmt Terms Period | ||
| SupplierQuotation | SupplierQuotation | RFQ | ||
| QuotationSubmissionDate | QuotationSubmissionDate | Quotation Date | ||
| InvoicingParty | InvoicingParty | Supplier | ||
| SupplyingSupplier | SupplyingSupplier | Goods Supplier | ||
| IsCreated | Is New | |||
| PurchasingDocVersionReasonCode | PurchasingDocVersionReasonCode | Reason for Change | ||
| PurchasingDocVersionReasonText | _VersionReasonVH | PurchasingDocVersionReasonText | Reason Description | |
| PurgDocNoteText | _PurchaserNote | NoteDescription | Purchaser Note | |
| _PurContractItmMassUpdt | _PurContractItmMassUpdt | |||
| _PurCtrPartner | _PurCtrPartner | |||
| _Supplier | _Supplier | |||
| _PaymentTerms | _PaymentTerms | |||
| _ValidityText | _ValidityText | |||
| _CompanyCode | _CompanyCode | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _IncotermsVersion | _IncotermsVersion | |||
| _VersionReasonVH | _VersionReasonVH |
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_PurchaseContractMassUpdt.
-- 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: CCTRMASSCHANGE
CREATE VIEW C_PurchaseContractMassUpdt AS
SELECT
PurchaseContract,
cast ('' as parvw) AS PartnerFunction,
cast ('' as parza) AS PartnerCounter,
PurchaseContractType,
_PurchasingDocumentType._Text[1:Language = $session.system_language].PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
ExchangeRate,
ExchangeRateIsFixed,
CreationDate,
PurchaseContractValidityStatus,
Supplier,
CompanyCode,
cast (PurchasingOrganization as purchasingorganization_ll preserving type ) AS PurchasingOrganization,
PurchasingGroup,
DocumentCurrency,
cast(IncotermsClassification as inco1_ll preserving type) AS IncotermsClassification,
PaymentTerms,
PurchaseContractTargetAmount,
ValidityStartDate,
ValidityEndDate,
cast(' ' as abap.char( 80 )) AS NumberOfBusinessPartners,
CorrespncExternalReference,
CorrespncInternalReference,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
cast (PurchasingDocumentName as vdm_purgdoc_name_ll preserving type ) AS PurchasingDocumentName,
IncotermsVersion,
cast (IncotermsLocation1 as vdm_incotermlocation1 preserving type ) AS IncotermsLocation1,
cast (IncotermsLocation2 as vdm_incotermlocation2 preserving type ) AS IncotermsLocation2,
cast ('' as matkl) AS MaterialGroup,
cast ('' as ewerk) AS Plant,
cast ('' as matnr) AS Material,
cast ('' as pstyp) AS PurchasingDocumentItemCategory,
cast ('' as knttp) AS AccountAssignmentCategory,
'' AS PurchasingContractDeletionCode,
cast ('' as ltsnr) AS SupplierSubrange,
cast ('' as lifnr) AS ReferenceSupplier,
cast ('' as md_supplier_name) AS PreferredSupplierName,
_Supplier.SupplierName AS SupplierName,
CreatedByUser,
CashDiscount1Percent,
CashDiscount1Days,
CashDiscount2Percent,
CashDiscount2Days,
NetPaymentDays,
SupplierQuotation,
QuotationSubmissionDate,
InvoicingParty,
SupplyingSupplier,
cast ('' as xfeld) AS IsCreated,
PurchasingDocVersionReasonCode,
_VersionReasonVH.PurchasingDocVersionReasonText AS PurchasingDocVersionReasonText,
_PurchaserNote.NoteDescription AS PurgDocNoteText
FROM P_PurchaseContractMassUpdt
LEFT OUTER JOIN C_PurContractItemMassUpdt AS _PurContractItmMassUpdt ON PurchaseContract = _PurContractItmMassUpdt.PurchaseContract -- association [0..*]
LEFT OUTER JOIN C_MassUpdtPurchasingDocPart AS _PurCtrPartner ON PurchaseContract = _PurCtrPartner.PurchaseContract -- association [1..*]
LEFT OUTER JOIN C_PurContrMassValdtyStsDropDwn AS _ValidityText ON PurchaseContractValidityStatus = _ValidityText.Status -- association [0..1]
LEFT OUTER JOIN C_PurgDocVersionReasonValHelp AS _VersionReasonVH ON PurchasingDocVersionReasonCode = _VersionReasonVH.PurchasingDocVersionReasonCode -- association [0..1]
LEFT OUTER JOIN I_Purctrnotes AS _PurchaserNote ON PurchaseContract = _PurchaserNote.PurchaseContract AND _PurchaserNote.ArchitecturalObjectNumber = PurchaseContract AND _PurchaserNote.TechnicalObjectType = 'EKKO' AND _PurchaserNote.DocumentText = 'K17' AND _PurchaserNote.Language = $session.system_language -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA