C_CPurConHierItmDistrMassUpdt
HCTR Item Distribution Mass Update
C_CPurConHierItmDistrMassUpdt is a Consumption CDS View that provides data about "HCTR Item Distribution Mass Update" in SAP S/4HANA. It reads from 1 data source (I_CntrlPurContrDistribution) and exposes 64 fields with key fields CentralPurchaseContract, CentralPurchaseContractItem, PurgDocItemDistributionKey. It has 12 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CntrlPurContrDistribution | I_CntrlPurContrDistribution | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PurgDocumentCategoryText | _PurgDocumentCatText | $projection.ProcmtHubPurgDocItmCategory = _PurgDocumentCatText.PurchasingDocumentCategory and _PurgDocumentCatText.Language = $session.system_language |
| [0..1] | C_ProcmtHubSchedgAgrmtTypeVH | _ProcmtHubSchedgAgrmtTypeVH | _ProcmtHubSchedgAgrmtTypeVH.PurchasingDocumentType = $projection.PurchasingDocumentType and _ProcmtHubSchedgAgrmtTypeVH.LogicalSystem = $projection.LogicalSystem |
| [0..1] | I_CntrlPurContrDistrTypeText | _CntrlPurContrDistrTypeVH | _CntrlPurContrDistrTypeVH.DistributionType = $projection.DistributionType and _CntrlPurContrDistrTypeVH.Language = $session.system_language |
| [0..1] | C_ProcmtHubCompanyCodeVH | _ProcmtHubCompanyCodeVH | _ProcmtHubCompanyCodeVH.ProcmtHubCompanyCode = $projection.ProcmtHubCompanyCode and _ProcmtHubCompanyCodeVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem |
| [0..1] | C_ProcmtHubPlantVH | _ProcmtHubPlantVH | _ProcmtHubPlantVH.ProcmtHubPlant = $projection.Plant and _ProcmtHubPlantVH.ProcmtHubCompanyCode = $projection.ProcmtHubCompanyCode and _ProcmtHubPlantVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem |
| [0..1] | C_ProcmtHubPurgOrgVH | _ProcmtHubPurgOrgVH | _ProcmtHubPurgOrgVH.ProcmtHubPurchasingOrg = $projection.ProcmtHubPurchasingOrg and _ProcmtHubPurgOrgVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem |
| [0..1] | C_PurchasingGroupValueHelp | _PurchasingGroupValueHelp | _PurchasingGroupValueHelp.PurchasingGroup = $projection.ProcmtHubPurchasingGroup |
| [0..1] | C_ProcmtHubStorageLocationVH | _ProcmtHubStorageLocationVH | _ProcmtHubStorageLocationVH.StorageLocation = $projection.StorageLocation and _ProcmtHubStorageLocationVH.Plant = $projection.Plant and _ProcmtHubStorageLocationVH.ProcurementHubSourceSystem = $projection.ProcurementHubSourceSystem |
| [1..1] | C_CntrlPurContrHierHdrTP | _CntrlPurContrHierHdrTP | $projection.CentralPurchaseContract = _CntrlPurContrHierHdrTP.CentralPurchaseContract |
| [1..1] | I_PurgInfoRecordUpdateCode | _PurgInfoRecordUpdateCode | $projection.PurchasingInfoRecordUpdateCode = _PurgInfoRecordUpdateCode.PurchasingInfoRecordUpdateCode |
| [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 |
| [1..1] | I_ProcmtHubCompanyCodeGroup | _ProcmtHubCompanyCodeGroup | _ProcmtHubCompanyCodeGroup.ProcmtHubCompanyCodeGroupingID = $projection.ProcmtHubCompanyCodeGroupingID --Extension |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CHCTRITMDISTMU | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | HCTR Item Distribution Mass Update | 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 | #MIXED | view | |
| VDM.lifecycle.contract.type | #NONE | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.createEnabled | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (64)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CentralPurchaseContract | CentralPurchaseContract | Central Hierarchy Contract | |
| KEY | CentralPurchaseContractItem | CentralPurchaseContractItem | Item in Central Purchase Contract | |
| KEY | PurgDocItemDistributionKey | DistributionKey | Distribution Number | |
| ActivePurchasingDocument | _CentralPurchaseContract | ActivePurchasingDocument | Central Contract | |
| FormattedPurchaseContractItem | Central Contract Item | |||
| ProcmtHubPurgDocItmCategory | PurchasingDocumentCategory | Document Category | ||
| DistributionType | DistributionType | Distribution Type | ||
| CntrlPurContrDistributionPct | CntrlPurContrDistributionPct | |||
| CntrlPurContrItmDistrPct | CntrlPurContrDistributionPct | |||
| CntrlPurContrGRConsumptionPct | ||||
| TargetQuantity | TargetQuantity | Target Quantity | ||
| ProcmtHubCompanyCodeGroupingID | ProcmtHubCompanyCodeGroupingID | Company Code Grouping ID | ||
| ProcmtHubCompanyCode | CompanyCode | Receiver Company Code | ||
| Plant | Plant | Valuation Area | ||
| PurchasingDocumentType | PurchasingDocumentType | Outline Agreement Type | ||
| ProcmtHubPurchasingOrg | PurchasingOrganization | Purchasing Organization | ||
| ProcmtHubPurchasingGroup | PurchasingGroup | Purchasing Group | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| PaymentTerms | PaymentTerms | Payment Terms | ||
| PurchasingInfoRecordUpdateCode | PurchasingInfoRecordUpdateCode | Info Record Update | ||
| ReferenceHeaderDistributionKey | ReferenceHeaderDistributionKey | |||
| CntrlPurContrDistributionLevel | Distribution Level | |||
| PurchaseOrderQuantityUnit | OrderQuantityUnit | Sales Unit | ||
| LogicalSystem | LogicalSystem | Logical System | ||
| IncotermsClassification | IncotermsClassification | Incoterms Classification | ||
| IncotermsLocation1 | IncotermsLocation1 | Incoterms Location 1 | ||
| PurchasingDocumentCategoryName | _PurgDocumentCatText | PurchasingDocumentCategoryName | Short Description | |
| Language | _PurgDocumentCatText | Language | Report Text Language | |
| PurgDocDistributionTypeDesc | _CntrlPurContrDistrTypeVH | PurgDocDistributionTypeDesc | ||
| ProcurementHubSourceSystem | ProcurementHubSourceSystem | Connected System ID | ||
| CompanyCodeName | _ProcmtHubCompanyCodeVH | ProcmtHubCompanyCodeName | ||
| PurOrdItemPlantName | _ProcmtHubPlantVH | ProcmtHubPlantName | Plant Name | |
| MKT_AgreementTypeName | _ProcmtHubSchedgAgrmtTypeVH | PurchasingDocumentTypeName | Description | |
| ComparisonPurchasingOrgName | _ProcmtHubPurgOrgVH | ProcmtHubPurgOrgName | ||
| ComparisonPurchasingGroupName | _PurchasingGroupValueHelp | PurchasingGroupName | Purchasing Grp. Name | |
| StorageLocationName | _ProcmtHubStorageLocationVH | StorageLocationName | Storage Loc. Name | |
| SourceListIsUpdated | SourceListIsUpdated | Sourcelist Updated | ||
| TargetAmount | TargetAmount | Target Value | ||
| Currency | Currency | Valuation Crcy | ||
| Supplier | _CentralPurchaseContract | Supplier | Supplier | |
| PurchasingOrganization | _CentralPurchaseContract | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | _CentralPurchaseContract | PurchasingGroup | Purchasing Group | |
| CompanyCode | _CentralPurchaseContract | CompanyCode | Receiver Company Code | |
| ProcmtHubCoCodeGroupingName | _ProcmtHubCompanyCodeGroup | ProcmtHubCoCodeGroupingName | ||
| CntrlPurContrOvrlDistrStsTxt | _CntrlPurContrHierHdrTP | PurchasingProcessingStatus | Proc. State | |
| PurchasingProcessingStatus | _CntrlPurContrHierHdrTP | CntrlPurContrOvrlDistrStsTxt | Distribution Status | |
| PurchasingDocumentStatus | _CntrlPurContrHierHdrTP | PurchasingProcessingStatus | Status | |
| ValidityEndDate | _CentralPurchaseContract | ValidityEndDate | ValidTo | |
| ValidityStartDate | _CentralPurchaseContract | ValidityStartDate | Validity Start Date | |
| PurchaseContractType | _CentralPurchaseContract | PurchaseContractType | Order Type | |
| Material | _CntrlPurchaseContractItem | PurchasingCentralMaterial | Material | |
| MaterialGroup | _CntrlPurchaseContractItem | MaterialGroup | Product Group | |
| ProductTypeCode | _CntrlPurchaseContractItem | ProductTypeCode | Product Type Group | |
| InternalComment | ||||
| PurchasingDocInclusionList | ||||
| PurchasingDocExclusionList | ||||
| PurOrdItemsAreSelected | ||||
| ContrItmDistrIsCreated | Is New | |||
| TextIsDeleted | Deletion Indicator | |||
| PurchasingDocVersionReasonCode | Reason for Change | |||
| PurgDocNoteText | _PurchaseNote | Content | Purchaser Note | |
| _CentralPurchaseContract | _CentralPurchaseContract | |||
| _PurgInfoRecordUpdateCode | _PurgInfoRecordUpdateCode | |||
| _ProcmtHubCompanyCodeGroup | _ProcmtHubCompanyCodeGroup |
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_CPurConHierItmDistrMassUpdt.
-- 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: CHCTRITMDISTMU
CREATE VIEW C_CPurConHierItmDistrMassUpdt AS
SELECT
CentralPurchaseContract,
CentralPurchaseContractItem,
DistributionKey AS PurgDocItemDistributionKey,
_CentralPurchaseContract.ActivePurchasingDocument AS ActivePurchasingDocument,
cast (concat(concat(_CentralPurchaseContract.ActivePurchasingDocument, '/'), CentralPurchaseContractItem) as formattedcontractitem) AS FormattedPurchaseContractItem,
PurchasingDocumentCategory AS ProcmtHubPurgDocItmCategory,
DistributionType,
CntrlPurContrDistributionPct,
CntrlPurContrDistributionPct AS CntrlPurContrItmDistrPct,
cast ( 0 as mmpur_gr_consumption_pct) AS CntrlPurContrGRConsumptionPct,
TargetQuantity,
ProcmtHubCompanyCodeGroupingID,
CompanyCode AS ProcmtHubCompanyCode,
Plant,
PurchasingDocumentType,
PurchasingOrganization AS ProcmtHubPurchasingOrg,
PurchasingGroup AS ProcmtHubPurchasingGroup,
StorageLocation,
PaymentTerms,
PurchasingInfoRecordUpdateCode,
ReferenceHeaderDistributionKey,
cast ( '' as abap.char(10) ) AS CntrlPurContrDistributionLevel,
OrderQuantityUnit AS PurchaseOrderQuantityUnit,
LogicalSystem,
IncotermsClassification,
IncotermsLocation1,
_PurgDocumentCatText.PurchasingDocumentCategoryName AS PurchasingDocumentCategoryName,
_PurgDocumentCatText.Language AS Language,
_CntrlPurContrDistrTypeVH.PurgDocDistributionTypeDesc AS PurgDocDistributionTypeDesc,
ProcurementHubSourceSystem,
_ProcmtHubCompanyCodeVH.ProcmtHubCompanyCodeName AS CompanyCodeName,
_ProcmtHubPlantVH.ProcmtHubPlantName AS PurOrdItemPlantName,
_ProcmtHubSchedgAgrmtTypeVH.PurchasingDocumentTypeName AS MKT_AgreementTypeName,
_ProcmtHubPurgOrgVH.ProcmtHubPurgOrgName AS ComparisonPurchasingOrgName,
_PurchasingGroupValueHelp.PurchasingGroupName AS ComparisonPurchasingGroupName,
_ProcmtHubStorageLocationVH.StorageLocationName AS StorageLocationName,
SourceListIsUpdated,
TargetAmount,
Currency,
_CentralPurchaseContract.Supplier AS Supplier,
_CentralPurchaseContract.PurchasingOrganization AS PurchasingOrganization,
_CentralPurchaseContract.PurchasingGroup AS PurchasingGroup,
_CentralPurchaseContract.CompanyCode AS CompanyCode,
_ProcmtHubCompanyCodeGroup.ProcmtHubCoCodeGroupingName AS ProcmtHubCoCodeGroupingName,
_CntrlPurContrHierHdrTP.PurchasingProcessingStatus AS CntrlPurContrOvrlDistrStsTxt,
_CntrlPurContrHierHdrTP.CntrlPurContrOvrlDistrStsTxt AS PurchasingProcessingStatus,
_CntrlPurContrHierHdrTP.PurchasingProcessingStatus AS PurchasingDocumentStatus,
_CentralPurchaseContract.ValidityEndDate AS ValidityEndDate,
_CentralPurchaseContract.ValidityStartDate AS ValidityStartDate,
_CentralPurchaseContract.PurchaseContractType AS PurchaseContractType,
_CntrlPurchaseContractItem.PurchasingCentralMaterial AS Material,
_CntrlPurchaseContractItem.MaterialGroup AS MaterialGroup,
_CntrlPurchaseContractItem.ProductTypeCode AS ProductTypeCode,
cast ('' as abap.char( 120 )) AS InternalComment,
cast ('' as abap.sstring( 1332 )) AS PurchasingDocInclusionList,
cast ('' as abap.sstring( 1332 )) AS PurchasingDocExclusionList,
cast ('' as boole_d) AS PurOrdItemsAreSelected,
cast ('' as xfeld) AS ContrItmDistrIsCreated,
cast(IsDeleted as boolean) AS TextIsDeleted,
cast( ' ' as rscod ) AS PurchasingDocVersionReasonCode,
_PurchaseNote.Content AS PurgDocNoteText
FROM I_CntrlPurContrDistribution
LEFT OUTER JOIN I_PurgDocumentCategoryText AS _PurgDocumentCatText ON ProcmtHubPurgDocItmCategory = _PurgDocumentCatText.PurchasingDocumentCategory AND _PurgDocumentCatText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN C_ProcmtHubSchedgAgrmtTypeVH AS _ProcmtHubSchedgAgrmtTypeVH ON _ProcmtHubSchedgAgrmtTypeVH.PurchasingDocumentType = PurchasingDocumentType AND _ProcmtHubSchedgAgrmtTypeVH.LogicalSystem = LogicalSystem -- association [0..1]
LEFT OUTER JOIN I_CntrlPurContrDistrTypeText AS _CntrlPurContrDistrTypeVH ON _CntrlPurContrDistrTypeVH.DistributionType = DistributionType AND _CntrlPurContrDistrTypeVH.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN C_ProcmtHubCompanyCodeVH AS _ProcmtHubCompanyCodeVH ON _ProcmtHubCompanyCodeVH.ProcmtHubCompanyCode = ProcmtHubCompanyCode AND _ProcmtHubCompanyCodeVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem -- association [0..1]
LEFT OUTER JOIN C_ProcmtHubPlantVH AS _ProcmtHubPlantVH ON _ProcmtHubPlantVH.ProcmtHubPlant = Plant AND _ProcmtHubPlantVH.ProcmtHubCompanyCode = ProcmtHubCompanyCode AND _ProcmtHubPlantVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem -- association [0..1]
LEFT OUTER JOIN C_ProcmtHubPurgOrgVH AS _ProcmtHubPurgOrgVH ON _ProcmtHubPurgOrgVH.ProcmtHubPurchasingOrg = ProcmtHubPurchasingOrg AND _ProcmtHubPurgOrgVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem -- association [0..1]
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGroupValueHelp ON _PurchasingGroupValueHelp.PurchasingGroup = ProcmtHubPurchasingGroup -- association [0..1]
LEFT OUTER JOIN C_ProcmtHubStorageLocationVH AS _ProcmtHubStorageLocationVH ON _ProcmtHubStorageLocationVH.StorageLocation = StorageLocation AND _ProcmtHubStorageLocationVH.Plant = Plant AND _ProcmtHubStorageLocationVH.ProcurementHubSourceSystem = ProcurementHubSourceSystem -- association [0..1]
LEFT OUTER JOIN C_CntrlPurContrHierHdrTP AS _CntrlPurContrHierHdrTP ON CentralPurchaseContract = _CntrlPurContrHierHdrTP.CentralPurchaseContract -- association [1..1]
LEFT OUTER JOIN I_PurgInfoRecordUpdateCode AS _PurgInfoRecordUpdateCode ON PurchasingInfoRecordUpdateCode = _PurgInfoRecordUpdateCode.PurchasingInfoRecordUpdateCode -- association [1..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]
LEFT OUTER JOIN I_ProcmtHubCompanyCodeGroup AS _ProcmtHubCompanyCodeGroup ON _ProcmtHubCompanyCodeGroup.ProcmtHubCompanyCodeGroupingID = ProcmtHubCompanyCodeGroupingID -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- 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