I_MfgOrderItemSerialNumber

DDL: I_MFGORDERITEMSERIALNUMBER SQL: IPPMFGORDITMSERN Type: view COMPOSITE

Manufacturing Order Item Serial Number

I_MfgOrderItemSerialNumber (Composite)

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

Manufacturing

I_MfgOrderItemSerialNumber is a Composite CDS View (Dimension) that provides data about "Manufacturing Order Item Serial Number" in SAP S/4HANA. It reads from 2 data sources (I_ManufacturingOrderItem, I_MaintenanceItemObject) and exposes 26 fields with key fields ManufacturingOrder, ManufacturingOrderItem. It has 3 associations to related views.

SAP Help Documentation

CategoryCDS Views for Discrete and Process Manufacturing
Purpose
With this CDS view you can retrieve serial numbers for manufacturing order items. This CDS view provides the prerequisites for answering the following business question: Which serial numbers are assigned to a manufacturing order item?

Prerequisites
You have authorizations to display the following: Orders by order category ( C_AFKO_ATY ) Orders by order category, order type, and plant ( C_AFKO_AWA ) Orders by order type and plant ( C_AFKO_AWK )

Structure
Main input parameters This CDS view does not have any input parameters. Measures and attributes The following main attributes are provided: Manufacturing order Manufacturing order item Serial number Product Production plant Planning plant MRP controller Production supervisor Serial number internal key Equipment Document date

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentPP-VDM
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities, Analytical Dimension
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>With this CDS view you can retrieve serial numbers for manufacturing order items.</p> <p>This CDS view provides the prerequisites for answering the following business question:</p> <ul> <li><p> Which serial numbers are assigned to a manufacturing order item?</p></li> </ul>

Documentation

Data Sources (2)

SourceAliasJoin Type
I_ManufacturingOrderItem item from
I_MaintenanceItemObject objk inner

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_ManufacturingOrderItem _MfgOrderItem $projection.ManufacturingOrder = _MfgOrderItem.ManufacturingOrder and $projection.ManufacturingOrderItem = _MfgOrderItem.ManufacturingOrderItem
[1..1] I_Equipment _Equipment $projection.Equipment = _Equipment.Equipment
[1..1] I_Equipment _Equipment_2 $projection.Equipment_2 = _Equipment_2.Equipment

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName IPPMFGORDITMSERN view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view
ObjectModel.representativeKey SerialNumber view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #COMPOSITE view
EndUserText.label Manufacturing Order Item Serial Number view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY ManufacturingOrder I_ManufacturingOrderItem ManufacturingOrder Manufacturing Order ID
KEY ManufacturingOrderItem I_ManufacturingOrderItem ManufacturingOrderItem Manufacturing Order Item ID
MaintenanceItemObjectList I_MaintenanceItemObject MaintenanceItemObjectList Object list number
MaintenanceItemObject I_MaintenanceItemObject MaintenanceItemObject Object list counters
Equipment I_MaintenanceItemObject Equipment Equipment check
Equipment_2 Equipment Number
Product I_ManufacturingOrderItem Product Product Number
ProductionPlant I_ManufacturingOrderItem ProductionPlant Production Plant
PlanningPlant I_ManufacturingOrderItem PlanningPlant Planning Plant for an Order
MRPController I_ManufacturingOrderItem MRPController MRP Controller
ProductionSupervisor I_ManufacturingOrderItem ProductionSupervisor Production Supervisor
ManufacturingOrderCategory I_ManufacturingOrderItem ManufacturingOrderCategory Manufacturing Order Category
ManufacturingOrderType I_ManufacturingOrderItem ManufacturingOrderType Manufacturing Order Type
DocumentDate sern SerialNumberAssignmentDate Date
_MfgOrder I_ManufacturingOrderItem _MfgOrder
_MfgOrderItem _MfgOrderItem
_MfgOrderCategory I_ManufacturingOrderItem _MfgOrderCategory
_MfgOrderType I_ManufacturingOrderItem _MfgOrderType
_Equipment _Equipment
_Equipment_2 _Equipment_2
_Product I_ManufacturingOrderItem _Product
_ProductionPlant I_ManufacturingOrderItem _ProductionPlant
_ProductionSupervisor I_ManufacturingOrderItem _ProductionSupervisor
_MRPController I_ManufacturingOrderItem _MRPController
_MRPPlant I_ManufacturingOrderItem _MRPPlant
_SerialNumberProfile I_ManufacturingOrderItem _SerialNumberProfile

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_MfgOrderItemSerialNumber.
-- 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: IPPMFGORDITMSERN

CREATE VIEW I_MfgOrderItemSerialNumber AS
SELECT
  item.ManufacturingOrder AS ManufacturingOrder,
  item.ManufacturingOrderItem AS ManufacturingOrderItem,
  objk.MaintenanceItemObjectList AS MaintenanceItemObjectList,
  objk.MaintenanceItemObject AS MaintenanceItemObject,
  objk.Equipment AS Equipment,
  cast(objk.Equipment as equnr preserving type) AS Equipment_2,
  item.Product AS Product,
  item.ProductionPlant AS ProductionPlant,
  item.PlanningPlant AS PlanningPlant,
  item.MRPController AS MRPController,
  item.ProductionSupervisor AS ProductionSupervisor,
  item.ManufacturingOrderCategory AS ManufacturingOrderCategory,
  item.ManufacturingOrderType AS ManufacturingOrderType,
  sern.SerialNumberAssignmentDate AS DocumentDate,
  item._MfgOrder AS _MfgOrder,
  item._MfgOrderCategory AS _MfgOrderCategory,
  item._MfgOrderType AS _MfgOrderType,
  item._Product AS _Product,
  item._ProductionPlant AS _ProductionPlant,
  item._ProductionSupervisor AS _ProductionSupervisor,
  item._MRPController AS _MRPController,
  item._MRPPlant AS _MRPPlant,
  item._SerialNumberProfile AS _SerialNumberProfile
FROM I_ManufacturingOrderItem AS item
INNER JOIN I_MaintenanceItemObject AS objk ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ManufacturingOrderItem AS _MfgOrderItem ON ManufacturingOrder = _MfgOrderItem.ManufacturingOrder AND ManufacturingOrderItem = _MfgOrderItem.ManufacturingOrderItem  -- association [1..1]
LEFT OUTER JOIN I_Equipment AS _Equipment ON Equipment = _Equipment.Equipment  -- association [1..1]
LEFT OUTER JOIN I_Equipment AS _Equipment_2 ON Equipment_2 = _Equipment_2.Equipment  -- association [1..1]
;