I_MfgOrderSplitChildOrder

DDL: I_MFGORDERSPLITCHILDORDER SQL: IMFGORDERSPLIT Type: view BASIC

Child Order of Manufacturing Order Split

I_MfgOrderSplitChildOrder is a Basic CDS View that provides data about "Child Order of Manufacturing Order Split" in SAP S/4HANA. It reads from 3 data sources (above, I_LogisticsOrderBasic, afsprel) and exposes 25 fields with key fields MfgOrderSplitChildOrder, MfgOrderSplitByProduct. It has 11 associations to related views.

Data Sources (3)

SourceAliasJoin Type
above above inner
I_LogisticsOrderBasic afko inner
afsprel afsprel from

Associations (11)

CardinalityTargetAliasCondition
[1..1] I_ManufacturingOrder _ChildOrder $projection.MfgOrderSplitChildOrder = _ChildOrder.ManufacturingOrder
[1..1] I_ManufacturingOrder _ParentOrder $projection.MfgOrderSplitParentOrder = _ParentOrder.ManufacturingOrder
[1..1] I_ManufacturingOrder _LeadingOrder $projection.MfgOrderSplitLeadingOrder = _LeadingOrder.ManufacturingOrder
[1..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[1..1] I_CalendarDate _CreationDate $projection.CreationDate = _CreationDate.CalendarDate
[0..1] I_Product _ByProduct $projection.MfgOrderSplitByProduct = _ByProduct.Product
[0..*] I_Batch _ByProductBatch $projection.MfgOrderSplitByProduct = _ByProductBatch.Material and $projection.MfgOrderSplitByProductBatch = _ByProductBatch.Batch
[0..1] I_MaterialDocumentYear _MaterialDocumentYear $projection.ByProductMaterialDocumentYear = _MaterialDocumentYear.MaterialDocumentYear
[0..1] I_MaterialDocumentHeader_2 _MaterialDocumentHeader $projection.ByProductMaterialDocumentYear = _MaterialDocumentHeader.MaterialDocumentYear and $projection.ByProductMaterialDocument = _MaterialDocumentHeader.MaterialDocument
[0..1] I_MaterialDocumentItem_2 _MaterialDocumentItem $projection.ByProductMaterialDocumentYear = _MaterialDocumentItem.MaterialDocumentYear and $projection.ByProductMaterialDocument = _MaterialDocumentItem.MaterialDocument and $projection.ByProductMaterialDocumentItem = _MaterialDocumentItem.MaterialDocumentItem
[1..1] I_UnitOfMeasure _OperationUnit $projection.OperationUnit = _OperationUnit.UnitOfMeasure

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IMFGORDERSPLIT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
EndUserText.label Child Order of Manufacturing Order Split view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY MfgOrderSplitChildOrder afsprel c_aufnr Child Order
KEY MfgOrderSplitByProduct afsprel byproduct By-Product
MfgOrderSplitUUID afsprel order_split_uuid Order Split UUID
MfgOrderSplitChildOrderIntID afsprel splcnt Child Order Counter
MfgOrderSplitParentOrder afsprel p_aufnr ParentOrder
MfgOrderSplitLeadingOrder afsprel l_aufnr Leading Order
ByProductMaterialDocument afsprel byprod_mat_doc GR Document
ByProductMaterialDocumentItem afsprel byprod_mat_item Document Item
ByProductMaterialDocumentYear afsprel byprod_mat_year Document Year
CreationDate
CreationTime afsprel stime Time
CreatedByUser afsprel suser User Name
OperationUnit
MfgOrderSplitQuantity afsprel splq Split Quantity
_ChildOrder _ChildOrder
_LeadingOrder _LeadingOrder
_ParentOrder _ParentOrder
_ByProduct _ByProduct
_ByProductBatch _ByProductBatch
_MaterialDocumentYear _MaterialDocumentYear
_MaterialDocumentHeader _MaterialDocumentHeader
_MaterialDocumentItem _MaterialDocumentItem
_CreationDate _CreationDate
_CreatedByUser _CreatedByUser
_OperationUnit _OperationUnit

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_MfgOrderSplitChildOrder.
-- 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: IMFGORDERSPLIT

CREATE VIEW I_MfgOrderSplitChildOrder AS
SELECT
  afsprel.c_aufnr AS MfgOrderSplitChildOrder,
  afsprel.byproduct AS MfgOrderSplitByProduct,
  afsprel.order_split_uuid AS MfgOrderSplitUUID,
  afsprel.splcnt AS MfgOrderSplitChildOrderIntID,
  afsprel.p_aufnr AS MfgOrderSplitParentOrder,
  afsprel.l_aufnr AS MfgOrderSplitLeadingOrder,
  afsprel.byprod_mat_doc AS ByProductMaterialDocument,
  afsprel.byprod_mat_item AS ByProductMaterialDocumentItem,
  afsprel.byprod_mat_year AS ByProductMaterialDocumentYear,
  cast(afsprel.sdate as erdat preserving type) AS CreationDate,
  afsprel.stime AS CreationTime,
  afsprel.suser AS CreatedByUser,
  cast(afsprel.qunit as operationunit preserving type) AS OperationUnit,
  afsprel.splq AS MfgOrderSplitQuantity
FROM afsprel
INNER JOIN I_LogisticsOrderBasic AS afko ON /* join condition not captured in parsed metadata */
INNER JOIN above ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ManufacturingOrder AS _ChildOrder ON MfgOrderSplitChildOrder = _ChildOrder.ManufacturingOrder  -- association [1..1]
LEFT OUTER JOIN I_ManufacturingOrder AS _ParentOrder ON MfgOrderSplitParentOrder = _ParentOrder.ManufacturingOrder  -- association [1..1]
LEFT OUTER JOIN I_ManufacturingOrder AS _LeadingOrder ON MfgOrderSplitLeadingOrder = _LeadingOrder.ManufacturingOrder  -- association [1..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [1..1]
LEFT OUTER JOIN I_CalendarDate AS _CreationDate ON CreationDate = _CreationDate.CalendarDate  -- association [1..1]
LEFT OUTER JOIN I_Product AS _ByProduct ON MfgOrderSplitByProduct = _ByProduct.Product  -- association [0..1]
LEFT OUTER JOIN I_Batch AS _ByProductBatch ON MfgOrderSplitByProduct = _ByProductBatch.Material AND MfgOrderSplitByProductBatch = _ByProductBatch.Batch  -- association [0..*]
LEFT OUTER JOIN I_MaterialDocumentYear AS _MaterialDocumentYear ON ByProductMaterialDocumentYear = _MaterialDocumentYear.MaterialDocumentYear  -- association [0..1]
LEFT OUTER JOIN I_MaterialDocumentHeader_2 AS _MaterialDocumentHeader ON ByProductMaterialDocumentYear = _MaterialDocumentHeader.MaterialDocumentYear AND ByProductMaterialDocument = _MaterialDocumentHeader.MaterialDocument  -- association [0..1]
LEFT OUTER JOIN I_MaterialDocumentItem_2 AS _MaterialDocumentItem ON ByProductMaterialDocumentYear = _MaterialDocumentItem.MaterialDocumentYear AND ByProductMaterialDocument = _MaterialDocumentItem.MaterialDocument AND ByProductMaterialDocumentItem = _MaterialDocumentItem.MaterialDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _OperationUnit ON OperationUnit = _OperationUnit.UnitOfMeasure  -- association [1..1]
;