C_MfgOrderObjPgComp

DDL: C_MFGORDEROBJPGCOMP Type: view_entity CONSUMPTION Package: PP_MFGORDER_UI

Manufacturing Order Object Page Com

C_MfgOrderObjPgComp is a Consumption CDS View that provides data about "Manufacturing Order Object Page Com" in SAP S/4HANA. It reads from 1 data source (I_MfgOrderOperationComponent) and exposes 33 fields with key fields Reservation, ReservationItem, RecordType. It has 1 association to related views. Part of development package PP_MFGORDER_UI.

Data Sources (1)

SourceAliasJoin Type
I_MfgOrderOperationComponent comp from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_MfgOrderOperationBySemanKey _MfgOrderOperationBySemanKey $projection.ManufacturingOrder = _MfgOrderOperationBySemanKey.ManufacturingOrder and $projection.ManufacturingOrderSequence = _MfgOrderOperationBySemanKey.ManufacturingOrderSequence and $projection.ManufacturingOrderOperation = _MfgOrderOperationBySemanKey.ManufacturingOrderOperation

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Manufacturing Order Object Page Com view
VDM.viewType #CONSUMPTION view
ObjectModel.representativeKey ReservationItem view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.allowExtensions true view
UI.headerInfo.typeName Component view
UI.headerInfo.typeNamePlural Components view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY Reservation I_MfgOrderOperationComponent Reservation
KEY ReservationItem I_MfgOrderOperationComponent ReservationItem
KEY RecordType I_MfgOrderOperationComponent RecordType
BillOfMaterialItemNumber I_MfgOrderOperationComponent BillOfMaterialItemNumber
BOMItemDescription I_MfgOrderOperationComponent BOMItemDescription BOM Item Text
Material I_MfgOrderOperationComponent Material
MaterialName
Plant I_MfgOrderOperationComponent Plant
ProductionPlant I_MfgOrderOperationComponent ProductionPlant
MatlCompRequirementDate I_MfgOrderOperationComponent MatlCompRequirementDate
BaseUnit I_MfgOrderOperationComponent BaseUnit Unit
RequiredQuantity I_MfgOrderOperationComponent RequiredQuantity
WithdrawnQuantity I_MfgOrderOperationComponent WithdrawnQuantity
BOMItem I_MfgOrderOperationComponent BOMItem
StorageLocation
SupplyArea I_MfgOrderOperationComponent SupplyArea
ManufacturingOrderSequence I_MfgOrderOperationComponent ManufacturingOrderSequence
ManufacturingOrder I_MfgOrderOperationComponent ManufacturingOrder Production Order
ManufacturingOrderOperation I_MfgOrderOperationComponent ManufacturingOrderOperation
ManufacturingOrderCategory I_MfgOrderOperationComponent ManufacturingOrderCategory
ManufacturingOrderType I_MfgOrderOperationComponent ManufacturingOrderType
OrderInternalBillOfOperations I_MfgOrderOperationComponent OrderInternalBillOfOperations
_OrdInternalBillOfOperations I_MfgOrderOperationComponent _OrdInternalBillOfOperations
_Material I_MfgOrderOperationComponent _Material
_MfgOrderSequence I_MfgOrderOperationComponent _MfgOrderSequence
_MfgOrder I_MfgOrderOperationComponent _MfgOrder
_MfgOrderOperationBySemanKey I_MfgOrderOperationComponent _MfgOrderOperationBySemanKey
_StorageLocation I_MfgOrderOperationComponent _StorageLocation
_SupplyArea I_MfgOrderOperationComponent _SupplyArea
_Plant I_MfgOrderOperationComponent _Plant
_MfgOrderType I_MfgOrderOperationComponent _MfgOrderType
_Reservation I_MfgOrderOperationComponent _Reservation
_MfgOrderCategory I_MfgOrderOperationComponent _MfgOrderCategory
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Manufacturing Order Object Page Com'
@VDM.viewType: #CONSUMPTION
@ObjectModel.representativeKey: 'ReservationItem'
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@Metadata.allowExtensions: true
@UI.headerInfo.typeName: 'Component'
@UI.headerInfo.typeNamePlural: 'Components'

define view entity C_MfgOrderObjPgComp
  as select from I_MfgOrderOperationComponent as comp

  association [1..1] to I_MfgOrderOperationBySemanKey as _MfgOrderOperationBySemanKey on  $projection.ManufacturingOrder          = _MfgOrderOperationBySemanKey.ManufacturingOrder
                                                                                      and $projection.ManufacturingOrderSequence  = _MfgOrderOperationBySemanKey.ManufacturingOrderSequence
                                                                                      and $projection.ManufacturingOrderOperation = _MfgOrderOperationBySemanKey.ManufacturingOrderOperation

{
       @ObjectModel.foreignKey.association: '_Reservation'
  key  comp.Reservation,
       @UI.hidden: true
  key  comp.ReservationItem,
       @UI.hidden: true
  key  comp.RecordType,
       @UI.lineItem:[{position:10}]
       comp.BillOfMaterialItemNumber,
       @UI.lineItem: [{position: 20}]
       @EndUserText.label: 'BOM Item Text'
       @Semantics.text: true
       comp.BOMItemDescription,      // BOMItemDescription,

       @Consumption.semanticObject: 'Material'
       @UI.lineItem:[{position: 30}]
       @Consumption.valueHelpDefinition: [ { entity: { name: 'I_MaterialStdVH', element: 'Material' } } ]
       @UI.identification:[{type: #WITH_INTENT_BASED_NAVIGATION,semanticObjectAction: 'display' }]
    
       comp.Material,                // Material,

       @UI.lineItem: [{position:35}]
       cast(comp._Material._Text[1:Language=$session.system_language].MaterialName as maktx) as MaterialName,  //MaterialDescription

       @UI.lineItem: [{position:40}]
       @ObjectModel.foreignKey.association: '_Plant'
       @Consumption.valueHelpDefinition: [{ entity: { name: 'I_PlantVH', element: 'Plant' } }]
       comp.Plant,                   // IssuingPlant,

       @UI.hidden: true
       comp.ProductionPlant,
       @UI.lineItem: [{position:50}]
       comp.MatlCompRequirementDate, // RequirementsDate,

       @EndUserText.label: 'Unit'
       @Consumption.valueHelpDefinition: [ { entity: { name: 'I_UnitOfMeasureStdVH', element: 'UnitOfMeasure' } } ]
       comp.BaseUnit,                // BaseUOM,

       @Semantics.quantity.unitOfMeasure: 'BaseUnit'
       @UI.lineItem: [{position: 60}]
       comp.RequiredQuantity,        // RequiredQuantity,

       comp.WithdrawnQuantity,       // Issued Quantity

       @UI.hidden: true
       comp.BOMItem,                 // BOMItem,

       @ObjectModel.foreignKey.association: '_StorageLocation'
       @Consumption.valueHelpDefinition: [ { entity:  { name:    'I_ProductionStorageLocationVH', element: 'StorageLocation' } } ]      
       cast(comp.StorageLocation as pph_lgort preserving type ) as StorageLocation, // IssuingStorageLocation,

       @Consumption.valueHelpDefinition: [ { entity:  { name:    'I_ProductionSupplyAreaVH', element: 'ProductionSupplyArea' } } ]
       comp.SupplyArea, // ProductionSupplyArea

       @UI.hidden: true
       @ObjectModel.foreignKey.association: '_MfgOrderSequence'
       @Consumption.valueHelpDefinition: [ { entity: { name: 'I_MfgOrderSequenceStdVH', element: 'ManufacturingOrderSequence' } } ]
       comp.ManufacturingOrderSequence,
       @UI.hidden: true
       @ObjectModel.foreignKey.association: '_MfgOrder'
       @Consumption.valueHelpDefinition: [ { entity: { name: 'I_MfgOrderStdVH', element: 'ManufacturingOrder' } } ]
       @EndUserText.label: 'Production Order'
       comp.ManufacturingOrder, //ProductionOrder,

       //@Consumption.semanticObject: 'Operation'  // Semantic Object still to be created

       @ObjectModel.foreignKey.association: '_MfgOrderOperationBySemanKey'
       @Consumption.valueHelpDefinition: [ { entity: { name: 'I_MfgOrderOperationVH', element: 'ManufacturingOrderOperation' } } ]
       //@UI.lineItem:{type: #WITH_INTENT_BASED_NAVIGATION,semanticObjectAction: 'display' }

       comp.ManufacturingOrderOperation, // AssignedOperation,

       @ObjectModel.foreignKey.association: '_MfgOrderCategory'
       @UI.hidden: true
       comp.ManufacturingOrderCategory,
       @ObjectModel.foreignKey.association: '_MfgOrderType'
       @Consumption.valueHelpDefinition: [ { entity: { name: 'I_OrderTypeVH', element: 'OrderType' } } ]
       comp.ManufacturingOrderType,
       @UI.hidden: true
       comp.OrderInternalBillOfOperations, //AssignedOperation

       //Associations      

       comp._OrdInternalBillOfOperations,
       comp._Material,
       comp._MfgOrderSequence,
       comp._MfgOrder,
       comp._MfgOrderOperationBySemanKey,
       comp._StorageLocation,
       comp._SupplyArea,
       comp._Plant,
       comp._MfgOrderType,
       comp._Reservation,
       comp._MfgOrderCategory
};