C_PurchaseOrderMassUpdate
Mass Changes to Purchase Orders
C_PurchaseOrderMassUpdate is a Consumption CDS View that provides data about "Mass Changes to Purchase Orders" in SAP S/4HANA. It reads from 1 data source (I_PurchaseOrder) and exposes 49 fields with key field PurchaseOrder. It has 3 associations to related views. It is exposed through 1 OData service (ASQL_F2593). Part of development package ODATA_MM_PUR_POMASS_UPDATE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseOrder | I_PurchaseOrder | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_PurchaseOrderItemMassUpdate | _PurchaseOrderItemMassUpdate | $projection.PurchaseOrder = _PurchaseOrderItemMassUpdate.PurchaseOrder |
| [1..*] | C_POMassUpdtDelivSchedItm | _ScheduleLine | $projection.PurchaseOrder = _ScheduleLine.PurchaseOrder |
| [0..1] | I_PurchaseOrderStatusText | _PurchaseOrderStatus | $projection.PurchaseOrder = _PurchaseOrderStatus.PurchaseOrder |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Mass Changes to Purchase Orders | 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 Order Header | view | |
| UI.headerInfo.typeNamePlural | Purchase Order Headers | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2593 | ASQL_F2593 | C2 | NOT_RELEASED |
Fields (49)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| Supplier | Supplier | Supplier | ||
| SupplierName | ||||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | ||||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingOrganizationName | ||||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingGroupName | ||||
| PurchaseOrderDate | PurchaseOrderDate | Order Date | ||
| PurchaseOrderType | PurchaseOrderType | Order Type | ||
| PurchasingDocumentTypeName | ||||
| PaymentTerms | PaymentTerms | Terms of Payment | ||
| PaymentTermsName | ||||
| IncotermsClassification | I_PurchaseOrder | IncotermsClassification | Incoterms (Header) | |
| IncotermsClassificationName | ||||
| InvoicingParty | InvoicingParty | Supplier | ||
| InvoicingPartyName | ||||
| PurchasingDocumentStatus | _PurchaseOrderStatus | PurchasingDocumentStatus | Order Status | |
| PurchasingDocumentStatusName | _PurchaseOrderStatus | PurchasingDocumentStatusName | ||
| CashDiscount1Days | CashDiscount1Days | Day 1 / In Percent | ||
| CashDiscount2Days | CashDiscount2Days | Day 2 / In Percent | ||
| NetPaymentDays | NetPaymentDays | Days Net | ||
| CashDiscount1Percent | CashDiscount1Percent | Discount Percentage 1 | ||
| CashDiscount2Percent | CashDiscount2Percent | Discount Percentage 2 | ||
| ExchangeRate | ExchangeRate | Exchange Rate | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| ValidityStartDate | ValidityStartDate | Validity Period Start | ||
| ValidityEndDate | ValidityEndDate | Validity Period End | ||
| SupplierRespSalesPersonName | SupplierRespSalesPersonName | Salesperson | ||
| SupplierPhoneNumber | SupplierPhoneNumber | Supplier Telephone | ||
| SupplyingSupplier | SupplyingSupplier | Goods Supplier | ||
| SupplierFullName | ||||
| HeaderIncotermsLoc1 | IncotermsLocation1 | Incoterm Location 1 (Header) | ||
| HeaderIncotermsLoc2 | IncotermsLocation2 | Incoterm Location 2 (Header) | ||
| IncotermsVersion | IncotermsVersion | Incoterms Version (Header) | ||
| IncotermsVersionName | ||||
| AllItemsHaveSingleScheduleLine | ||||
| MaterialGroup | ||||
| Plant | ||||
| Material | ||||
| AccountAssignmentCategory | Account Assignment Category | |||
| PurchaseOrderItemCategory | ||||
| PurchasingDocumentDeletionCode | ||||
| ScheduleLineDeliveryDate | ||||
| PerformancePeriodStartDate | ||||
| PerformancePeriodEndDate | ||||
| _PurchaseOrderItemMassUpdate | _PurchaseOrderItemMassUpdate | |||
| _ScheduleLine | _ScheduleLine |
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_PurchaseOrderMassUpdate.
-- 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 C_PurchaseOrderMassUpdate AS
SELECT
PurchaseOrder,
Supplier,
I_PurchaseOrder._Supplier.SupplierName AS SupplierName,
CompanyCode,
I_PurchaseOrder._CompanyCode.CompanyCodeName AS CompanyCodeName,
PurchasingOrganization,
I_PurchaseOrder._PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
PurchasingGroup,
I_PurchaseOrder._PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
PurchaseOrderDate,
PurchaseOrderType,
_PurchaseOrderType._Text[1:Language = $session.system_language].PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
PaymentTerms,
_PaymentTerms._Text[1:Language = $session.system_language].PaymentTermsName AS PaymentTermsName,
I_PurchaseOrder.IncotermsClassification AS IncotermsClassification,
_IncotermsClassification._Text[1:Language = $session.system_language].IncotermsClassificationName AS IncotermsClassificationName,
InvoicingParty,
I_PurchaseOrder._InvoicingParty.SupplierFullName AS InvoicingPartyName,
_PurchaseOrderStatus.PurchasingDocumentStatus AS PurchasingDocumentStatus,
_PurchaseOrderStatus.PurchasingDocumentStatusName AS PurchasingDocumentStatusName,
CashDiscount1Days,
CashDiscount2Days,
NetPaymentDays,
CashDiscount1Percent,
CashDiscount2Percent,
ExchangeRate,
DocumentCurrency,
ValidityStartDate,
ValidityEndDate,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
SupplyingSupplier,
I_PurchaseOrder._SupplyingSupplier.SupplierFullName AS SupplierFullName,
IncotermsLocation1 AS HeaderIncotermsLoc1,
IncotermsLocation2 AS HeaderIncotermsLoc2,
IncotermsVersion,
_IncotermsVersion._Text[1:Language = $session.system_language].IncotermsVersionName AS IncotermsVersionName,
cast('' as mm_vdm_single_sched) AS AllItemsHaveSingleScheduleLine,
cast ('' as matkl) AS MaterialGroup,
cast ('' as ewerk) AS Plant,
cast ('' as matnr) AS Material,
cast ('' as knttp) AS AccountAssignmentCategory,
cast ('' as vdm_itemcategory) AS PurchaseOrderItemCategory,
cast ('' as eloek) AS PurchasingDocumentDeletionCode,
cast ('00000000' as eindt) AS ScheduleLineDeliveryDate,
cast('00000000' as performanceperiodstartdate) AS PerformancePeriodStartDate,
cast('00000000' as mmpur_servproc_period_end) AS PerformancePeriodEndDate
FROM I_PurchaseOrder
LEFT OUTER JOIN C_PurchaseOrderItemMassUpdate AS _PurchaseOrderItemMassUpdate ON PurchaseOrder = _PurchaseOrderItemMassUpdate.PurchaseOrder -- association [0..*]
LEFT OUTER JOIN C_POMassUpdtDelivSchedItm AS _ScheduleLine ON PurchaseOrder = _ScheduleLine.PurchaseOrder -- association [1..*]
LEFT OUTER JOIN I_PurchaseOrderStatusText AS _PurchaseOrderStatus ON PurchaseOrder = _PurchaseOrderStatus.PurchaseOrder -- 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