P_MfgOrdItmNmbrOfSerialNumbers

DDL: P_MFGORDITMNMBROFSERIALNUMBERS SQL: PMFGORDITMNMBRSN Type: view COMPOSITE

P_MfgOrdItmNmbrOfSerialNumbers is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_SerialNumberManufacturingOrd) and exposes 6 fields with key fields ManufacturingOrder, ManufacturingOrderItem.

Data Sources (1)

SourceAliasJoin Type
I_SerialNumberManufacturingOrd I_SerialNumberManufacturingOrd from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PMFGORDITMNMBRSN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY ManufacturingOrder ManufacturingOrder Order
KEY ManufacturingOrderItem ManufacturingOrderItem Manufacturing Order Item
NumberOfSerialNumbers
SerialNumber
_ManufacturingOrder _ManufacturingOrder
_ManufacturingOrderItem _ManufacturingOrderItem

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_MfgOrdItmNmbrOfSerialNumbers.
-- 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: PMFGORDITMNMBRSN

CREATE VIEW P_MfgOrdItmNmbrOfSerialNumbers AS
SELECT
  ManufacturingOrder,
  ManufacturingOrderItem,
  count(*) AS NumberOfSerialNumbers,
  cast (min( SerialNumber ) as gernr preserving type ) AS SerialNumber
FROM I_SerialNumberManufacturingOrd
;