C_PurCntrlContrMassUpdt
Mass Changes to Central Contracts
C_PurCntrlContrMassUpdt is a Consumption CDS View that provides data about "Mass Changes to Central Contracts" in SAP S/4HANA. It reads from 1 data source (I_CentralPurchaseContract) and exposes 61 fields with key field CentralPurchaseContract. It has 4 associations to related views. It is exposed through 1 OData service (ASQL_F3792). Part of development package ODATA_MM_PUR_CCTRMASS_UPDATE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CentralPurchaseContract | I_CentralPurchaseContract | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | C_CntrlPurContrTypeValueHelp | _CntrlPurContrTypeValueHelp | $projection.PurchaseContractType = _CntrlPurContrTypeValueHelp.PurchasingDocumentType |
| [0..1] | I_IncotermsVersionText | _IncotermVersionText | $projection.IncotermsVersion = _IncotermVersionText.IncotermsVersion and _IncotermVersionText.Language = $session.system_language |
| [0..1] | C_PurgDocVersionReasonValHelp | _VersionReasonVH | $projection.PurchasingDocVersionReasonCode = _VersionReasonVH.PurchasingDocVersionReasonCode |
| [0..1] | P_SGBT_NTE_CDS_APITP | _PurchaseNote | $projection.CentralPurchaseContract = _PurchaseNote.ObjectID and _PurchaseNote.ObjectNodeType = 'CentralPurchaseContract' and _PurchaseNote.NoteType = 'CH16' and _PurchaseNote.LanguageCode = $session.system_language --Extension |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CCNTRLCTRMASS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Mass Changes to Central Contracts | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.lifecycle.contract.type | #NONE | view | |
| UI.headerInfo.typeName | Central Purchase Contract header | view | |
| UI.headerInfo.typeNamePlural | Central Purchase Contract headers | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F3792 | ASQL_F3792 | C2 | NOT_RELEASED |
Fields (61)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CentralPurchaseContract | CentralPurchaseContract | Central Contract | |
| ActivePurchasingDocument | ActivePurchasingDocument | Central Contract | ||
| PurchaseContractType | PurchaseContractType | Contract Type | ||
| PurchasingDocumentTypeName | _CntrlPurContrTypeValueHelp | PurchasingDocumentTypeName | Description | |
| PurchasingOrganization | PurchasingOrganization | Central Purchasing Organization | ||
| PurchasingOrganizationName | _PurchasingOrganization | PurchasingOrganizationName | Purch. Org. Name | |
| PurchasingGroup | PurchasingGroup | Central Purchasing Group | ||
| PurchasingGroupName | _PurchasingGroup | PurchasingGroupName | Purchasing Grp. Name | |
| CompanyCode | CompanyCode | Central Company Code | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| Supplier | Supplier | Supplier | ||
| SupplierName | _Supplier | SupplierName | Supplier Name | |
| ValidityStartDate | ValidityStartDate | Valid From | ||
| ValidityEndDate | ValidityEndDate | Valid To | ||
| PurgSingleCardinalityDistrType | PurgSingleCardinalityDistrType | Single Line Distribution | ||
| PurchaseContractTargetAmount | PurchaseContractTargetAmount | Target Value | ||
| Currency | Currency | Currency | ||
| CurrencyName | ||||
| CntrlPurContrOvrlDistrStsTxt | PurchasingProcessingStatus | Proc. State | ||
| PurchasingProcessingStatus | ||||
| ItemDistributionStatusName | Distribution Status | |||
| DocumentStatusName | _CntrlPurContrStatusText | DocumentStatusName | Status Text | |
| PurchasingDocumentStatus | PurchasingProcessingStatus | Status | ||
| CreatedByUser | CreatedByUser | Created By | ||
| UserDescription | _CreatedByUser | UserDescription | Created By | |
| CreationDate | CreationDate | Created On | ||
| IsEndOfPurposeBlocked | IsEndOfPurposeBlocked | Business Purpose Completed | ||
| PaymentTerms | PaymentTerms | Payment Terms | ||
| PaymentTermsName | ||||
| CashDiscount1Days | CashDiscount1Days | First Payment in Days | ||
| CashDiscount1Percent | CashDiscount1Percent | Discount for First Payment in % | ||
| CashDiscount2Days | CashDiscount2Days | Second Payment in Days | ||
| CashDiscount2Percent | CashDiscount2Percent | Discount for Second Payment in % | ||
| NetPaymentDays | NetPaymentDays | Cash Discount Days | ||
| IncotermsClassification | IncotermsClassification | Incoterm | ||
| IncotermsClassificationName | ||||
| IncotermsLocation1 | IncotermsLocation1 | Incoterm Location 1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Incoterm Location 2 | ||
| IncotermsVersion | IncotermsVersion | Incoterms Version | ||
| IncotermsVersionName | _IncotermVersionText | IncotermsVersionName | ||
| QuotationSubmissionDate | QuotationSubmissionDate | Quotation Date | ||
| SupplierQuotation | SupplierQuotation | Quotation | ||
| CorrespncExternalReference | CorrespncExternalReference | Your Reference | ||
| CorrespncInternalReference | CorrespncInternalReference | Our Reference | ||
| SupplierRespSalesPersonName | SupplierRespSalesPersonName | Salesperson | ||
| SupplierPhoneNumber | SupplierPhoneNumber | Telephone | ||
| ProductType | ||||
| ProductTypeCode | ||||
| MaterialGroup | ||||
| Material | ||||
| CntrlPurContrItmDistrPct | ||||
| CntrlPurContrDistributionPct | ||||
| ProcmtHubPurchasingOrg | ||||
| ProcmtHubPurchasingGroup | ||||
| ProcmtHubCompanyCode | ||||
| Plant | ||||
| ContrHdrIsCreated | Is New | |||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Del. Indicator | ||
| PurchasingDocVersionReasonCode | PurchasingDocVersionReasonCode | Reason for Change | ||
| PurchasingDocVersionReasonText | _VersionReasonVH | PurchasingDocVersionReasonText | Reason Description | |
| PurgDocNoteText | _PurchaseNote | Content | Purchaser Note |
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_PurCntrlContrMassUpdt.
-- 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: CCNTRLCTRMASS
CREATE VIEW C_PurCntrlContrMassUpdt AS
SELECT
CentralPurchaseContract,
ActivePurchasingDocument,
PurchaseContractType,
_CntrlPurContrTypeValueHelp.PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
PurchasingOrganization,
_PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
PurchasingGroup,
_PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
CompanyCode,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
Supplier,
_Supplier.SupplierName AS SupplierName,
ValidityStartDate,
ValidityEndDate,
PurgSingleCardinalityDistrType,
PurchaseContractTargetAmount,
Currency,
_DocumentCurrency._Text[1: Language = $session.system_language ].CurrencyName AS CurrencyName,
PurchasingProcessingStatus AS CntrlPurContrOvrlDistrStsTxt,
cast( _CntrlPurContrAggrgnDistrSts.CntrlPurContrDistributionSts as me_distribution_status ) AS PurchasingProcessingStatus,
_CntrlPurContrAggrgnDistrSts._CntrlPurContrDistrStatusText.ItemDistributionStatusName AS ItemDistributionStatusName,
_CntrlPurContrStatusText.DocumentStatusName AS DocumentStatusName,
PurchasingProcessingStatus AS PurchasingDocumentStatus,
CreatedByUser,
_CreatedByUser.UserDescription AS UserDescription,
CreationDate,
IsEndOfPurposeBlocked,
PaymentTerms,
_PaymentTerms._Text[1: Language = $session.system_language ].PaymentTermsName AS PaymentTermsName,
CashDiscount1Days,
CashDiscount1Percent,
CashDiscount2Days,
CashDiscount2Percent,
NetPaymentDays,
IncotermsClassification,
_IncotermsClassification._Text[1: Language = $session.system_language ].IncotermsClassificationName AS IncotermsClassificationName,
IncotermsLocation1,
IncotermsLocation2,
IncotermsVersion,
_IncotermVersionText.IncotermsVersionName AS IncotermsVersionName,
QuotationSubmissionDate,
SupplierQuotation,
CorrespncExternalReference,
CorrespncInternalReference,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
cast ('' as producttype) AS ProductType,
cast ('' as product_type) AS ProductTypeCode,
cast ('' as matkl) AS MaterialGroup,
cast ('' as matnr) AS Material,
cast (0 as mm_purgdoc_distr_pct) AS CntrlPurContrItmDistrPct,
cast (0 as mm_purgdoc_distr_pct ) AS CntrlPurContrDistributionPct,
cast ('' as ekorg ) AS ProcmtHubPurchasingOrg,
cast ('' as bkgrp ) AS ProcmtHubPurchasingGroup,
cast ('' as bukrs) AS ProcmtHubCompanyCode,
cast ('' as ewerk ) AS Plant,
cast ('' as xfeld) AS ContrHdrIsCreated,
PurchasingDocumentDeletionCode,
PurchasingDocVersionReasonCode,
_VersionReasonVH.PurchasingDocVersionReasonText AS PurchasingDocVersionReasonText,
_PurchaseNote.Content AS PurgDocNoteText
FROM I_CentralPurchaseContract
LEFT OUTER JOIN C_CntrlPurContrTypeValueHelp AS _CntrlPurContrTypeValueHelp ON PurchaseContractType = _CntrlPurContrTypeValueHelp.PurchasingDocumentType -- association [0..1]
LEFT OUTER JOIN I_IncotermsVersionText AS _IncotermVersionText ON IncotermsVersion = _IncotermVersionText.IncotermsVersion AND _IncotermVersionText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN C_PurgDocVersionReasonValHelp AS _VersionReasonVH ON PurchasingDocVersionReasonCode = _VersionReasonVH.PurchasingDocVersionReasonCode -- association [0..1]
LEFT OUTER JOIN P_SGBT_NTE_CDS_APITP AS _PurchaseNote ON CentralPurchaseContract = _PurchaseNote.ObjectID AND _PurchaseNote.ObjectNodeType = 'CentralPurchaseContract' AND _PurchaseNote.NoteType = 'CH16' AND _PurchaseNote.LanguageCode = $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