I_ProcOrdMgmtOpCompAggrgn

DDL: I_PROCORDMGMTOPCOMPAGGRGN SQL: IPOROPCOMPAGGRGN Type: view COMPOSITE Package: VDM_PP_PROC_ORD_MNG

Process ord op components aggregation

I_ProcOrdMgmtOpCompAggrgn is a Composite CDS View that provides data about "Process ord op components aggregation" in SAP S/4HANA. It reads from 1 data source (P_ProcOrdMgmtOpComponents) and exposes 46 fields with key fields Reservation, ReservationItem, RecordType. It has 1 association to related views. Part of development package VDM_PP_PROC_ORD_MNG.

Data Sources (1)

SourceAliasJoin Type
P_ProcOrdMgmtOpComponents comp from

Associations (1)

CardinalityTargetAliasCondition
[0..1] P_ProcOrdMgmtOpCompSpltBat_2 _spiltCompBatch comp.Reservation = _spiltCompBatch.Reservation and comp.ProcessOrder = _spiltCompBatch.ProcessOrder and comp.ReservationItem = _spiltCompBatch.LeadingReservationItem --to parent

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName IPOROPCOMPAGGRGN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Process ord op components aggregation view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value Reservation view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value ReservationItem view
UI.headerInfo.typeName Component view
UI.headerInfo.typeNamePlural Components view

Fields (46)

KeyFieldSource TableSource FieldDescription
KEY Reservation P_ProcOrdMgmtOpComponents Reservation Reservation
KEY ReservationItem P_ProcOrdMgmtOpComponents ReservationItem Reservation Item
KEY RecordType P_ProcOrdMgmtOpComponents RecordType Reservation Record Type
ProcessOrder P_ProcOrdMgmtOpComponents ProcessOrder Order
ManufacturingOrderCategory P_ProcOrdMgmtOpComponents ManufacturingOrderCategory
ManufacturingOrderType P_ProcOrdMgmtOpComponents ManufacturingOrderType
ManufacturingOrderOperation
ManufacturingOrderSequence P_ProcOrdMgmtOpComponents ManufacturingOrderSequence
Material P_ProcOrdMgmtOpComponents Material Vehicle Model
MaterialName P_ProcOrdMgmtOpComponents MaterialName Material Description
PlanningPlant P_ProcOrdMgmtOpComponents PlanningPlant Valuation Area
MatlCompIsMarkedForBackflush P_ProcOrdMgmtOpComponents MatlCompIsMarkedForBackflush Backflush
ProductionPlant P_ProcOrdMgmtOpComponents ProductionPlant Prod plnt
ProductionPlantName P_ProcOrdMgmtOpComponents ProductionPlantName Plant Name
PlantTimeZone P_ProcOrdMgmtOpComponents PlantTimeZone Time Zone
BaseUnit P_ProcOrdMgmtOpComponents BaseUnit Unit of Measure
EntryUnit P_ProcOrdMgmtOpComponents EntryUnit Unit of Entry
RequiredQuantityendasRequiredQuantity
MatlCompRequirementDate P_ProcOrdMgmtOpComponents MatlCompRequirementDate Reqmts date
MatlCompRequirementTime P_ProcOrdMgmtOpComponents MatlCompRequirementTime
ProcOrdCompAvailabilityStsCode P_ProcOrdMgmtOpComponents ProcOrdCompAvailabilityStsCode
BillOfMaterialItemCategory P_ProcOrdMgmtOpComponents BillOfMaterialItemCategory Item Category
BillOfMaterialItemCategoryDesc P_ProcOrdMgmtOpComponents BillOfMaterialItemCategoryDesc Item Category
StorageLocation P_ProcOrdMgmtOpComponents StorageLocation StorageLocation
StorageLocationName P_ProcOrdMgmtOpComponents StorageLocationName Storage Loc. Name
MaterialIsCoProduct P_ProcOrdMgmtOpComponents MaterialIsCoProduct Co-product
StockSegment P_ProcOrdMgmtOpComponents StockSegment Stock Segment
RequirementSegment P_ProcOrdMgmtOpComponents RequirementSegment Req. Segment
BatchendasBatch
BatchSplitType P_ProcOrdMgmtOpComponents BatchSplitType
IsBatchManagementRequired P_ProcOrdMgmtOpComponents IsBatchManagementRequired Batch Mgmt Rqt(Plnt)
LeadingReservationItem P_ProcOrdMgmtOpComponents LeadingReservationItem
NumberOfBatcheselse0endasNumberOfBatches
MaterialAvailyIsNotChecked P_ProcOrdMgmtOpComponents MaterialAvailyIsNotChecked
MaterialComponentIsMissing P_ProcOrdMgmtOpComponents MaterialComponentIsMissing
ReservationIsFinallyIssued P_ProcOrdMgmtOpComponents ReservationIsFinallyIssued Res Final Issue
MatlCompIsMarkedForDeletion P_ProcOrdMgmtOpComponents MatlCompIsMarkedForDeletion
BillOfMaterialItemNumber P_ProcOrdMgmtOpComponents BillOfMaterialItemNumber Item
_Material _Material
_MfgOrderCategory _MfgOrderCategory
_MfgOrderSequence _MfgOrderSequence
_MfgOrderType _MfgOrderType
_ProductionPlant _ProductionPlant
_Reservation _Reservation
_ReservationDocRecordType _ReservationDocRecordType
toparent_ProcOrdMgmt

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 I_ProcOrdMgmtOpCompAggrgn.
-- 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: IPOROPCOMPAGGRGN

CREATE VIEW I_ProcOrdMgmtOpCompAggrgn AS
SELECT
  comp.Reservation AS Reservation,
  comp.ReservationItem AS ReservationItem,
  comp.RecordType AS RecordType,
  comp.ProcessOrder AS ProcessOrder,
  comp.ManufacturingOrderCategory AS ManufacturingOrderCategory,
  comp.ManufacturingOrderType AS ManufacturingOrderType,
  cast(comp.ManufacturingOrderOperation as processorderoperation preserving type) AS ManufacturingOrderOperation,
  comp.ManufacturingOrderSequence AS ManufacturingOrderSequence,
  comp.Material AS Material,
  comp.MaterialName AS MaterialName,
  comp.PlanningPlant AS PlanningPlant,
  comp.MatlCompIsMarkedForBackflush AS MatlCompIsMarkedForBackflush,
  comp.ProductionPlant AS ProductionPlant,
  comp.ProductionPlantName AS ProductionPlantName,
  comp.PlantTimeZone AS PlantTimeZone,
  comp.BaseUnit AS BaseUnit,
  comp.EntryUnit AS EntryUnit,
  case when aggrComp.RequiredQuantity > 0 then (aggrComp.RequiredQuantity + comp.RequiredQuantity) else comp.RequiredQuantity end as RequiredQuantity AS RequiredQuantityendasRequiredQuantity,
  comp.MatlCompRequirementDate AS MatlCompRequirementDate,
  comp.MatlCompRequirementTime AS MatlCompRequirementTime,
  comp.ProcOrdCompAvailabilityStsCode AS ProcOrdCompAvailabilityStsCode,
  comp.BillOfMaterialItemCategory AS BillOfMaterialItemCategory,
  comp.BillOfMaterialItemCategoryDesc AS BillOfMaterialItemCategoryDesc,
  comp.StorageLocation AS StorageLocation,
  comp.StorageLocationName AS StorageLocationName,
  comp.MaterialIsCoProduct AS MaterialIsCoProduct,
  comp.StockSegment AS StockSegment,
  comp.RequirementSegment AS RequirementSegment,
  case when aggrComp.NumberOfBatches = 1 and comp.Batch is initial then _spiltCompBatch.Batch else comp.Batch end as Batch AS BatchendasBatch,
  comp.BatchSplitType AS BatchSplitType,
  comp.IsBatchManagementRequired AS IsBatchManagementRequired,
  comp.LeadingReservationItem AS LeadingReservationItem,
  case when aggrComp.NumberOfBatches > 0 then aggrComp.NumberOfBatches else 0 end as NumberOfBatches AS NumberOfBatcheselse0endasNumberOfBatches,
  comp.MaterialAvailyIsNotChecked AS MaterialAvailyIsNotChecked,
  comp.MaterialComponentIsMissing AS MaterialComponentIsMissing,
  comp.ReservationIsFinallyIssued AS ReservationIsFinallyIssued,
  comp.MatlCompIsMarkedForDeletion AS MatlCompIsMarkedForDeletion,
  comp.BillOfMaterialItemNumber AS BillOfMaterialItemNumber
FROM P_ProcOrdMgmtOpComponents AS comp
LEFT OUTER JOIN P_ProcOrdMgmtOpCompSpltBat_2 AS _spiltCompBatch ON comp.Reservation = _spiltCompBatch.Reservation AND comp.ProcessOrder = _spiltCompBatch.ProcessOrder AND comp.ReservationItem = _spiltCompBatch.LeadingReservationItem  -- association [0..1]
;