I_ProductionOrderOperation_2

DDL: I_PRODUCTIONORDEROPERATION_2 Type: view_entity COMPOSITE

Production Order Operation

I_ProductionOrderOperation_2 (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

ProductionOrderOperation · Manufacturing

I_ProductionOrderOperation_2 is a Composite CDS View (Fact) that provides data about "Production Order Operation" in SAP S/4HANA. It reads from 2 data sources (I_OrderOperation, I_MfgOrderBasic) and exposes 62 fields with key fields OrderInternalID, OrderOperationInternalID. It has 81 associations to related views.

SAP Help Documentation

CategoryCDS Views for Discrete Manufacturing
Data CategoryFact
Purpose
This CDS view retrieves production order operation data by internal key (tables AFVC , AFVV , AFVU ). This CDS view provides the data to answer the following business questions: Which operations exist for a production order? Which work center belongs to a production order operation? Which production order operations are externally processed? What are the earliest and latest scheduled start and end dates of a production order operation? Which work quantities have been confirmed for a production order operation? What are the planned and confirmed scrap quantities of a production order operation? How many capacities and how many confirmation slips are assigned to a production order operation? Which was the reference bill of operation (routing) of a production order operation? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: AUTYP (Order Category) AUFART_WERKS (Order Type/Plant) You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included.

Structure
Important Fields Important fields in this view include the following: Field Name Description OrderInternalID Order Internal ID OrderOperationInternalID Operation Internal ID ProductionOrder Production Order ProductionOrderSequence Production Order Sequence ProductionOrderOperation Production Order Operation ProductionOrderType Production Order Type ProductionSupervisor Production Supervisor NumberOfCapacities Number of Capacities Plant Plant WorkCenterInternalID Work Center Internal OperationControlProfile Control Profile FactoryCalendar Factory Calendar CapacityRequirementItem Capacity Requirement Item BillOfOperationsVersion Routing Version PurchaseRequisition Purchase Requisition PurchaseRequisitionItem Purchase Requisition Item PurchasingInfoRecord Purchasing Info Record Supplier Supplier OpExternalProcessingCurrency Currency OpExternalProcessingPrice Price ProfitCenter Profit Center RequestingCostCenter Reqst. Cost Center NumberOfTimeTickets No. of Time Tickets OperationSetupGroup Setup Group OperationSetupType Setup Type OpErlstSchedldExecStrtDte Earliest Scheduled Execution Start Date OpErlstSchedldExecStrtTme Earliest Scheduled Execution Start Time OpErlstSchedldExecEndDte Earliest Scheduled Execution End Date OpErlstSchedldExecEndTme Earliest Scheduled Execution End Time OpLtstSchedldExecStrtDte Latest Scheduled Execution Start Date OpLtstSchedldExecStrtTme Latest Scheduled Execution Start Time OpLtstSchedldExecEndDte Latest Scheduled Execution End Date OpLtstSchedldExecEndTme Latest Scheduled Execution End Time OperationUnit Operation Unit OpPlannedTotalQuantity Operation Quantity OpPlannedScrapQuantity Planned Scrap OpTotalConfirmedYieldQty Confirmed Yield OpTotalConfirmedScrapQty Confirmed Scrap OperationConfirmedReworkQty Confirmed Rework OpWorkQuantityUnit1 Confirmed Work Quantity Unit 1 OpConfirmedWorkQuantity1 Confirmed Work Quantity 1 OpWorkQuantityUnit2 Confirmed Work Quantity Unit 2 OpConfirmedWorkQuantity2 Confirmed Work Quantity 2 OpWorkQuantityUnit3 Confirmed Work Quantity Unit 3 OpConfirmedWorkQuantity3 Confirmed Work Quantity 3 OpWorkQuantityUnit4 Confirmed Work Quantity Unit 4 OpConfirmedWorkQuantity4 Confirmed Work Quantity 4 OpWorkQuantityUnit5 Confirmed Work Quantity Unit 5 OpConfirmedWorkQuantity5 Confirmed Work Quantity 5 OpWorkQuantityUnit6 Confirmed Work Quantity Unit 6 OpConfirmedWorkQuantity6 Confirmed Work Quantity 6 ForecastWorkQuantity1 Forecast Work Quan

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentPP-VDM
CapabilitiesData Source for Defining CDS Entities, Data Source for Data Extraction, Data Source in SQL Select
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view retrieves production order operation data by internal key (tables AFVC, AFVV, AFVU). </p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>Which operations exist for a production order?</p></li> <li><p>Which work center belongs to a production order operation?</p></li> <li><p>Which production order operations are externally processed?</p></li> <li><p>What are the earliest and latest scheduled start and end dates of a production order operation?</p></li> <li><p>Which work quantities have been confirmed for a production order operation?</p></li> <li><p>What are the planned and confirmed scrap quantities of a production order operation?</p></li> <li><p>How many capacities and how many confirmation slips are assigned to a production order operation?</p></li> <li><p>Which was the reference bill of operation (routing) of a production order operation?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (2)

SourceAliasJoin Type
I_OrderOperation afvg from
I_MfgOrderBasic aufv inner

Associations (81)

CardinalityTargetAliasCondition
[1..1] I_ProductionOrderInternalID _ProductionOrderInternal $projection.OrderInternalID = _ProductionOrderInternal.ProductionOrderInternalID
[1..1] I_ProductionOrderType _ProductionOrderType $projection.ProductionOrderType = _ProductionOrderType.ProductionOrderType
[0..1] I_OperationStandardText _OperationStandardTextCode $projection.OperationStandardTextCode = _OperationStandardTextCode.OperationStandardTextCode
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_UnitOfMeasure _ProductionUnit $projection.ProductionUnit = _ProductionUnit.UnitOfMeasure
[1..1] I_UnitOfMeasure _OperationUnit $projection.OperationUnit = _OperationUnit.UnitOfMeasure
[0..1] I_ProductionSupervisor _ProductionSupervisor $projection.Plant = _ProductionSupervisor.Plant and $projection.ProductionSupervisor = _ProductionSupervisor.ProductionSupervisor
[0..1] I_MRPController _MRPController $projection.Plant = _MRPController.Plant and $projection.MRPController = _MRPController.MRPController
[0..1] I_WorkCenterType _WorkCenterType $projection.WorkCenterType = _WorkCenterType.WorkCenterTypeCode
[0..1] I_WorkCenter _WorkCenter $projection.WorkCenterType = _WorkCenter.WorkCenterTypeCode and $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID
[1..1] I_OperationControlProfile _OperationControlProfile $projection.OperationControlProfile = _OperationControlProfile.OperationControlProfile
[0..1] I_BillOfOperationsType _BillOfOperationsType $projection.BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType
[0..1] I_BillOfOperationsGroup _BillOfOperationsGroup $projection.BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup
[0..1] I_MfgBillOfOperations _BillOfOperationsVariant $projection.BillOfOperationsType = _BillOfOperationsVariant.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsVariant.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperationsVariant.BillOfOperationsVariant
[0..1] I_MfgBillOfOperationsSequence _BillOfOperationsSequence $projection.BillOfOperationsType = _BillOfOperationsSequence.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsSequence.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperationsSequence.BillOfOperationsVariant and $projection.BillOfOperationsSequence = _BillOfOperationsSequence.BillOfOperationsSequence
[0..1] I_BOOOperationInternalID _BOOOperationInternalID $projection.BillOfOperationsType = _BOOOperationInternalID.BillOfOperationsType and $projection.BillOfOperationsGroup = _BOOOperationInternalID.BillOfOperationsGroup and $projection.BOOOperationInternalID = _BOOOperationInternalID.BOOOperationInternalID
[0..1] I_FactoryCalendar _FactoryCalendar $projection.FactoryCalendar = _FactoryCalendar.FactoryCalendar
[0..1] I_CapacityRequirement _CapacityRequirement $projection.CapacityRequirement = _CapacityRequirement.CapacityRequirement
[0..1] I_CapacityRequirementItem _CapacityRequirementItem $projection.CapacityRequirement = _CapacityRequirementItem.CapacityRequirement and $projection.CapacityRequirementItem = _CapacityRequirementItem.CapacityRequirementItem
[0..1] I_ConfirmationGroup _OperationConfirmation $projection.OperationConfirmation = _OperationConfirmation.ConfirmationGroup
[0..1] I_ChangeMaster _ChangeNumber $projection.ChangeNumber = _ChangeNumber.ChangeNumber
[0..1] I_PurchaseContractAPI01 _PurchaseContract $projection.PurchaseOutlineAgreement = _PurchaseContract.PurchaseContract
[0..1] I_PurchaseContractItemAPI01 _PurchaseContractItem $projection.PurchaseOutlineAgreement = _PurchaseContractItem.PurchaseContract and $projection.PurchaseOutlineAgreementItem = _PurchaseContractItem.PurchaseContractItem
[0..1] I_SchedgagrmthdrApi01 _SchedulingAgreement $projection.PurchaseOutlineAgreement = _SchedulingAgreement .SchedulingAgreement
[0..1] I_SchedgAgrmtItmApi01 _SchedulingAgreementItem $projection.PurchaseOutlineAgreement = _SchedulingAgreementItem.SchedulingAgreement and $projection.PurchaseOutlineAgreementItem = _SchedulingAgreementItem.SchedulingAgreementItem
[0..1] I_Purchaserequisition _PurchaseRequisition $projection.PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition
[0..1] I_PurchaseRequisitionItemAPI01 _PurchaseRequisitionItem $projection.PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition and $projection.PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem
[0..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[0..1] I_PurchasingGroup _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[0..1] I_PurchasingInfoRecordApi01 _PurchasingInfoRecord $projection.PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[1..1] I_StatusObject _StatusObject $projection.ObjectInternalID = _StatusObject.StatusObject
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..*] I_ProfitCenter _ProfitCenter $projection.ControllingArea = _ProfitCenter.ControllingArea and $projection.ProfitCenter = _ProfitCenter.ProfitCenter
[0..*] I_CostCenter _RequestingCostCenter $projection.ControllingArea = _RequestingCostCenter.ControllingArea and $projection.RequestingCostCenter = _RequestingCostCenter.CostCenter
[0..1] I_CostElement _CostElement $projection.ControllingArea = _CostElement.ControllingArea and $projection.CostElement = _CostElement.CostElement
[0..1] I_CostingVariant _CostingVariant $projection.CostingVariant = _CostingVariant.CostingVariant
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_ControllingObjectClass _ControllingObjectClass $projection.ControllingObjectClass = _ControllingObjectClass.ControllingObjectClass
[0..1] I_Currency _ControllingObjectCurrency $projection.ControllingObjectCurrency = _ControllingObjectCurrency.Currency
[0..1] I_Currency _OpExternalProcessingCurrency $projection.OpExternalProcessingCurrency = _OpExternalProcessingCurrency.Currency
[0..1] I_FunctionalArea _FunctionalArea $projection.FunctionalArea = _FunctionalArea.FunctionalArea
[0..1] I_BusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea
[0..1] I_BusinessProcess _BusinessProcess $projection.ControllingArea = _BusinessProcess.ControllingArea and $projection.BusinessProcess = _BusinessProcess.BusinessProcess
[0..1] I_UnitOfMeasure _BusinessProcessEntryUnit $projection.BusinessProcessEntryUnit = _BusinessProcessEntryUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _ConfirmedWorkQuantityUnit1 $projection.WorkQuantityUnit1 = _ConfirmedWorkQuantityUnit1.UnitOfMeasure
[0..1] I_UnitOfMeasure _ConfirmedWorkQuantityUnit2 $projection.WorkQuantityUnit2 = _ConfirmedWorkQuantityUnit2.UnitOfMeasure
[0..1] I_UnitOfMeasure _ConfirmedWorkQuantityUnit3 $projection.WorkQuantityUnit3 = _ConfirmedWorkQuantityUnit3.UnitOfMeasure
[0..1] I_UnitOfMeasure _ConfirmedWorkQuantityUnit4 $projection.WorkQuantityUnit4 = _ConfirmedWorkQuantityUnit4.UnitOfMeasure
[0..1] I_UnitOfMeasure _ConfirmedWorkQuantityUnit5 $projection.WorkQuantityUnit5 = _ConfirmedWorkQuantityUnit5.UnitOfMeasure
[0..1] I_UnitOfMeasure _ConfirmedWorkQuantityUnit6 $projection.WorkQuantityUnit6 = _ConfirmedWorkQuantityUnit6.UnitOfMeasure
[0..1] I_UnitOfMeasure _StdWorkQuantityUnit1 $projection.WorkCenterStandardWorkQtyUnit1 = _StdWorkQuantityUnit1.UnitOfMeasure
[0..1] I_UnitOfMeasure _StdWorkQuantityUnit2 $projection.WorkCenterStandardWorkQtyUnit2 = _StdWorkQuantityUnit2.UnitOfMeasure
[0..1] I_UnitOfMeasure _StdWorkQuantityUnit3 $projection.WorkCenterStandardWorkQtyUnit3 = _StdWorkQuantityUnit3.UnitOfMeasure
[0..1] I_UnitOfMeasure _StdWorkQuantityUnit4 $projection.WorkCenterStandardWorkQtyUnit4 = _StdWorkQuantityUnit4.UnitOfMeasure
[0..1] I_UnitOfMeasure _StdWorkQuantityUnit5 $projection.WorkCenterStandardWorkQtyUnit5 = _StdWorkQuantityUnit5.UnitOfMeasure
[0..1] I_UnitOfMeasure _StdWorkQuantityUnit6 $projection.WorkCenterStandardWorkQtyUnit6 = _StdWorkQuantityUnit6.UnitOfMeasure
[0..1] I_OperationSetupGroupCategory _OperationSetupGroupCategory $projection.Plant = _OperationSetupGroupCategory.Plant and $projection.OperationSetupGroupCategory = _OperationSetupGroupCategory.OperationSetupGroupCategory
[0..1] I_OperationSetupGroup _OperationSetupGroup $projection.OperationSetupGroup = _OperationSetupGroup.OperationSetupGroup and $projection.OperationSetupGroupCategory = _OperationSetupGroup.OperationSetupGroupCategory and $projection.Plant = _OperationSetupGroup.Plant
[0..1] I_OperationSetupType _OperationSetupType $projection.OperationSetupType = _OperationSetupType.OperationSetupType and $projection.Plant = _OperationSetupType.Plant
[0..1] I_LeadTimeReductionStrategy _LeadTimeReductionStrategy $projection.LeadTimeReductionStrategy = _LeadTimeReductionStrategy.LeadTimeReductionStrategy and $projection.Plant = _LeadTimeReductionStrategy.Plant
[0..1] I_OperationDateOffsetRefCode _StartDateOffsetReferenceCode $projection.StartDateOffsetReferenceCode = _StartDateOffsetReferenceCode.OperationDateOffsetRefCode
[0..1] I_OperationDateOffsetRefCode _EndDateOffsetReferenceCode $projection.EndDateOffsetReferenceCode = _EndDateOffsetReferenceCode.OperationDateOffsetRefCode
[0..1] I_StandardWorkFmlaParamGroup _StandardWorkFmlaParamGroup $projection.StandardWorkFormulaParamGroup = _StandardWorkFmlaParamGroup.StandardWorkFormulaParamGroup
[0..1] I_Language _LongTextLanguage $projection.LongTextLanguage = _LongTextLanguage.Language -- to extension
[1..1] E_OrderOperation _Extension $projection.OrderInternalID = _Extension.OrderInternalID and $projection.OrderOperationInternalID = _Extension.OrderOperationInternalID -- SOT relations
[1..1] I_ProductionOrder _ProductionOrderHeader $projection.ProductionOrder = _ProductionOrderHeader.ProductionOrder
[1..1] I_Plant _PlantText $projection.Plant = _PlantText.Plant
[1..1] I_ProductionOrder _ProductionOrderText $projection.ProductionOrder = _ProductionOrderText.ProductionOrder
[0..*] I_WorkCenterText _WorkCenterText $projection.WorkCenterInternalID = _WorkCenterText.WorkCenterInternalID and $projection.WorkCenterType = _WorkCenterText.WorkCenterTypeCode
[0..1] I_Supplier _SupplierText $projection.Supplier = _SupplierText.Supplier
[1..1] I_StatusObject _StatusObjectText $projection.ObjectInternalID = _StatusObjectText.StatusObject
[0..*] I_BusinessAreaText _BusinessAreaText $projection.BusinessArea = _BusinessAreaText.BusinessArea
[0..1] I_CompanyCode _CompanyCodeText $projection.CompanyCode = _CompanyCodeText.CompanyCode
[0..1] I_ControllingArea _ControllingAreaText $projection.ControllingArea = _ControllingAreaText.ControllingArea
[0..*] I_FunctionalAreaText _FunctionalAreaText $projection.FunctionalArea = _FunctionalAreaText.FunctionalArea -- end new associations for full coverage of text relations
[0..*] I_ProductionOrderComponent _ProductionOrderComponent
[0..*] I_ProductionOrderTriggerPoint _ProductionOrderTriggerPoint
[0..*] I_ProductionOrderPRT _ProductionOrderPRT
[0..*] I_ProdnOrderOperationCapacity _ProdnOrderOperationCapacity
[0..*] I_ProdnOrderOperationLongText _LongText

Annotations (13)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
Analytics.dataCategory #FACT view
Analytics.dataExtraction.enabled true view
Analytics.technicalName IPRODNORDEROP view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view
ObjectModel.sapObjectNodeType.name ProductionOrderOperation view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #COMPOSITE view
EndUserText.label Production Order Operation view

Fields (62)

KeyFieldSource TableSource FieldDescription
KEY OrderInternalID Order Internal ID
KEY OrderOperationInternalID Internal Identifier of an Operation or Activity
ProductionOrder Production Order
ProductionOrderSequence Production Order Sequence
ProductionOrderOperation Production Order Operation
ProductionOrderType Production Order Type
ProductionSupervisor Production Supervisor
MRPController MRP Controller
ProductionOrderOperationText I_OrderOperation OperationText Operation Short Text
OperationStandardTextCode Operation Standard Text Internal ID
LongTextLanguage I_OrderOperation Language Report Text Language
OperationIsToBeDeleted I_OrderOperation OperationIsToBeDeleted Deletion Flag
NumberOfCapacities Number of Capacities Required
NumberOfConfirmationSlips I_OrderOperation NumberOfConfirmationSlips Number of Confirmation Slips
Plant I_OrderOperation Plant Valuation Area
WorkCenterInternalID Work Center Internal ID
WorkCenterType Work Center Type
OperationControlProfile Operation Control Profile
OperationConfirmation I_OrderOperation OperationConfirmation Completion confirmation number for the operation
NumberOfOperationConfirmations Number Of Confirmations
FactoryCalendar Factory Calendar ID
CapacityRequirement I_OrderOperation CapacityRequirement ID of the Capacity Requirements Record
CapacityRequirementItem Capacity Requirement Item
ChangeNumber I_OrderOperation ChangeNumber Change Number
ObjectInternalID Object Internal ID
OperationTrackingNumber I_OrderOperation OperationTrackingNumber Requirement Tracking Number
NumberOfTimeTickets I_OrderOperation NumberOfTimeTickets Number of Time Tickets
NumberOfEmployees Number of Employees
BillOfOperationsType Bill of Operations Type
BillOfOperationsGroup I_OrderOperation BillOfOperationsGroup Key for Task List Group
BillOfOperationsVariant I_OrderOperation BillOfOperationsVariant Group Counter
BillOfOperationsSequence Bill of Operation Sequence
BOOOperationInternalID I_OrderOperation BOOOperationInternalID Number of the Task List Node
BillOfOperationsVersion I_OrderOperation BillOfOperationsVersion Routing Version
BillOfMaterialCategory Bill of Material Category Code
BillOfMaterialInternalID I_OrderOperation BillOfMaterialInternalID_2 Bill Of Material
BillOfMaterialItemNodeNumber Bill of Material Item
BOMItemNodeCount I_OrderOperation BOMItemNodeCount Internal counter
ExtProcgOperationHasSubcontrg I_OrderOperation ExtProcgOperationHasSubcontrg Indicator: External Processing Operation with Subcontracting
PurchasingOrganization Purchasing Organization
PurchasingGroup I_OrderOperation PurchasingGroup Purchasing Group for External Processing Activity
PurchaseRequisition I_OrderOperation PurchaseRequisition Purchase Requisition Number
PurchaseRequisitionItem Purchase Requisition Item ID
PurchaseOutlineAgreement Purchase Schedule/Outline Agreement
PurchaseOutlineAgreementItem Purchase Schedule/Outline Agreement Item
PurgInfoRecNonStockItmSortTerm I_OrderOperation PurgInfoRecNonStockItmSortTerm Sort Term for Non-Stock Info Records
PurchasingInfoRecord Purchasing Info Record
PurgInfoRecdDataIsFixed Data of Purchasing Info Record is Fixed
PurchasingInfoRecordCategory Purchasing Info Record Category
Supplier I_OrderOperation Supplier Account Number of Supplier
PurchaseRequisitionPlndDlvDurn Material Planned Delivery Duration in Days
GoodsRecipientName Goods Recipient
UnloadingPointName I_OrderOperation UnloadingPointName Unloading Point Name
MaterialGroup I_OrderOperation MaterialGroup Material Group
InspectionLotType I_OrderOperation InspectionLotType Inspection Type
OpExternalProcessingCurrency I_OrderOperation Currency Valuation Crcy
OpExternalProcessingPrice I_OrderOperation OpExternalProcessingPrice Price
NumberOfOperationPriceUnits I_OrderOperation NumberOfOperationPriceUnits Material Price Unit Quantity
CompanyCode I_OrderOperation CompanyCode Receiver Company Code
BusinessArea I_OrderOperation BusinessArea Business Area
ControllingArea I_MfgOrderBasic ControllingArea Controlling Area
ProfitCenter Profit Center

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_ProductionOrderOperation_2.
-- 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 I_ProductionOrderOperation_2 AS
SELECT
  cast(afvg.OrderInternalID as pph_aufpl preserving type) AS OrderInternalID,
  cast(afvg.OrderOperationInternalID as operationinternalid preserving type) AS OrderOperationInternalID,
  cast(aufv.ManufacturingOrder as vdm_manufacturingorder preserving type) AS ProductionOrder,
  cast(afvg.Sequence as vdm_prodnordersequence preserving type) AS ProductionOrderSequence,
  cast(afvg.Operation_2 as vdm_prodnorderoperation preserving type) AS ProductionOrderOperation,
  cast(aufv.ManufacturingOrderType as vdm_prodnordertype preserving type) AS ProductionOrderType,
  cast(aufv.ProductionSupervisor as pph_fevor preserving type) AS ProductionSupervisor,
  cast(aufv.MRPController as pph_dispo preserving type) AS MRPController,
  afvg.OperationText AS ProductionOrderOperationText,
  cast(afvg.StandardTextInternalID as pph_ktsch preserving type) AS OperationStandardTextCode,
  afvg.Language AS LongTextLanguage,
  afvg.OperationIsToBeDeleted AS OperationIsToBeDeleted,
  cast(afvg.NumberOfCapacities as pph_anzkap preserving type) AS NumberOfCapacities,
  afvg.NumberOfConfirmationSlips AS NumberOfConfirmationSlips,
  afvg.Plant AS Plant,
  cast(afvg.WorkCenterInternalID as pph_arbid preserving type) AS WorkCenterInternalID,
  cast(afvg.WorkCenterTypeCode_2 as vdm_arbty preserving type) AS WorkCenterType,
  cast(afvg.OperationControlProfile as pph_steus preserving type) AS OperationControlProfile,
  afvg.OperationConfirmation AS OperationConfirmation,
  cast(afvg.NumberOfOperationConfirmations as pph_noofconf preserving type) AS NumberOfOperationConfirmations,
  cast(afvg.FactoryCalendar as cr_wfcid preserving type) AS FactoryCalendar,
  afvg.CapacityRequirement AS CapacityRequirement,
  cast(afvg.CapacityRequirementItem as pph_bedzl preserving type) AS CapacityRequirementItem,
  afvg.ChangeNumber AS ChangeNumber,
  cast(afvg.ObjectInternalID as pph_objnr preserving type) AS ObjectInternalID,
  afvg.OperationTrackingNumber AS OperationTrackingNumber,
  afvg.NumberOfTimeTickets AS NumberOfTimeTickets,
  cast(afvg.NumberOfEmployees as pph_anzms preserving type) AS NumberOfEmployees,
  cast(afvg.BillOfOperationsType as billofoperationstype preserving type) AS BillOfOperationsType,
  afvg.BillOfOperationsGroup AS BillOfOperationsGroup,
  afvg.BillOfOperationsVariant AS BillOfOperationsVariant,
  cast(afvg.BillOfOperationsSequence as boosequence preserving type) AS BillOfOperationsSequence,
  afvg.BOOOperationInternalID AS BOOOperationInternalID,
  afvg.BillOfOperationsVersion AS BillOfOperationsVersion,
  cast(afvg.BillOfMaterialCategory as pph_stlty preserving type) AS BillOfMaterialCategory,
  afvg.BillOfMaterialInternalID_2 AS BillOfMaterialInternalID,
  cast(afvg.BillOfMaterialItemNodeNumber as pph_stlkn preserving type) AS BillOfMaterialItemNodeNumber,
  afvg.BOMItemNodeCount AS BOMItemNodeCount,
  afvg.ExtProcgOperationHasSubcontrg AS ExtProcgOperationHasSubcontrg,
  cast(afvg.PurchasingOrganization as pph_ekorg preserving type) AS PurchasingOrganization,
  afvg.PurchasingGroup AS PurchasingGroup,
  afvg.PurchaseRequisition AS PurchaseRequisition,
  cast(afvg.PurchaseRequisitionItem as pph_bnfpo preserving type) AS PurchaseRequisitionItem,
  cast(afvg.PurchasingDocument as pph_konnr preserving type) AS PurchaseOutlineAgreement,
  cast(afvg.PurchasingDocumentItem as pph_ktpnr preserving type) AS PurchaseOutlineAgreementItem,
  afvg.PurgInfoRecNonStockItmSortTerm AS PurgInfoRecNonStockItmSortTerm,
  cast(afvg.PurchasingInfoRecord as pph_infnr preserving type) AS PurchasingInfoRecord,
  cast(afvg.PurgInfoRecdDataIsFixed as vdm_kzfix preserving type) AS PurgInfoRecdDataIsFixed,
  cast(afvg.PurchasingInfoRecordCategory as pph_esokz preserving type) AS PurchasingInfoRecordCategory,
  afvg.Supplier AS Supplier,
  cast(afvg.PlannedDeliveryDuration as pph_plifz preserving type) AS PurchaseRequisitionPlndDlvDurn,
  cast(afvg.GoodsRecipientName as pph_wempf preserving type) AS GoodsRecipientName,
  afvg.UnloadingPointName AS UnloadingPointName,
  afvg.MaterialGroup AS MaterialGroup,
  afvg.InspectionLotType AS InspectionLotType,
  afvg.Currency AS OpExternalProcessingCurrency,
  afvg.OpExternalProcessingPrice AS OpExternalProcessingPrice,
  afvg.NumberOfOperationPriceUnits AS NumberOfOperationPriceUnits,
  afvg.CompanyCode AS CompanyCode,
  afvg.BusinessArea AS BusinessArea,
  aufv.ControllingArea AS ControllingArea
FROM I_OrderOperation AS afvg
INNER JOIN I_MfgOrderBasic AS aufv ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProductionOrderInternalID AS _ProductionOrderInternal ON OrderInternalID = _ProductionOrderInternal.ProductionOrderInternalID  -- association [1..1]
LEFT OUTER JOIN I_ProductionOrderType AS _ProductionOrderType ON ProductionOrderType = _ProductionOrderType.ProductionOrderType  -- association [1..1]
LEFT OUTER JOIN I_OperationStandardText AS _OperationStandardTextCode ON OperationStandardTextCode = _OperationStandardTextCode.OperationStandardTextCode  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _ProductionUnit ON ProductionUnit = _ProductionUnit.UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _OperationUnit ON OperationUnit = _OperationUnit.UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_ProductionSupervisor AS _ProductionSupervisor ON Plant = _ProductionSupervisor.Plant AND ProductionSupervisor = _ProductionSupervisor.ProductionSupervisor  -- association [0..1]
LEFT OUTER JOIN I_MRPController AS _MRPController ON Plant = _MRPController.Plant AND MRPController = _MRPController.MRPController  -- association [0..1]
LEFT OUTER JOIN I_WorkCenterType AS _WorkCenterType ON WorkCenterType = _WorkCenterType.WorkCenterTypeCode  -- association [0..1]
LEFT OUTER JOIN I_WorkCenter AS _WorkCenter ON WorkCenterType = _WorkCenter.WorkCenterTypeCode AND WorkCenterInternalID = _WorkCenter.WorkCenterInternalID  -- association [0..1]
LEFT OUTER JOIN I_OperationControlProfile AS _OperationControlProfile ON OperationControlProfile = _OperationControlProfile.OperationControlProfile  -- association [1..1]
LEFT OUTER JOIN I_BillOfOperationsType AS _BillOfOperationsType ON BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType  -- association [0..1]
LEFT OUTER JOIN I_BillOfOperationsGroup AS _BillOfOperationsGroup ON BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup  -- association [0..1]
LEFT OUTER JOIN I_MfgBillOfOperations AS _BillOfOperationsVariant ON BillOfOperationsType = _BillOfOperationsVariant.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsVariant.BillOfOperationsGroup AND BillOfOperationsVariant = _BillOfOperationsVariant.BillOfOperationsVariant  -- association [0..1]
LEFT OUTER JOIN I_MfgBillOfOperationsSequence AS _BillOfOperationsSequence ON BillOfOperationsType = _BillOfOperationsSequence.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsSequence.BillOfOperationsGroup AND BillOfOperationsVariant = _BillOfOperationsSequence.BillOfOperationsVariant AND BillOfOperationsSequence = _BillOfOperationsSequence.BillOfOperationsSequence  -- association [0..1]
LEFT OUTER JOIN I_BOOOperationInternalID AS _BOOOperationInternalID ON BillOfOperationsType = _BOOOperationInternalID.BillOfOperationsType AND BillOfOperationsGroup = _BOOOperationInternalID.BillOfOperationsGroup AND BOOOperationInternalID = _BOOOperationInternalID.BOOOperationInternalID  -- association [0..1]
LEFT OUTER JOIN I_FactoryCalendar AS _FactoryCalendar ON FactoryCalendar = _FactoryCalendar.FactoryCalendar  -- association [0..1]
LEFT OUTER JOIN I_CapacityRequirement AS _CapacityRequirement ON CapacityRequirement = _CapacityRequirement.CapacityRequirement  -- association [0..1]
LEFT OUTER JOIN I_CapacityRequirementItem AS _CapacityRequirementItem ON CapacityRequirement = _CapacityRequirementItem.CapacityRequirement AND CapacityRequirementItem = _CapacityRequirementItem.CapacityRequirementItem  -- association [0..1]
LEFT OUTER JOIN I_ConfirmationGroup AS _OperationConfirmation ON OperationConfirmation = _OperationConfirmation.ConfirmationGroup  -- association [0..1]
LEFT OUTER JOIN I_ChangeMaster AS _ChangeNumber ON ChangeNumber = _ChangeNumber.ChangeNumber  -- association [0..1]
LEFT OUTER JOIN I_PurchaseContractAPI01 AS _PurchaseContract ON PurchaseOutlineAgreement = _PurchaseContract.PurchaseContract  -- association [0..1]
LEFT OUTER JOIN I_PurchaseContractItemAPI01 AS _PurchaseContractItem ON PurchaseOutlineAgreement = _PurchaseContractItem.PurchaseContract AND PurchaseOutlineAgreementItem = _PurchaseContractItem.PurchaseContractItem  -- association [0..1]
LEFT OUTER JOIN I_SchedgagrmthdrApi01 AS _SchedulingAgreement ON PurchaseOutlineAgreement = _SchedulingAgreement .SchedulingAgreement  -- association [0..1]
LEFT OUTER JOIN I_SchedgAgrmtItmApi01 AS _SchedulingAgreementItem ON PurchaseOutlineAgreement = _SchedulingAgreementItem.SchedulingAgreement AND PurchaseOutlineAgreementItem = _SchedulingAgreementItem.SchedulingAgreementItem  -- association [0..1]
LEFT OUTER JOIN I_Purchaserequisition AS _PurchaseRequisition ON PurchaseRequisition = _PurchaseRequisition.PurchaseRequisition  -- association [0..1]
LEFT OUTER JOIN I_PurchaseRequisitionItemAPI01 AS _PurchaseRequisitionItem ON PurchaseRequisition = _PurchaseRequisitionItem.PurchaseRequisition AND PurchaseRequisitionItem = _PurchaseRequisitionItem.PurchaseRequisitionItem  -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup  -- association [0..1]
LEFT OUTER JOIN I_PurchasingInfoRecordApi01 AS _PurchasingInfoRecord ON PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_StatusObject AS _StatusObject ON ObjectInternalID = _StatusObject.StatusObject  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ControllingArea = _ProfitCenter.ControllingArea AND ProfitCenter = _ProfitCenter.ProfitCenter  -- association [0..*]
LEFT OUTER JOIN I_CostCenter AS _RequestingCostCenter ON ControllingArea = _RequestingCostCenter.ControllingArea AND RequestingCostCenter = _RequestingCostCenter.CostCenter  -- association [0..*]
LEFT OUTER JOIN I_CostElement AS _CostElement ON ControllingArea = _CostElement.ControllingArea AND CostElement = _CostElement.CostElement  -- association [0..1]
LEFT OUTER JOIN I_CostingVariant AS _CostingVariant ON CostingVariant = _CostingVariant.CostingVariant  -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_ControllingObjectClass AS _ControllingObjectClass ON ControllingObjectClass = _ControllingObjectClass.ControllingObjectClass  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _ControllingObjectCurrency ON ControllingObjectCurrency = _ControllingObjectCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _OpExternalProcessingCurrency ON OpExternalProcessingCurrency = _OpExternalProcessingCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_FunctionalArea AS _FunctionalArea ON FunctionalArea = _FunctionalArea.FunctionalArea  -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea  -- association [0..1]
LEFT OUTER JOIN I_BusinessProcess AS _BusinessProcess ON ControllingArea = _BusinessProcess.ControllingArea AND BusinessProcess = _BusinessProcess.BusinessProcess  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BusinessProcessEntryUnit ON BusinessProcessEntryUnit = _BusinessProcessEntryUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _ConfirmedWorkQuantityUnit1 ON WorkQuantityUnit1 = _ConfirmedWorkQuantityUnit1.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _ConfirmedWorkQuantityUnit2 ON WorkQuantityUnit2 = _ConfirmedWorkQuantityUnit2.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _ConfirmedWorkQuantityUnit3 ON WorkQuantityUnit3 = _ConfirmedWorkQuantityUnit3.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _ConfirmedWorkQuantityUnit4 ON WorkQuantityUnit4 = _ConfirmedWorkQuantityUnit4.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _ConfirmedWorkQuantityUnit5 ON WorkQuantityUnit5 = _ConfirmedWorkQuantityUnit5.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _ConfirmedWorkQuantityUnit6 ON WorkQuantityUnit6 = _ConfirmedWorkQuantityUnit6.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _StdWorkQuantityUnit1 ON WorkCenterStandardWorkQtyUnit1 = _StdWorkQuantityUnit1.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _StdWorkQuantityUnit2 ON WorkCenterStandardWorkQtyUnit2 = _StdWorkQuantityUnit2.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _StdWorkQuantityUnit3 ON WorkCenterStandardWorkQtyUnit3 = _StdWorkQuantityUnit3.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _StdWorkQuantityUnit4 ON WorkCenterStandardWorkQtyUnit4 = _StdWorkQuantityUnit4.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _StdWorkQuantityUnit5 ON WorkCenterStandardWorkQtyUnit5 = _StdWorkQuantityUnit5.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _StdWorkQuantityUnit6 ON WorkCenterStandardWorkQtyUnit6 = _StdWorkQuantityUnit6.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_OperationSetupGroupCategory AS _OperationSetupGroupCategory ON Plant = _OperationSetupGroupCategory.Plant AND OperationSetupGroupCategory = _OperationSetupGroupCategory.OperationSetupGroupCategory  -- association [0..1]
LEFT OUTER JOIN I_OperationSetupGroup AS _OperationSetupGroup ON OperationSetupGroup = _OperationSetupGroup.OperationSetupGroup AND OperationSetupGroupCategory = _OperationSetupGroup.OperationSetupGroupCategory AND Plant = _OperationSetupGroup.Plant  -- association [0..1]
LEFT OUTER JOIN I_OperationSetupType AS _OperationSetupType ON OperationSetupType = _OperationSetupType.OperationSetupType AND Plant = _OperationSetupType.Plant  -- association [0..1]
LEFT OUTER JOIN I_LeadTimeReductionStrategy AS _LeadTimeReductionStrategy ON LeadTimeReductionStrategy = _LeadTimeReductionStrategy.LeadTimeReductionStrategy AND Plant = _LeadTimeReductionStrategy.Plant  -- association [0..1]
LEFT OUTER JOIN I_OperationDateOffsetRefCode AS _StartDateOffsetReferenceCode ON StartDateOffsetReferenceCode = _StartDateOffsetReferenceCode.OperationDateOffsetRefCode  -- association [0..1]
LEFT OUTER JOIN I_OperationDateOffsetRefCode AS _EndDateOffsetReferenceCode ON EndDateOffsetReferenceCode = _EndDateOffsetReferenceCode.OperationDateOffsetRefCode  -- association [0..1]
LEFT OUTER JOIN I_StandardWorkFmlaParamGroup AS _StandardWorkFmlaParamGroup ON StandardWorkFormulaParamGroup = _StandardWorkFmlaParamGroup.StandardWorkFormulaParamGroup  -- association [0..1]
LEFT OUTER JOIN I_Language AS _LongTextLanguage ON LongTextLanguage = _LongTextLanguage.Language  -- association [0..1]
LEFT OUTER JOIN E_OrderOperation AS _Extension ON OrderInternalID = _Extension.OrderInternalID AND OrderOperationInternalID = _Extension.OrderOperationInternalID  -- association [1..1]
LEFT OUTER JOIN I_ProductionOrder AS _ProductionOrderHeader ON ProductionOrder = _ProductionOrderHeader.ProductionOrder  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _PlantText ON Plant = _PlantText.Plant  -- association [1..1]
LEFT OUTER JOIN I_ProductionOrder AS _ProductionOrderText ON ProductionOrder = _ProductionOrderText.ProductionOrder  -- association [1..1]
LEFT OUTER JOIN I_WorkCenterText AS _WorkCenterText ON WorkCenterInternalID = _WorkCenterText.WorkCenterInternalID AND WorkCenterType = _WorkCenterText.WorkCenterTypeCode  -- association [0..*]
LEFT OUTER JOIN I_Supplier AS _SupplierText ON Supplier = _SupplierText.Supplier  -- association [0..1]
LEFT OUTER JOIN I_StatusObject AS _StatusObjectText ON ObjectInternalID = _StatusObjectText.StatusObject  -- association [1..1]
LEFT OUTER JOIN I_BusinessAreaText AS _BusinessAreaText ON BusinessArea = _BusinessAreaText.BusinessArea  -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCodeText ON CompanyCode = _CompanyCodeText.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingAreaText ON ControllingArea = _ControllingAreaText.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_FunctionalAreaText AS _FunctionalAreaText ON FunctionalArea = _FunctionalAreaText.FunctionalArea  -- association [0..*]
LEFT OUTER JOIN I_ProductionOrderComponent AS _ProductionOrderComponent ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN I_ProductionOrderTriggerPoint AS _ProductionOrderTriggerPoint ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN I_ProductionOrderPRT AS _ProductionOrderPRT ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN I_ProdnOrderOperationCapacity AS _ProdnOrderOperationCapacity ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN I_ProdnOrderOperationLongText AS _LongText ON /* condition not available in parsed metadata */  -- association [0..*]
;