P_MfgOrderItem

DDL: P_MFGORDERITEM SQL: PPPMFGORDITEM Type: view BASIC

P_MfgOrderItem is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (afko, afpo) and exposes 16 fields with key fields ManufacturingOrder, ManufacturingOrderItem.

Data Sources (2)

SourceAliasJoin Type
afko afko inner
afpo afpo from

Annotations (10)

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

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY ManufacturingOrder afpo aufnr SettlementOrder
KEY ManufacturingOrderItem afpo posnr WBS Element
ManufacturingOrderCategory afpo dauty Order category
ManufacturingOrderType afpo dauat Order Type
ProductionPlant afpo dwerk Plant
FactoryCalendar _ProductionPlant FactoryCalendar Factory Calendar
MRPPlant afpo pwerk Planning Plant
MfgOrderPlannedStartDate afko gstrp Bas. Start Date
MfgOrderScheduledStartDate afko gstrs Sched. start
MfgOrderActualStartDate afko gstri Actual start
MfgOrderItemPlannedEndDate afpo dgltp Basic fin. date
MfgOrderItemScheduledEndDate afpo dglts Sched. finish
MfgOrderItemPlndDeliveryDate afpo ltrmp Planned Delivery
MfgOrderItemActualDeliveryDate afpo ltrmi Delivery Date
MaterialGoodsReceiptDuration afpo webaz GR Proc. Time
_ProductionPlant _ProductionPlant

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_MfgOrderItem.
-- 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: PPPMFGORDITEM

CREATE VIEW P_MfgOrderItem AS
SELECT
  afpo.aufnr AS ManufacturingOrder,
  afpo.posnr AS ManufacturingOrderItem,
  afpo.dauty AS ManufacturingOrderCategory,
  afpo.dauat AS ManufacturingOrderType,
  afpo.dwerk AS ProductionPlant,
  _ProductionPlant.FactoryCalendar AS FactoryCalendar,
  afpo.pwerk AS MRPPlant,
  afko.gstrp AS MfgOrderPlannedStartDate,
  afko.gstrs AS MfgOrderScheduledStartDate,
  afko.gstri AS MfgOrderActualStartDate,
  afpo.dgltp AS MfgOrderItemPlannedEndDate,
  afpo.dglts AS MfgOrderItemScheduledEndDate,
  afpo.ltrmp AS MfgOrderItemPlndDeliveryDate,
  afpo.ltrmi AS MfgOrderItemActualDeliveryDate,
  afpo.webaz AS MaterialGoodsReceiptDuration
FROM afpo
INNER JOIN afko ON /* join condition not captured in parsed metadata */
;