R_ProcessOrderComponentTP

DDL: R_PROCESSORDERCOMPONENTTP Type: view_entity TRANSACTIONAL

Process Order Component - TP

R_ProcessOrderComponentTP is a Transactional CDS View that provides data about "Process Order Component - TP" in SAP S/4HANA. It reads from 2 data sources (I_ManufacturingOrderComponent, I_OrderOperationBasic) and exposes 120 fields with key fields Reservation, ReservationItem, ReservationRecordType. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_ManufacturingOrderComponent Component from
I_OrderOperationBasic Operation inner

Associations (3)

CardinalityTargetAliasCondition
[0..1] R_ProcessOrderPhaseTP _Phase _Phase.ProcessOrder = $projection.ProcessOrder and _Phase.OrderPhaseInternalID = $projection.OrderPhaseInternalID
[0..1] R_ProcessOrderOperationTP _Operation _Operation.ProcessOrder = $projection.ProcessOrder and _Operation.OrderOperationInternalID = $projection.OrderOperationInternalID
[1..1] E_ProcessOrderComponent _Extension $projection.Reservation = _Extension.Reservation and $projection.ReservationItem = _Extension.ReservationItem and $projection.ReservationRecordType = _Extension.ReservationRecordType

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #TRANSACTIONAL view
EndUserText.label Process Order Component - TP view

Fields (120)

KeyFieldSource TableSource FieldDescription
KEY Reservation I_ManufacturingOrderComponent Reservation
KEY ReservationItem I_ManufacturingOrderComponent ReservationItem
KEY ReservationRecordType I_ManufacturingOrderComponent ReservationRecordType
MaterialGroup
Material
Plant I_ManufacturingOrderComponent Plant
ProcessOrder
ProcessOrderPhase
ProcessOrderOperation
OrderInternalID I_ManufacturingOrderComponent OrderInternalID
OrderPhaseInternalID
OrderOperationInternalID
MatlCompRequirementDate I_ManufacturingOrderComponent MatlCompRequirementDate
MatlCompRequirementTime I_ManufacturingOrderComponent MatlCompRequirementTime
LatestRequirementDate I_ManufacturingOrderComponent LatestRequirementDate
ReservationItemCreationCode I_ManufacturingOrderComponent ReservationItemCreationCode
ReservationIsFinallyIssued I_ManufacturingOrderComponent ReservationIsFinallyIssued
MatlCompIsMarkedForDeletion I_ManufacturingOrderComponent MatlCompIsMarkedForDeletion
MaterialComponentIsMissing I_ManufacturingOrderComponent MaterialComponentIsMissing
IsBulkMaterialComponent I_ManufacturingOrderComponent IsBulkMaterialComponent
MatlCompIsMarkedForBackflush I_ManufacturingOrderComponent MatlCompIsMarkedForBackflush
MaterialCompIsAlternativeItem I_ManufacturingOrderComponent MaterialCompIsAlternativeItem
MatlCompIsTextItem I_ManufacturingOrderComponent MatlCompIsTextItem
MaterialProvisionType I_ManufacturingOrderComponent MaterialProvisionType
MaterialPlanningRelevance I_ManufacturingOrderComponent MaterialPlanningRelevance
MatlCompDiscontinuationType I_ManufacturingOrderComponent MatlCompDiscontinuationType
MatlCompIsConfigurable I_ManufacturingOrderComponent MatlCompIsConfigurable
MaterialCompCostingRelevancy I_ManufacturingOrderComponent MaterialCompCostingRelevancy
MaterialComponentIsClassified I_ManufacturingOrderComponent MaterialComponentIsClassified
MaterialCompIsIntraMaterial I_ManufacturingOrderComponent MaterialCompIsIntraMaterial
UsageProbabilityPercent I_ManufacturingOrderComponent UsageProbabilityPercent
MaterialIsDirectlyProduced I_ManufacturingOrderComponent MaterialIsDirectlyProduced
MaterialIsDirectlyProcured I_ManufacturingOrderComponent MaterialIsDirectlyProcured
LongTextLanguage I_ManufacturingOrderComponent LongTextLanguage
MaterialComponentHasLongText I_ManufacturingOrderComponent MaterialComponentHasLongText
RequirementType I_ManufacturingOrderComponent RequirementType
SalesOrder I_ManufacturingOrderComponent SalesOrder
SalesOrderItem I_ManufacturingOrderComponent SalesOrderItem
WBSElementInternalID
ProductConfiguration I_ManufacturingOrderComponent ProductConfiguration
ChangeNumber I_ManufacturingOrderComponent ChangeNumber
EffectivityParameterVariant I_ManufacturingOrderComponent EffectivityParameterVariant
MatlCompFreeDefinedAttribute I_ManufacturingOrderComponent MatlCompFreeDefinedAttribute
BillOfMaterialCategory I_ManufacturingOrderComponent BillOfMaterialCategory
BillOfMaterialInternalID I_ManufacturingOrderComponent BillOfMaterialInternalID
BillOfMaterialVariant I_ManufacturingOrderComponent BillOfMaterialVariant
BillOfMaterialItemNodeNumber I_ManufacturingOrderComponent BillOfMaterialItemNodeNumber
BillOfMaterialVersion I_ManufacturingOrderComponent BillOfMaterialVersion
BOMItemInternalChangeCount I_ManufacturingOrderComponent BOMItemInternalChangeCount
InheritedBOMItemNode I_ManufacturingOrderComponent InheritedBOMItemNode
BillOfMaterialItemCategory I_ManufacturingOrderComponent BillOfMaterialItemCategory
BillOfMaterialItemNumber I_ManufacturingOrderComponent BillOfMaterialItemNumber
MaterialComponentText I_ManufacturingOrderComponent MaterialComponentText
MaterialComponentSecondText I_ManufacturingOrderComponent MaterialComponentSecondText
BOMExplosionDateID I_ManufacturingOrderComponent BOMExplosionDateID
PurchasingInfoRecord I_ManufacturingOrderComponent PurchasingInfoRecord
PurchasingGroup I_ManufacturingOrderComponent PurchasingGroup
PurchaseRequisition I_ManufacturingOrderComponent PurchaseRequisition
PurchaseRequisitionItem I_ManufacturingOrderComponent PurchaseRequisitionItem
PurchaseOrder I_ManufacturingOrderComponent PurchaseOrder
PurchaseOrderItem I_ManufacturingOrderComponent PurchaseOrderItem
Supplier I_ManufacturingOrderComponent Supplier
DeliveryDurationInDays I_ManufacturingOrderComponent DeliveryDurationInDays
MaterialGoodsReceiptDuration I_ManufacturingOrderComponent MaterialGoodsReceiptDuration
ExternalProcessingPrice
NumberOfPriceUnits I_ManufacturingOrderComponent NumberOfOperationPriceUnits
GoodsMovementIsAllowed I_ManufacturingOrderComponent GoodsMovementIsAllowed
StorageLocation I_ManufacturingOrderComponent StorageLocation
Batch
BatchSplitType I_ManufacturingOrderComponent BatchSplitType
DebitCreditCode I_ManufacturingOrderComponent DebitCreditCode
GoodsMovementType I_ManufacturingOrderComponent GoodsMovementType
InventorySpecialStockType I_ManufacturingOrderComponent InventorySpecialStockType
InventorySpecialStockValnType I_ManufacturingOrderComponent InventorySpecialStockValnType
ConsumptionPosting I_ManufacturingOrderComponent ConsumptionPosting
SupplyArea I_ManufacturingOrderComponent SupplyArea
GoodsRecipientName I_ManufacturingOrderComponent GoodsRecipientName
UnloadingPointName I_ManufacturingOrderComponent UnloadingPointName
StockSegment I_ManufacturingOrderComponent StockSegment
RequirementSegment I_ManufacturingOrderComponent RequirementSegment
BusinessArea I_ManufacturingOrderComponent BusinessArea
GLAccount I_ManufacturingOrderComponent GLAccount
FunctionalArea I_ManufacturingOrderComponent FunctionalArea
AccountAssignmentCategory I_ManufacturingOrderComponent AccountAssignmentCategory
MaterialCompIsVariableSized I_ManufacturingOrderComponent MaterialCompIsVariableSized
VariableSizeItemUnit I_ManufacturingOrderComponent VariableSizeItemUnit
VariableSizeItemQuantity I_ManufacturingOrderComponent VariableSizeItemQuantity
VariableSizeComponentUnit I_ManufacturingOrderComponent VariableSizeComponentUnit
VariableSizeComponentQuantity I_ManufacturingOrderComponent VariableSizeComponentQuantity
VariableSizeDimensionUnit I_ManufacturingOrderComponent VariableSizeDimensionUnit
VariableSizeDimension1 I_ManufacturingOrderComponent VariableSizeDimension1
VariableSizeDimension2 I_ManufacturingOrderComponent VariableSizeDimension2
VariableSizeDimension3 I_ManufacturingOrderComponent VariableSizeDimension3
VariableSizeCompFormulaKey I_ManufacturingOrderComponent VariableSizeCompFormulaKey
MaterialComponentIsPhantomItem I_ManufacturingOrderComponent MaterialComponentIsPhantomItem
OrderPathValue I_ManufacturingOrderComponent OrderPathValue
OrderLevelValue I_ManufacturingOrderComponent OrderLevelValue
LeadTimeOffset I_ManufacturingOrderComponent LeadTimeOffset
PhaseLeadTimeOffsetUnit
PhaseLeadTimeOffset
QuantityIsFixed I_ManufacturingOrderComponent QuantityIsFixed
IsNetScrap I_ManufacturingOrderComponent IsNetScrap
ComponentScrapInPercent I_ManufacturingOrderComponent ComponentScrapInPercent
PhaseScrapPercent
MaterialQtyToBaseQtyNmrtr I_ManufacturingOrderComponent MaterialQtyToBaseQtyNmrtr
MaterialQtyToBaseQtyDnmntr I_ManufacturingOrderComponent MaterialQtyToBaseQtyDnmntr
BaseUnit I_ManufacturingOrderComponent BaseUnit
RequiredQuantity I_ManufacturingOrderComponent RequiredQuantity
WithdrawnQuantity I_ManufacturingOrderComponent WithdrawnQuantity
ConfirmedAvailableQuantity I_ManufacturingOrderComponent ConfirmedAvailableQuantity
MaterialCompOriginalQuantity I_ManufacturingOrderComponent MaterialCompOriginalQuantity
EntryUnit I_ManufacturingOrderComponent EntryUnit
GoodsMovementEntryQty I_ManufacturingOrderComponent GoodsMovementEntryQty
Currency I_ManufacturingOrderComponent Currency
WithdrawnQuantityAmount I_ManufacturingOrderComponent WithdrawnQuantityAmount
_Order _Order
_Phase _Phase
_Operation _Operation
_Supplier I_ManufacturingOrderComponent _Supplier
_SupplierCompanyByPlant I_ManufacturingOrderComponent _SupplierCompanyByPlant
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #NONE
@ObjectModel.supportedCapabilities: [#TRANSACTIONAL_PROVIDER]
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #MIXED}
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@VDM.viewType: #TRANSACTIONAL
@EndUserText.label: 'Process Order Component - TP'
//

//      ************************  DO NOT USE  ************************

//      *            This RAP BO is for testing purpose only         *

//      **************************************************************


define view entity R_ProcessOrderComponentTP
  as select from I_ManufacturingOrderComponent as Component
    inner join   I_OrderOperationBasic         as Operation on  Operation.OrderInternalID          = Component.OrderInternalID
                                                            and Operation.OrderOperationInternalID = Component.OrderOperationInternalID

  // BO relation

  association        to parent R_ProcessOrderTP   as _Order        on  $projection.ProcessOrder = _Order.ProcessOrder

  association [0..1] to R_ProcessOrderPhaseTP     as _Phase        on  _Phase.ProcessOrder         = $projection.ProcessOrder
                                                                   and _Phase.OrderPhaseInternalID = $projection.OrderPhaseInternalID

  association [0..1] to R_ProcessOrderOperationTP as _Operation    on  _Operation.ProcessOrder             = $projection.ProcessOrder
                                                                   and _Operation.OrderOperationInternalID = $projection.OrderOperationInternalID

  // Extension association

  association [1..1] to E_ProcessOrderComponent   as _Extension    on  $projection.Reservation           = _Extension.Reservation
                                                                   and $projection.ReservationItem       = _Extension.ReservationItem
                                                                   and $projection.ReservationRecordType = _Extension.ReservationRecordType
{
      // Key

  key Component.Reservation,
  key Component.ReservationItem,
  key Component.ReservationRecordType,

      //Material data

      cast(Component.MaterialGroup as matkl preserving type )                                                   as MaterialGroup,
      cast(Component.Material as matnr preserving type )                                                        as Material,
      Component.Plant,

      // Order and Operation data

      cast(Component.ManufacturingOrder as co_bord preserving type)                                             as ProcessOrder,
//      Component.ManufacturingOrderSequence                                                                      as ProcessOrderSequence,

//      Component.MfgOrderSequenceCategory                                                                        as SequenceCategory,


      //      Component.ManufacturingOrderOperation                                                                     as ProcessOrderOperation,

      case Operation.MfgOrderOperationIsPhase when 'X' then Component.ManufacturingOrderOperation else ' ' end  as ProcessOrderPhase,
      case Operation.MfgOrderOperationIsPhase when ' ' then Component.ManufacturingOrderOperation else ' ' end  as ProcessOrderOperation,
      //      case when _Phase.OrderPhaseInternalID is not null then Component.ManufacturingOrderOperation else null end         as ProcessOrderPhase1,

      //      case when _Operation.OrderOperationInternalID is not null then Component.ManufacturingOrderOperation else null end as ProcessOrderOperation1,


      Component.OrderInternalID                                                                                 as OrderInternalID,

      //      Component.OrderOperationInternalID,

      case Operation.MfgOrderOperationIsPhase when 'X' then Component.OrderOperationInternalID else null end    as OrderPhaseInternalID,
      case Operation.MfgOrderOperationIsPhase when ' ' then Component.OrderOperationInternalID else null end    as OrderOperationInternalID,

      //      case when _Phase.OrderPhaseInternalID is not null then Component.OrderOperationInternalID else null end            as OrderPhaseInternalID1,

      //      case when _Operation.OrderOperationInternalID is not null then Component.OrderOperationInternalID else null end    as OrderOperationInternalID1,


      // Date and Time

      @Semantics.businessDate.at: true
      Component.MatlCompRequirementDate,
      Component.MatlCompRequirementTime,
      Component.LatestRequirementDate,

      // Attributes

      Component.ReservationItemCreationCode,
      Component.ReservationIsFinallyIssued,
      @Semantics.booleanIndicator
      Component.MatlCompIsMarkedForDeletion,
      Component.MaterialComponentIsMissing,
      Component.IsBulkMaterialComponent,
      Component.MatlCompIsMarkedForBackflush,
      Component.MaterialCompIsAlternativeItem,
      Component.MatlCompIsTextItem,
      Component.MaterialProvisionType,
      Component.MaterialPlanningRelevance,
      Component.MatlCompDiscontinuationType,
      Component.MatlCompIsConfigurable,
      Component.MaterialCompCostingRelevancy,
      Component.MaterialComponentIsClassified,
      Component.MaterialCompIsIntraMaterial,
      Component.UsageProbabilityPercent,
      Component.MaterialIsDirectlyProduced,
      Component.MaterialIsDirectlyProcured,

      // Long Text

      Component.LongTextLanguage,
      Component.MaterialComponentHasLongText,

      // Assignments

      Component.RequirementType,
      Component.SalesOrder,
      Component.SalesOrderItem,
      cast(Component.WBSElementInternalID as ps_s4_pspnr preserving type)                                       as WBSElementInternalID,
      Component.ProductConfiguration,
      Component.ChangeNumber,
      Component.EffectivityParameterVariant,
      Component.MatlCompFreeDefinedAttribute,

      // Assignments BOM

      Component.BillOfMaterialCategory,
      Component.BillOfMaterialInternalID,
      Component.BillOfMaterialVariant,
      Component.BillOfMaterialItemNodeNumber,
      Component.BillOfMaterialVersion,
      Component.BOMItemInternalChangeCount,
      Component.InheritedBOMItemNode,
      Component.BillOfMaterialItemCategory,
      Component.BillOfMaterialItemNumber,
      @Semantics.text: true
      Component.MaterialComponentText,
      @Semantics.text: true
      Component.MaterialComponentSecondText,
      Component.BOMExplosionDateID,

      // Assignments Purchasing

      Component.PurchasingInfoRecord,
      Component.PurchasingGroup,
      Component.PurchaseRequisition,
      Component.PurchaseRequisitionItem,
      Component.PurchaseOrder,
      Component.PurchaseOrderItem,
      Component.Supplier,
      Component.DeliveryDurationInDays,
      Component.MaterialGoodsReceiptDuration,
      -- Price
      @Semantics.amount.currencyCode: 'Currency'
      Component.ExternalProcessingPrice,
      Component.NumberOfOperationPriceUnits                                                                     as NumberOfPriceUnits,

      // Goods Movement data

      Component.GoodsMovementIsAllowed,
      Component.StorageLocation,
      cast(Component.Batch as charg_d preserving type)                                                          as Batch,
      Component.BatchSplitType,
      Component.DebitCreditCode,
      Component.GoodsMovementType,
      Component.InventorySpecialStockType,
      Component.InventorySpecialStockValnType,
      Component.ConsumptionPosting,
      Component.SupplyArea,
      @Semantics.text: true
      Component.GoodsRecipientName,
      @Semantics.text: true
      Component.UnloadingPointName,
      Component.StockSegment,
      Component.RequirementSegment,

      // Assignments FI/CO

      Component.BusinessArea,
      Component.GLAccount,
      Component.FunctionalArea,
//      Component.ControllingArea,

      Component.AccountAssignmentCategory,

      // Variable-size comp. data

      Component.MaterialCompIsVariableSized,
      Component.VariableSizeItemUnit,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeItemUnit'
      Component.VariableSizeItemQuantity,

      Component.VariableSizeComponentUnit,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeComponentUnit'
      Component.VariableSizeComponentQuantity,
      Component.VariableSizeDimensionUnit,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeDimensionUnit'
      Component.VariableSizeDimension1,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeDimensionUnit'
      Component.VariableSizeDimension2,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeDimensionUnit'
      Component.VariableSizeDimension3,
      Component.VariableSizeCompFormulaKey,

      // Phantom assembly

      Component.MaterialComponentIsPhantomItem,
      Component.OrderPathValue,
      Component.OrderLevelValue,

      // Lead-Time offset

      Component.LeadTimeOffset,
      case Operation.MfgOrderOperationIsPhase when 'X' then Component.OperationLeadTimeOffsetUnit else null end as PhaseLeadTimeOffsetUnit,
      case Operation.MfgOrderOperationIsPhase when 'X' then Component.OperationLeadTimeOffset else null end     as PhaseLeadTimeOffset,

      // Quantities and UoM

      Component.QuantityIsFixed,
      Component.IsNetScrap,
      Component.ComponentScrapInPercent,
      // scrap limited to phases in PI

      case Operation.MfgOrderOperationIsPhase when 'X' then Component.OperationScrapInPercent else null end     as PhaseScrapPercent,
      Component.MaterialQtyToBaseQtyNmrtr,
      Component.MaterialQtyToBaseQtyDnmntr,
      Component.BaseUnit,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      Component.RequiredQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      Component.WithdrawnQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      Component.ConfirmedAvailableQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      Component.MaterialCompOriginalQuantity,

      Component.EntryUnit,
      @Semantics.quantity.unitOfMeasure: 'EntryUnit'
      Component.GoodsMovementEntryQty,

      // Amount and Currency

      Component.Currency,
      @Semantics.amount.currencyCode: 'Currency'
      Component.WithdrawnQuantityAmount,

      // Associations

      _Order,
      _Phase,
      _Operation,

      @Consumption.hidden: true
      Component._Supplier,              // for DCLS

      @Consumption.hidden: true
      Component._SupplierCompanyByPlant // for DCLS

}
where
  Component.ManufacturingOrderCategory = '40';