I_MfgOrderOpComponentDataList

DDL: I_MFGORDEROPCOMPONENTDATALIST SQL: IPPMOROPCOMPDATA Type: view COMPOSITE Package: PP_MAN_OM_MOR

Mfg Order Component (Data List)

I_MfgOrderOpComponentDataList is a Composite CDS View that provides data about "Mfg Order Component (Data List)" in SAP S/4HANA. It reads from 1 data source (I_MfgOrderOperationComponent) and exposes 27 fields with key fields Reservation, ReservationItem, RecordType. It has 3 associations to related views. Part of development package PP_MAN_OM_MOR.

Data Sources (1)

SourceAliasJoin Type
I_MfgOrderOperationComponent MfgOrderOperationComponent from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_Product _Product $projection.Material = _Product.Product
[1..1] I_MfgOrderOperationComponent _MfgOrderOperationComponent $projection.Reservation = _MfgOrderOperationComponent.Reservation and $projection.ReservationItem = _MfgOrderOperationComponent.ReservationItem and $projection.RecordType = _MfgOrderOperationComponent.RecordType
[1..1] E_ReservationDocumentItem _Extension $projection.Reservation = _Extension.Reservation and $projection.ReservationItem = _Extension.ReservationItem and $projection.RecordType = _Extension.RecordType

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IPPMOROPCOMPDATA view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Mfg Order Component (Data List) view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY Reservation I_MfgOrderOperationComponent Reservation
KEY ReservationItem I_MfgOrderOperationComponent ReservationItem
KEY RecordType I_MfgOrderOperationComponent RecordType
ManufacturingOrder I_MfgOrderOperationComponent ManufacturingOrder
ManufacturingOrderSequence I_MfgOrderOperationComponent ManufacturingOrderSequence
ManufacturingOrderOperation I_MfgOrderOperationComponent ManufacturingOrderOperation
OrderInternalBillOfOperations I_MfgOrderOperationComponent OrderInternalBillOfOperations
OrderIntBillOfOperationsItem I_MfgOrderOperationComponent OrderIntBillOfOperationsItem
BOMItemCategory I_MfgOrderOperationComponent BOMItemCategory
BillOfMaterialItemNumber I_MfgOrderOperationComponent BillOfMaterialItemNumber
LongTextLanguageCode I_MfgOrderOperationComponent LongTextLanguageCode
MatlCompRequirementDate I_MfgOrderOperationComponent MatlCompRequirementDate
Material I_MfgOrderOperationComponent Material
BOMItemDescription I_MfgOrderOperationComponent BOMItemDescription
Batch I_MfgOrderOperationComponent Batch
StorageLocation I_MfgOrderOperationComponent StorageLocation
RequiredQuantity I_MfgOrderOperationComponent RequiredQuantity
BaseUnit I_MfgOrderOperationComponent BaseUnit
GoodsMovementEntryQty I_MfgOrderOperationComponent GoodsMovementEntryQty
EntryUnit I_MfgOrderOperationComponent EntryUnit
DebitCreditCode I_MfgOrderOperationComponent DebitCreditCode
MaterialComponentSortText I_MfgOrderOperationComponent MaterialComponentSortText
MaterialComponentIsPhantomItem I_MfgOrderOperationComponent MaterialComponentIsPhantomItem
BatchSplitType I_MfgOrderOperationComponent BatchSplitType
_BaseUnit _BaseUnit
_MfgOrderOperationComponent _MfgOrderOperationComponent
_Product _Product
@AbapCatalog.sqlViewName: 'IPPMOROPCOMPDATA'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@EndUserText.label: 'Mfg Order Component (Data List)'
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #L, dataClass: #TRANSACTIONAL}
@VDM.viewType: #COMPOSITE

define view I_MfgOrderOpComponentDataList
  as select from I_MfgOrderOperationComponent as MfgOrderOperationComponent

  association [1..1] to I_Product                    as _Product                    on  $projection.Material = _Product.Product
  association [1..1] to I_MfgOrderOperationComponent as _MfgOrderOperationComponent on  $projection.Reservation     = _MfgOrderOperationComponent.Reservation
                                                                                    and $projection.ReservationItem = _MfgOrderOperationComponent.ReservationItem
                                                                                    and $projection.RecordType      = _MfgOrderOperationComponent.RecordType
  association [1..1] to E_ReservationDocumentItem    as _Extension                  on  $projection.Reservation     = _Extension.Reservation // Extensibility

                                                                                    and $projection.ReservationItem = _Extension.ReservationItem
                                                                                    and $projection.RecordType      = _Extension.RecordType

{

      // key

      @ObjectModel.foreignKey.association: null
  key MfgOrderOperationComponent.Reservation                                  as Reservation,
  key MfgOrderOperationComponent.ReservationItem                              as ReservationItem,
      @ObjectModel.foreignKey.association: null
  key MfgOrderOperationComponent.RecordType                                   as RecordType,

      // external keys

      @ObjectModel.foreignKey.association: null
      MfgOrderOperationComponent.ManufacturingOrder                           as ManufacturingOrder,
      @ObjectModel.foreignKey.association: null
      MfgOrderOperationComponent.ManufacturingOrderSequence                   as ManufacturingOrderSequence,
      @ObjectModel.foreignKey.association: null
      MfgOrderOperationComponent.ManufacturingOrderOperation                  as ManufacturingOrderOperation,

      // operation internal key

      @ObjectModel.foreignKey.association: null
      MfgOrderOperationComponent.OrderInternalBillOfOperations                as OrderInternalBillOfOperations,
      @ObjectModel.foreignKey.association: null
      MfgOrderOperationComponent.OrderIntBillOfOperationsItem                 as OrderIntBillOfOperationsItem,

      // position

      MfgOrderOperationComponent.BOMItemCategory                              as BOMItemCategory,
      MfgOrderOperationComponent.BillOfMaterialItemNumber                     as BillOfMaterialItemNumber,

      @ObjectModel.foreignKey.association: null
      MfgOrderOperationComponent.LongTextLanguageCode                         as LongTextLanguageCode,

      // Date

      MfgOrderOperationComponent.MatlCompRequirementDate                      as MatlCompRequirementDate,

      // Material

      @ObjectModel.foreignKey.association: null
      MfgOrderOperationComponent.Material                                     as Material,

      MfgOrderOperationComponent.BOMItemDescription                           as BOMItemDescription,

      MfgOrderOperationComponent.Batch                                        as Batch,
      @ObjectModel.foreignKey.association: null
      MfgOrderOperationComponent.StorageLocation                              as StorageLocation,

      // Quantities

      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      MfgOrderOperationComponent.RequiredQuantity                             as RequiredQuantity,
      @Semantics.unitOfMeasure: true
      MfgOrderOperationComponent.BaseUnit                                     as BaseUnit,
      @Semantics.quantity.unitOfMeasure: 'EntryUnit'
      MfgOrderOperationComponent.GoodsMovementEntryQty                        as GoodsMovementEntryQty,
      @Semantics.unitOfMeasure: true
      MfgOrderOperationComponent.EntryUnit                                    as EntryUnit,
      @ObjectModel.foreignKey.association: null
      MfgOrderOperationComponent.DebitCreditCode                              as DebitCreditCode,

      // Other

      MfgOrderOperationComponent.MaterialComponentSortText                    as MaterialComponentSortText,
      MfgOrderOperationComponent.MaterialComponentIsPhantomItem               as MaterialComponentIsPhantomItem,
      @ObjectModel.foreignKey.association: null
      MfgOrderOperationComponent.BatchSplitType                               as BatchSplitType,

      // Flag if component is pickable

      cast( case when GoodsMovementIsAllowed         =  'X'
                  and MatlCompIsMarkedForDeletion    =  ' '
                  and MatlCompIsMarkedForBackflush   =  ' '
                  and ReservationIsFinallyIssued     =  ' '
                  and MaterialIsDirectlyProduced     =  ' '
                  and MaterialIsDirectlyProcured     =  ' '
                  and MaterialComponentIsPhantomItem =  ' '
                  and IsBulkMaterialComponent        =  ' '
                  and DebitCreditCode                <> 'S'
                  and BatchSplitType                 <> '1'
                  and RequirementType                <> 'BB'
                  and RequiredQuantity               >  WithdrawnQuantity
        then 'X' else ' ' end as pp_man_om_comp_is_pickable preserving type ) as MfgOrderComponentIsPickable,


      _BaseUnit,
      _MfgOrderOperationComponent,
      _Product
}

where
  MfgOrderOperationComponent.MatlCompIsMarkedForDeletion = ' '