C_PurchaseOrderMassUpdate

DDL: C_PURCHASEORDERMASSUPDATE Type: view_entity CONSUMPTION Package: ODATA_MM_PUR_POMASS_UPDATE

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)

SourceAliasJoin Type
I_PurchaseOrder I_PurchaseOrder from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

ServiceBindingVersionContractRelease
ASQL_F2593 ASQL_F2593 C2 NOT_RELEASED

Fields (49)

KeyFieldSource TableSource FieldDescription
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]
;