Deprecated
This CDS view is deprecated in S/4HANA. View all deprecated CDS views →

P_PurchaseOrderMassUpdate

DDL: P_PURCHASEORDERMASSUPDATE SQL: PPOMASSUPDATE Type: view CONSUMPTION Package: ODATA_MM_PUR_POMASS_UPDATE

Mass Update of Purchase Orders

P_PurchaseOrderMassUpdate is a Consumption CDS View that provides data about "Mass Update of Purchase Orders" in SAP S/4HANA. It reads from 3 data sources (I_PurchaseOrderItem, C_Purchaseorderitemcount, I_PurchaseOrder) and exposes 233 fields with key field FormattedPurDoc. It has 1 association to related views. Part of development package ODATA_MM_PUR_POMASS_UPDATE.

Data Sources (3)

SourceAliasJoin Type
I_PurchaseOrderItem _Item union
C_Purchaseorderitemcount _POCount inner
I_PurchaseOrder I_PurchaseOrder from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_PurchaseOrderScheduleLine _ScheduleLine _Item.PurchaseOrder = _ScheduleLine.PurchaseOrder and _Item.PurchaseOrderItem = _ScheduleLine.PurchaseOrderItem and _Item.ProductType = '2'

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PPOMASSUPDATE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Mass Update of Purchase Orders view
VDM.private true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.status #DEPRECATED view
Metadata.ignorePropagatedAnnotations true view

Fields (233)

KeyFieldSource TableSource FieldDescription
KEY FormattedPurDoc
FormattedPurchasingDocItem
PurchaseOrder I_PurchaseOrder PurchaseOrder Purchasing Document
PurchaseOrderItem Purchasing Document Item
ReleaseDateTime
InternalComment
MemoLine
DefectCodeText
ItemIsSelectedForProcessing
PurgDocMassUpdtIsSimulated
NumberOfPurchaseOrderItems C_Purchaseorderitemcount NumberOfPurchaseOrderItems Number of PO Items
HierarchyNodeLevel
ParentNode Purchasing Document
DrillDownState
NumberOfItems
Supplier Supplier Supplier
PurchasingOrganization I_PurchaseOrder PurchasingOrganization Purchasing Organization
PurchaseOrderType I_PurchaseOrder PurchaseOrderType PO Type
PurchaseOrderDate PurchaseOrderDate PO Date
PurchasingDocumentOrigin PurchasingDocumentOrigin Status
CompanyCode CompanyCode Receiver Company Code
Plant Valuation Area
Material Vehicle Model
PaymentTerms PaymentTerms Pyt Terms
PaymentTermsName
CashDiscount1Days CashDiscount1Days Days from Baseline Date for Payment
CashDiscount2Days CashDiscount2Days Days from Baseline Date for Payment
NetPaymentDays NetPaymentDays Net Pmt Terms Period
CashDiscount1Percent CashDiscount1Percent Disc. Percent 1
CashDiscount2Percent CashDiscount2Percent Disc. Percent 2
PurchasingGroup I_PurchaseOrder PurchasingGroup Purchasing Group
DocumentCurrency DocumentCurrency Document Currency
SupplierRespSalesPersonName SupplierRespSalesPersonName Salesperson
SupplierPhoneNumber SupplierPhoneNumber Telephone
SupplyingSupplier SupplyingSupplier Goods Supplier
IncotermsClassification IncotermsClassification Incoterms
IncotermsClassificationName
IncotermsTransferLocation IncotermsTransferLocation Incoterms 2
InvoicingParty InvoicingParty Supplier
ExchangeRate Exchange rate
SupplierName _Supplier SupplierName Supplier Name
IncotermsVersion IncotermsVersion Inco. Version
PurchasingDocumentTypeName
PurchasingOrganizationName _PurchasingOrganization PurchasingOrganizationName Purch. Org. Name
PurchasingGroupName _PurchasingGroup PurchasingGroupName Purchasing Grp. Name
HeaderIncotermsLoc1 Inco. Location1
HeaderIncotermsLoc2 Inco. Location2
PurchasingDocumentDeletionCode PurchasingDocumentDeletionCode Del. Indicator
ManufacturerMaterial MPN: Material
StorageLocation StorageLocation
MaterialGroup Product Group
PurchasingInfoRecord Info Record
SupplierMaterialNumber Supp. Mat. No.
OrderPriceUnitToOrderUnitNmrtr Quantity Conversion Numerator
OrdPriceUnitToOrderUnitDnmntr Quantity Conversion Denominator
OrderItemQtyToBaseQtyNmrtr Equal To
OrderItemQtyToBaseQtyDnmntr Denominator
NetPriceQuantity Price Unit
NetAmount Stated Amount
TaxCode Tax Code
PriceIsToBePrinted Print Price
OverdelivTolrtdLmtRatioInPct Overdeliv. Tol.
UnlimitedOverdeliveryIsAllowed Unlimited Tol.
UnderdelivTolrtdLmtRatioInPct Underdel. Tol.
ValuationType Valuation Type
IsCompletelyDelivered Is completely delivered
IsFinallyInvoiced Final Invoice
PurchaseOrderItemCategory Item Category
PurgDocItemCategoryName
AccountAssignmentCategory Acct Assgmt Cat
MultipleAcctAssgmtDistribution Distribution
PartialInvoiceDistribution Partial invoice
GoodsReceiptIsExpected Goods Receipt
GoodsReceiptIsNonValuated GR Non-Valuated
InvoiceIsExpected Invoice Receipt
InvoiceIsGoodsReceiptBased GR-Based IV
BaseUnit Unit of Measure
EffectiveAmount Effective value
ItemNetWeight Net Weight
ItemWeightUnit Unit of Weight
TaxJurisdiction Tax Jurisdiction
InternationalArticleNumber EAN/UPC
SupplierConfirmationControlKey Conf. Control
ProfitCenter Profit Center
PricingDateControl Pr. Date Cat.
ItemVolume Volume
ItemVolumeUnit Volume Unit
ItemIncotermsClassification Incoterms
ItemIncotermsTransferLocation Incoterms 2
SupplierSubrange Suppl. Subrange
ServicePackage Package number
EvaldRcptSettlmtIsAllowed ERS
IsReturnsItem Returns Item
EarmarkedFunds Earmarked Funds
EarmarkedFundsItem Document Item
IncotermsLocation1 Inco. Location1
IncotermsLocation2 Inco. Location2
ServicePerformer Service Performer
ProductType Product Type Group
OrderPriceUnit Order Price Un.
MaterialName
PurchaseOrderItemText Short Text
PlantName Plant Name
CompanyCodeName _CompanyCode CompanyCodeName Company Name
TaxCalculationProcedure
IsBusinessPurposeCompleted _Supplier IsBusinessPurposeCompleted Purpose Completed
PurchasingDocumentStatus
PurchasingDocumentStatusName
SemanticObject
PurchaseOrderQuantityUnit
StorageLocationName Storage Loc. Name
MaterialGroupName
ProductTypeName
InvoicingPartyName _InvoicingParty SupplierName Supplier Name
PerformancePeriodStartDate Start of Performance Period
char25asFormattedPurDoc
FormattedPurchasingDocItem
PurchaseOrder PurchaseOrder Purchasing Document
PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
ReleaseDateTime
InternalComment
MemoLine
DefectCodeText
ItemIsSelectedForProcessing
PurgDocMassUpdtIsSimulated
NumberOfPurchaseOrderItems Number of PO Items
HierarchyNodeLevel
ParentNode PurchaseOrder Purchasing Document
DrillDownState
NumberOfItems
Supplier _PurchaseOrder Supplier Supplier
PurchasingOrganization _PurchaseOrder PurchasingOrganization Purchasing Organization
PurchaseOrderType _PurchaseOrder PurchaseOrderType PO Type
PurchaseOrderDate _PurchaseOrder PurchaseOrderDate PO Date
PurchasingDocumentOrigin _PurchaseOrder PurchasingDocumentOrigin Status
CompanyCode _PurchaseOrder CompanyCode Receiver Company Code
Plant I_PurchaseOrderItem Plant Valuation Area
Material Material Vehicle Model
PaymentTerms Pyt Terms
PaymentTermsName
CashDiscount1Days Days from Baseline Date for Payment
CashDiscount2Days Days from Baseline Date for Payment
NetPaymentDays Net Pmt Terms Period
CashDiscount1Percent Disc. Percent 1
CashDiscount2Percent Disc. Percent 2
PurchasingGroup _PurchaseOrder PurchasingGroup Purchasing Group
DocumentCurrency I_PurchaseOrderItem DocumentCurrency Document Currency
ValidityStartDate
ValidityEndDate
SupplierRespSalesPersonName Salesperson
SupplierPhoneNumber Telephone
SupplyingSupplier Goods Supplier
IncotermsClassification Incoterms
IncotermsClassificationName
IncotermsTransferLocation Incoterms 2
InvoicingParty Supplier
ExchangeRate Exchange rate
SupplierName Supplier Name
IncotermsVersion Inco. Version
PurchasingDocumentTypeName
PurchasingOrganizationName Purch. Org. Name
PurchasingGroupName Purchasing Grp. Name
HeaderIncotermsLoc1 Inco. Location1
HeaderIncotermsLoc2 Inco. Location2
PurchasingDocumentDeletionCode I_PurchaseOrderItem PurchasingDocumentDeletionCode Del. Indicator
ManufacturerMaterial ManufacturerMaterial MPN: Material
StorageLocation StorageLocation StorageLocation
MaterialGroup MaterialGroup Product Group
PurchasingInfoRecord PurchasingInfoRecord Info Record
SupplierMaterialNumber SupplierMaterialNumber Supp. Mat. No.
OrderPriceUnitToOrderUnitNmrtr OrderPriceUnitToOrderUnitNmrtr Quantity Conversion Numerator
OrdPriceUnitToOrderUnitDnmntr OrdPriceUnitToOrderUnitDnmntr Quantity Conversion Denominator
OrderItemQtyToBaseQtyNmrtr OrderItemQtyToBaseQtyNmrtr Equal To
OrderItemQtyToBaseQtyDnmntr OrderItemQtyToBaseQtyDnmntr Denominator
NetPriceQuantity NetPriceQuantity Price Unit
NetAmount NetAmount Stated Amount
TaxCode TaxCode Tax Code
PriceIsToBePrinted PriceIsToBePrinted Print Price
OverdelivTolrtdLmtRatioInPct OverdelivTolrtdLmtRatioInPct Overdeliv. Tol.
UnlimitedOverdeliveryIsAllowed UnlimitedOverdeliveryIsAllowed Unlimited Tol.
UnderdelivTolrtdLmtRatioInPct UnderdelivTolrtdLmtRatioInPct Underdel. Tol.
ValuationType ValuationType Valuation Type
IsCompletelyDelivered IsCompletelyDelivered Is completely delivered
IsFinallyInvoiced IsFinallyInvoiced Final Invoice
PurchaseOrderItemCategory PurchaseOrderItemCategory Item Category
PurgDocItemCategoryName
AccountAssignmentCategory AccountAssignmentCategory Acct Assgmt Cat
MultipleAcctAssgmtDistribution MultipleAcctAssgmtDistribution Distribution
PartialInvoiceDistribution PartialInvoiceDistribution Partial invoice
GoodsReceiptIsExpected GoodsReceiptIsExpected Goods Receipt
GoodsReceiptIsNonValuated GoodsReceiptIsNonValuated GR Non-Valuated
InvoiceIsExpected InvoiceIsExpected Invoice Receipt
InvoiceIsGoodsReceiptBased InvoiceIsGoodsReceiptBased GR-Based IV
BaseUnit BaseUnit Unit of Measure
EffectiveAmount EffectiveAmount Effective value
ItemNetWeight ItemNetWeight Net Weight
ItemWeightUnit ItemWeightUnit Unit of Weight
TaxJurisdiction TaxJurisdiction Tax Jurisdiction
InternationalArticleNumber InternationalArticleNumber EAN/UPC
SupplierConfirmationControlKey SupplierConfirmationControlKey Conf. Control
ProfitCenter ProfitCenter Profit Center
PricingDateControl PricingDateControl Pr. Date Cat.
ItemVolume ItemVolume Volume
ItemVolumeUnit ItemVolumeUnit Volume Unit
ItemIncotermsClassification I_PurchaseOrderItem IncotermsClassification Incoterms
ItemIncotermsTransferLocation I_PurchaseOrderItem IncotermsTransferLocation Incoterms 2
SupplierSubrange I_PurchaseOrderItem SupplierSubrange Suppl. Subrange
ServicePackage ServicePackage Package number
EvaldRcptSettlmtIsAllowed EvaldRcptSettlmtIsAllowed ERS
IsReturnsItem IsReturnsItem Returns Item
EarmarkedFunds EarmarkedFunds Earmarked Funds
EarmarkedFundsItem EarmarkedFundsItem Document Item
IncotermsLocation1 I_PurchaseOrderItem IncotermsLocation1 Inco. Location1
IncotermsLocation2 I_PurchaseOrderItem IncotermsLocation2 Inco. Location2
ServicePerformer ServicePerformer Service Performer
ProductType ProductType Product Type Group
OrderPriceUnit OrderPriceUnit Order Price Un.
MaterialName
PurchaseOrderItemText PurchaseOrderItemText Short Text
PlantName _Plant PlantName Plant Name
CompanyCodeName Company Name
TaxCalculationProcedure
IsBusinessPurposeCompleted Purpose Completed
PurchasingDocumentStatus
PurchasingDocumentStatusName
SemanticObject
PurchaseOrderQuantityUnit
StorageLocationName _StorageLocation StorageLocationName Storage Loc. Name
MaterialGroupName
ProductTypeName
InvoicingPartyName Supplier Name
PerformancePeriodStartDate _ScheduleLine PerformancePeriodStartDate Start of Performance Period
PerformancePeriodEndDate _ScheduleLine PerformancePeriodEndDate End of Performance Period

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 P_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.
-- SQL view name: PPOMASSUPDATE

CREATE VIEW P_PurchaseOrderMassUpdate AS
SELECT
  cast(I_PurchaseOrder.PurchaseOrder as abap.char(25)) AS FormattedPurDoc,
  cast(I_PurchaseOrder.PurchaseOrder as abap.char(16)) AS FormattedPurchasingDocItem,
  I_PurchaseOrder.PurchaseOrder AS PurchaseOrder,
  cast('' as vdm_purchaseorderitem) AS PurchaseOrderItem,
  cast('00000000000000' as abap.char( 30 )) AS ReleaseDateTime,
  cast ('' as abap.char( 120 )) AS InternalComment,
  cast ('' as abap.sstring( 1332 )) AS MemoLine,
  cast ('' as abap.sstring( 1332 )) AS DefectCodeText,
  cast ('' as abap.char( 1 )) AS ItemIsSelectedForProcessing,
  cast ('' as abap.char( 1 )) AS PurgDocMassUpdtIsSimulated,
  _POCount.NumberOfPurchaseOrderItems AS NumberOfPurchaseOrderItems,
  cast ( '0' as abap.char(1)) AS HierarchyNodeLevel,
  cast ( ' ' as abap.char(16)) AS ParentNode,
  cast ('expanded' as abap.char(8)) AS DrillDownState,
  cast(0 as abap.int4 ) AS NumberOfItems,
  Supplier,
  I_PurchaseOrder.PurchasingOrganization AS PurchasingOrganization,
  I_PurchaseOrder.PurchaseOrderType AS PurchaseOrderType,
  PurchaseOrderDate,
  PurchasingDocumentOrigin,
  CompanyCode,
  cast ('' as ewerk) AS Plant,
  cast ('' as matnr) AS Material,
  PaymentTerms,
  _PaymentTerms._Text[1: Language = $session.system_language ].PaymentTermsName AS PaymentTermsName,
  CashDiscount1Days,
  CashDiscount2Days,
  NetPaymentDays,
  CashDiscount1Percent,
  CashDiscount2Percent,
  I_PurchaseOrder.PurchasingGroup AS PurchasingGroup,
  DocumentCurrency,
  SupplierRespSalesPersonName,
  SupplierPhoneNumber,
  SupplyingSupplier,
  IncotermsClassification,
  _IncotermsClassification._Text[1: Language = $session.system_language].IncotermsClassificationName AS IncotermsClassificationName,
  IncotermsTransferLocation,
  InvoicingParty,
  cast (ExchangeRate as abap.quan( 9, 5 )) AS ExchangeRate,
  _Supplier.SupplierName AS SupplierName,
  IncotermsVersion,
  _PurchaseOrderType._Text[1: Language = $session.system_language ].PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
  _PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
  _PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
  cast(IncotermsLocation1 as vdm_h_inco2_l ) AS HeaderIncotermsLoc1,
  cast(IncotermsLocation2 as vdm_h_inco3_l ) AS HeaderIncotermsLoc2,
  PurchasingDocumentDeletionCode,
  cast ('' as ematnr) AS ManufacturerMaterial,
  cast ('' as vdm_storage_location) AS StorageLocation,
  cast ('' as matkl) AS MaterialGroup,
  cast ('' as infnr) AS PurchasingInfoRecord,
  cast ('' as idnlf) AS SupplierMaterialNumber,
  cast ('0' as bpumz) AS OrderPriceUnitToOrderUnitNmrtr,
  cast ('0' as bpumn) AS OrdPriceUnitToOrderUnitDnmntr,
  cast ('0' as umbsz) AS OrderItemQtyToBaseQtyNmrtr,
  cast ('0' as umbsn) AS OrderItemQtyToBaseQtyDnmntr,
  cast ('0' as vdm_price_unit) AS NetPriceQuantity,
  cast ('0' as netwr) AS NetAmount,
  cast ('' as mwskz) AS TaxCode,
  cast ('' as prsdr) AS PriceIsToBePrinted,
  cast ('0' as uebto) AS OverdelivTolrtdLmtRatioInPct,
  cast ('' as uebtk) AS UnlimitedOverdeliveryIsAllowed,
  cast ('0' as untto) AS UnderdelivTolrtdLmtRatioInPct,
  cast ('' as bwtar_d) AS ValuationType,
  cast ('' as elikz) AS IsCompletelyDelivered,
  cast ('' as erekz) AS IsFinallyInvoiced,
  cast ('' as pstyp) AS PurchaseOrderItemCategory,
  cast('' as ptext_d) AS PurgDocItemCategoryName,
  cast ('' as knttp) AS AccountAssignmentCategory,
  cast ('' as vrtkz) AS MultipleAcctAssgmtDistribution,
  cast ('' as twrkz) AS PartialInvoiceDistribution,
  cast ('' as wepos) AS GoodsReceiptIsExpected,
  cast ('' as weunb) AS GoodsReceiptIsNonValuated,
  cast ('' as repos) AS InvoiceIsExpected,
  cast ('' as webre) AS InvoiceIsGoodsReceiptBased,
  cast ('' as lagme) AS BaseUnit,
  cast ('0' as effwr) AS EffectiveAmount,
  cast ('0' as ntgew) AS ItemNetWeight,
  cast ('' as gewei) AS ItemWeightUnit,
  cast ('' as txjcd) AS TaxJurisdiction,
  cast ('' as ean11) AS InternationalArticleNumber,
  cast ('' as bstae) AS SupplierConfirmationControlKey,
  cast ('' as prctr) AS ProfitCenter,
  cast ('' as meprf) AS PricingDateControl,
  cast ('0' as volum) AS ItemVolume,
  cast ('' as voleh) AS ItemVolumeUnit,
  cast ('' as inco1) AS ItemIncotermsClassification,
  cast ('' as inco2) AS ItemIncotermsTransferLocation,
  cast ('' as ltsnr) AS SupplierSubrange,
  cast ('' as packno) AS ServicePackage,
  cast ('' as xersy) AS EvaldRcptSettlmtIsAllowed,
  cast ('' as retpo) AS IsReturnsItem,
  cast ('' as kblnr) AS EarmarkedFunds,
  cast ('' as kblpos) AS EarmarkedFundsItem,
  cast ('' as inco2_l) AS IncotermsLocation1,
  cast ('' as inco3_l) AS IncotermsLocation2,
  cast ('' as serviceperformer) AS ServicePerformer,
  cast ('' as producttype) AS ProductType,
  cast ('' as bprme) AS OrderPriceUnit,
  cast ('' as maktx) AS MaterialName,
  cast ('' as txz01) AS PurchaseOrderItemText,
  cast ('' as werks_name) AS PlantName,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  cast ('' as kalsm_d) AS TaxCalculationProcedure,
  _Supplier.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
  cast ('' as abap.char( 2 )) AS PurchasingDocumentStatus,
  cast ('' as ddtext) AS PurchasingDocumentStatusName,
  cast ('PurchaseOrder' as abap.char( 40 )) AS SemanticObject,
  cast ('' as meins) AS PurchaseOrderQuantityUnit,
  cast ('' as lgort_name) AS StorageLocationName,
  cast ('' as wgbez) AS MaterialGroupName,
  cast ('' as product_type_description) AS ProductTypeName,
  _InvoicingParty.SupplierName AS InvoicingPartyName,
  cast('00000000' as performanceperiodstartdate) AS PerformancePeriodStartDate,
  cast('00000000' as mmpur_servproc_period_end) as PerformancePeriodEndDate AS char25asFormattedPurDoc,
  cast ('00000000' as kdatb) AS ValidityStartDate,
  cast ('00000000' as kdate) AS ValidityEndDate,
  _ScheduleLine.PerformancePeriodEndDate AS PerformancePeriodEndDate
FROM I_PurchaseOrder
INNER JOIN C_Purchaseorderitemcount AS _POCount ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurchaseOrderScheduleLine AS _ScheduleLine ON _Item.PurchaseOrder = _ScheduleLine.PurchaseOrder AND _Item.PurchaseOrderItem = _ScheduleLine.PurchaseOrderItem AND _Item.ProductType = '2'  -- association [0..1]
-- UNION with additional select branch(es): I_PurchaseOrderItem
;