R_ProductionOrderOpComponentTP
Production Order Component - TP
R_ProductionOrderOpComponentTP is a Transactional CDS View that provides data about "Production Order Component - TP" in SAP S/4HANA. It reads from 1 data source (I_ManufacturingOrderComponent) and exposes 118 fields with key fields Reservation, ReservationItem, ReservationRecordType. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ManufacturingOrderComponent | Component | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | E_ProductionOrderComponent | _Extension | $projection.Reservation = _Extension.Reservation and $projection.ReservationItem = _Extension.ReservationItem and $projection.ReservationRecordType = _Extension.ReservationRecordType |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | 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 | |
| ObjectModel.modelingPattern | #TRANSACTIONAL_PROJECTED_ENTITY | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Production Order Component - TP | view |
Fields (118)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Reservation | I_ManufacturingOrderComponent | Reservation | |
| KEY | ReservationItem | I_ManufacturingOrderComponent | ReservationItem | |
| KEY | ReservationRecordType | I_ManufacturingOrderComponent | ReservationRecordType | |
| MaterialGroup | ||||
| Material | ||||
| Plant | I_ManufacturingOrderComponent | Plant | ||
| ProductionOrder | ||||
| ProductionOrderSequence | I_ManufacturingOrderComponent | ManufacturingOrderSequence | ||
| SequenceCategory | I_ManufacturingOrderComponent | MfgOrderSequenceCategory | ||
| ProductionOrderOperation | ||||
| OrderInternalID | I_ManufacturingOrderComponent | OrderInternalID | ||
| OrderOperationInternalID | I_ManufacturingOrderComponent | 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 | ||||
| PurchaseRequisitionItem | ||||
| PurchaseOrder | ||||
| PurchaseOrderItem | ||||
| Supplier | I_ManufacturingOrderComponent | Supplier | ||
| DeliveryDurationInDays | I_ManufacturingOrderComponent | DeliveryDurationInDays | ||
| MaterialGoodsReceiptDuration | I_ManufacturingOrderComponent | MaterialGoodsReceiptDuration | ||
| ExternalProcessingPrice | ||||
| NumberOfOperationPriceUnits | 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 | ||
| OperationLeadTimeOffsetUnit | I_ManufacturingOrderComponent | OperationLeadTimeOffsetUnit | ||
| OperationLeadTimeOffset | I_ManufacturingOrderComponent | OperationLeadTimeOffset | ||
| QuantityIsFixed | I_ManufacturingOrderComponent | QuantityIsFixed | ||
| IsNetScrap | I_ManufacturingOrderComponent | IsNetScrap | ||
| ComponentScrapInPercent | I_ManufacturingOrderComponent | ComponentScrapInPercent | ||
| OperationScrapInPercent | I_ManufacturingOrderComponent | OperationScrapInPercent | ||
| 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 | ||
| _Supplier | _Supplier | |||
| _SupplierCompanyByPlant | _SupplierCompanyByPlant | |||
| _ProductionOrder | _ProductionOrder |
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #MIXED}
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@VDM.viewType: #TRANSACTIONAL
@ObjectModel.supportedCapabilities: [#TRANSACTIONAL_PROVIDER]
@ObjectModel.modelingPattern: #TRANSACTIONAL_PROJECTED_ENTITY
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Production Order Component - TP'
//
// ************************ DO NOT USE ************************
// * This RAP BO is for testing purpose only *
// **************************************************************
define view entity R_ProductionOrderOpComponentTP
as select from I_ManufacturingOrderComponent as Component
// BO relation
association to parent R_ProductionOrderTP as _ProductionOrder on $projection.ProductionOrder = _ProductionOrder.ProductionOrder
// extension association
association [1..1] to E_ProductionOrderComponent 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 vdm_manufacturingorder preserving type) as ProductionOrder,
Component.ManufacturingOrderSequence as ProductionOrderSequence,
Component.MfgOrderSequenceCategory as SequenceCategory,
cast ( Component.ManufacturingOrderOperation as vdm_vornr preserving type ) as ProductionOrderOperation,
Component.OrderInternalID as OrderInternalID,
Component.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.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 as MatlCompFreeDefinedAttribute,
// Assignments BOM
Component.BillOfMaterialCategory,
Component.BillOfMaterialInternalID as BillOfMaterialInternalID,
Component.BillOfMaterialVariant,
Component.BillOfMaterialItemNodeNumber,
Component.BillOfMaterialVersion,
Component.BOMItemInternalChangeCount,
Component.InheritedBOMItemNode,
Component.BillOfMaterialItemCategory,
Component.BillOfMaterialItemNumber as BillOfMaterialItemNumber,
@Semantics.text: true
Component.MaterialComponentText,
@Semantics.text: true
Component.MaterialComponentSecondText,
Component.BOMExplosionDateID,
// Assignments Purchasing
Component.PurchasingInfoRecord,
Component.PurchasingGroup,
-- @ObjectModel.foreignKey.association: '_PurchaseRequisition'
Component.PurchaseRequisition,
-- @ObjectModel.foreignKey.association: '_PurchaseRequisitionItem'
Component.PurchaseRequisitionItem,
-- @ObjectModel.foreignKey.association: '_PurchaseOrder'
Component.PurchaseOrder,
-- @ObjectModel.foreignKey.association: '_PurchaseOrderItem'
Component.PurchaseOrderItem,
@ObjectModel.foreignKey.association: '_Supplier'
Component.Supplier,
Component.DeliveryDurationInDays,
Component.MaterialGoodsReceiptDuration,
-- Price
@Semantics.amount.currencyCode: 'Currency'
Component.ExternalProcessingPrice,
Component.NumberOfOperationPriceUnits,
// 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 WM - old WM should not be used any longer
// @ObjectModel.foreignKey.association: '_Warehouse'
// Component.Warehouse,
// Component.StorageType,
// Component.StorageBin,
// Assignments FI/CO
Component.BusinessArea,
// @ObjectModel.foreignKey.association: '_CompanyCode'
// CompanyCode,
// @ObjectModel.foreignKey.association: '_GLAccount'
Component.GLAccount,
Component.FunctionalArea,
// @ObjectModel.foreignKey.association: '_ControllingArea'
// ControllingArea,
Component.AccountAssignmentCategory,
// Component.CommitmentItemShortID, // not needed
// Component.FundsCenter, // not needed
// Variable-size comp. data
Component.MaterialCompIsVariableSized,
Component.VariableSizeItemUnit,
// cast(case Component.MaterialCompIsVariableSized
// when 'X' then tcs03.roame
// else ' '
// end as vdm_roame) as VariableSizeItemUnit,
@Semantics.quantity.unitOfMeasure: 'VariableSizeItemUnit'
Component.VariableSizeItemQuantity as 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,
Component.OperationLeadTimeOffsetUnit,
Component.OperationLeadTimeOffset,
// Quantities and UoM
Component.QuantityIsFixed,
Component.IsNetScrap,
Component.ComponentScrapInPercent,
Component.OperationScrapInPercent,
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
_Supplier,
_SupplierCompanyByPlant,
_ProductionOrder
}
where
Component.ManufacturingOrderCategory = '10'; //production order
// resb.kzkup = '' //no co-products
// and resb.postp <> 'D' //no documents
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MANUFACTURINGORDERCOMPONENT"
],
"ASSOCIATED":
[
"I_SUPPLIER",
"I_SUPPLIERCOMPANYBYPLANT",
"R_PRODUCTIONORDERTP"
],
"BASE":
[
"I_MANUFACTURINGORDERCOMPONENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA