R_ProcessOrderComponentTP

DDL: R_PROCESSORDERCOMPONENTTP Type: view_entity TRANSACTIONAL Package: PP_PROCESSORDER_RAP

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 127 fields with key fields Reservation, ReservationItem, ReservationRecordType. It has 3 associations to related views. Part of development package PP_PROCESSORDER_RAP.

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 (127)

KeyFieldSource TableSource FieldDescription
KEY Reservation I_ManufacturingOrderComponent Reservation
KEY ReservationItem I_ManufacturingOrderComponent ReservationItem
KEY ReservationRecordType I_ManufacturingOrderComponent ReservationRecordType
MaterialGroup
Material
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
MatlCompIsTextItem I_ManufacturingOrderComponent MatlCompIsTextItem
MaterialPlanningRelevance I_ManufacturingOrderComponent MaterialPlanningRelevance
MatlCompIsConfigurable I_ManufacturingOrderComponent MatlCompIsConfigurable
MaterialCompCostingRelevancy I_ManufacturingOrderComponent MaterialCompCostingRelevancy
MaterialComponentIsClassified I_ManufacturingOrderComponent MaterialComponentIsClassified
MaterialCompIsIntraMaterial I_ManufacturingOrderComponent MaterialCompIsIntraMaterial
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 I_ManufacturingOrderComponent 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
DiscontinuationGroup I_ManufacturingOrderComponent DiscontinuationGroup
MatlCompDiscontinuationType I_ManufacturingOrderComponent MatlCompDiscontinuationType
MatlCompIsFollowUpMaterial I_ManufacturingOrderComponent MatlCompIsFollowUpMaterial
FollowUpGroup I_ManufacturingOrderComponent FollowUpGroup
FollowUpMaterial I_ManufacturingOrderComponent FollowUpMaterial
FollowUpMaterialIsActive I_ManufacturingOrderComponent FollowUpMaterialIsActive
MaterialCompIsAlternativeItem I_ManufacturingOrderComponent MaterialCompIsAlternativeItem
AlternativeItemGroup I_ManufacturingOrderComponent AlternativeItemGroup
AlternativeItemStrategy I_ManufacturingOrderComponent AlternativeItemStrategy
AlternativeItemPriority I_ManufacturingOrderComponent AlternativeItemPriority
UsageProbabilityPercent I_ManufacturingOrderComponent UsageProbabilityPercent
MaterialComponentIsPhantomItem I_ManufacturingOrderComponent MaterialComponentIsPhantomItem
OrderPathValue I_ManufacturingOrderComponent OrderPathValue
OrderLevelValue I_ManufacturingOrderComponent OrderLevelValue
MaterialProvisionType I_ManufacturingOrderComponent MaterialProvisionType
MatlComponentSparePartType I_ManufacturingOrderComponent MatlComponentSparePartType
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
@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'

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,
      cast(Component.Plant as werks_d preserving type )                                                         as Plant,

      // Order and Operation data

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

      case Operation.MfgOrderOperationIsPhase when 'X' then Component.ManufacturingOrderOperation else ' ' end  as ProcessOrderPhase,
      case Operation.MfgOrderOperationIsPhase when ' ' then Component.ManufacturingOrderOperation else ' ' end  as ProcessOrderOperation,

      Component.OrderInternalID                                                                                 as OrderInternalID,
      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,

      // 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.MatlCompIsTextItem,
      Component.MaterialPlanningRelevance,
      Component.MatlCompIsConfigurable,
      Component.MaterialCompCostingRelevancy,
      Component.MaterialComponentIsClassified,
      Component.MaterialCompIsIntraMaterial,
      Component.MaterialIsDirectlyProduced,
      Component.MaterialIsDirectlyProcured,

      // Long Text

      Component.LongTextLanguage,
      Component.MaterialComponentHasLongText,

      // Assignments

      Component.RequirementType,
      Component.SalesOrder,
      Component.SalesOrderItem,
      Component.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.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,

      // Discontinuation

      Component.DiscontinuationGroup,
      Component.MatlCompDiscontinuationType,
      Component.MatlCompIsFollowUpMaterial,
      Component.FollowUpGroup,
      Component.FollowUpMaterial,
      Component.FollowUpMaterialIsActive,

      // Alternative item data

      Component.MaterialCompIsAlternativeItem,
      Component.AlternativeItemGroup,
      Component.AlternativeItemStrategy,
      Component.AlternativeItemPriority,
      Component.UsageProbabilityPercent,

      // Phantom assembly

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

      // Others

      Component.MaterialProvisionType,
      Component.MatlComponentSparePartType,

      // 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

}
where
  Component.ManufacturingOrderCategory = '40';