R_MaintOrderOpComponentTP
Maintenance Order Operation Component TP
R_MaintOrderOpComponentTP is a Transactional CDS View that provides data about "Maintenance Order Operation Component TP" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceOrderComponent) and exposes 105 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation, MaintenanceOrderComponent. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintenanceOrderComponent | I_MaintenanceOrderComponent | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | R_MaintenanceOrderTP | _MaintenanceOrder | $projection.MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder |
| [0..1] | I_WBSElementBasicData | _WBSElement | _WBSElement.WBSElementInternalID = $projection.MaintOrdOpCompAssgdWBSElmntInt |
| [0..*] | R_MaintOrderOpCompLongTextTP | _MaintOrderOpCompLongText | |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| EndUserText.label | Maintenance Order Operation Component TP | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | R_MaintOrderOpComponentTP_2 | view |
Fields (105)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceOrder | MaintenanceOrder | ||
| KEY | MaintenanceOrderOperation | |||
| KEY | MaintenanceOrderSubOperation | |||
| KEY | MaintenanceOrderComponent | |||
| MaintOrderOperationForEdit | ||||
| MaintOrderSubOperationForEdit | ||||
| MaintOrderComponentForEdit | ||||
| Reservation | Reservation | |||
| ReservationItem | ReservationItem | |||
| ReservationType | ReservationType | |||
| MaintOrderRoutingNumber | MaintOrderRoutingNumber | |||
| MaintOrderOperationCounter | MaintOrderOperationCounter | |||
| Product | Material | |||
| MaintOrdOpCompRequiredQuantity | RequirementQuantityInBaseUnit | |||
| BaseUnit | BaseUnit | |||
| QuantityInUnitOfEntry | QuantityInUnitOfEntry | |||
| UnitOfEntry | UnitOfEntry | |||
| clientNULLendasRequirementDate | ||||
| clientNULLendasRequirementTime | ||||
| Supplier | Supplier | |||
| Plant | Plant | |||
| StorageLocation | StorageLocation | |||
| MaintOrdOpCompItemCategory | ItemCategory | |||
| GoodsMovementType | GoodsMovementType | |||
| ReservationIsFinallyIssued | ReservationIsFinallyIssued | |||
| MaterialGroup | MaterialGroup | |||
| MaintOrdOpCompIsMRPRelevant | PurReqnOrResvnGeneration | |||
| MaterialCompIsProcuredDirectly | MaterialCompIsProcuredDirectly | |||
| ProductTypeCode | ProductTypeCode | |||
| ServicePerformer | ServicePerformer | |||
| clientNULLendasPerformancePeriodEndDate | ||||
| clientNULLendasPerformancePeriodEndTime | ||||
| LeanServiceDuration | LeanServiceDuration | |||
| LeanServiceDurationUnit | LeanServiceDurationUnit | |||
| DistributionFunction | DistributionFunction | |||
| MaintOrdCompDeliveryDateAdjmt | MaintOrdCompDeliveryDateAdjmt | |||
| SrvcSchedgIsAlignedWthOpWrkCtr | SrvcSchedgIsAlignedWthOpWrkCtr | |||
| MaintOrderCompDebitCreditCode | MaintOrderCompDebitCreditCode | |||
| GoodsMovementIsAllowed | GoodsMovementIsAllowed | |||
| MaintenanceOrderComponentBatch | MaintenanceOrderComponentBatch | |||
| MaintOrderComponentInternalID | MaintOrderComponentInternalID | |||
| QuantityIsFixed | QuantityIsFixed | |||
| MaintOrdOpComponentCurrency | MaintOrdOpComponentCurrency | |||
| MaintOrdOpComponentGLAccount | MaintOrdOpComponentGLAccount | |||
| MaintOrdOpCompCostingRelevancy | MaintOrdOpCompCostingRelevancy | |||
| MaintCompAltvProdUsgeRateInPct | MaintCompAltvProdUsgeRateInPct | |||
| MaintOrderOpComponentSortText | MaintOrderOpComponentSortText | |||
| MaintOrdOpCompIsBulkProduct | MaintOrdOpCompIsBulkProduct | |||
| MaterialProvisionType | MaterialProvisionType | |||
| MaintOrdOpCompAssgdWBSElmntInt | MaintOrdOpCompAssgdWBSElmntInt | |||
| WBSElement | ||||
| MaintOrderOpComponentPrice | MaintOrderOpComponentPrice | |||
| MaintOrdOpCompPriceUnitQty | MaintOrdOpCompPriceUnitQty | |||
| MatlCompIsMarkedForBackflush | MatlCompIsMarkedForBackflush | |||
| PurchasingGroup | PurchasingGroup | |||
| DeliveryTimeInDays | DeliveryTimeInDays | |||
| MaintOrdOpCompGdsRecipientName | MaintOrdOpCompGdsRecipientName | |||
| MaintOrdOpCompUnloadingPtTxt | MaintOrdOpCompUnloadingPtTxt | |||
| GoodsReceiptDurationInWorkDays | GoodsReceiptDurationInWorkDays | |||
| PurchasingInfoRecord | PurchasingInfoRecord | |||
| OperationLeadTimeOffset | OperationLeadTimeOffset | |||
| OpsLeadTimeOffsetUnit | OpsLeadTimeOffsetUnit | |||
| MaintOrdOpCompRequisitioner | MaintOrdOpCompRequisitioner | |||
| MaintOrdOpCompProcmtTrckgNmbr | MaintOrdOpCompProcmtTrckgNmbr | |||
| ResponsiblePurchaseOrg | ResponsiblePurchaseOrg | |||
| PurchaseRequisition | PurchaseRequisition | |||
| PurchaseRequisitionItem | PurchaseRequisitionItem | |||
| OverallLimitAmount | OverallLimitAmount | |||
| ExpectedOverallLimitAmount | ExpectedOverallLimitAmount | |||
| MaintOrdOpCompSpecialStockType | MaintOrdOpCompSpecialStockType | |||
| VariableSizeDimension1 | VariableSizeDimension1 | |||
| VariableSizeDimensionUnit | VariableSizeDimensionUnit | |||
| VariableSizeCompFormulaKey | VariableSizeCompFormulaKey | |||
| VariableSizeDimension2 | VariableSizeDimension2 | |||
| NumberOfVariableSizeItem | NumberOfVariableSizeItem | |||
| VariableSizeDimension3 | VariableSizeDimension3 | |||
| VariableSizeItemQuantity | VariableSizeItemQuantity | |||
| VariableSizeComponentUnit | VariableSizeComponentUnit | |||
| RqmtDateIsEnteredManually | RqmtDateIsEnteredManually | |||
| SupplierProduct | SupplierProduct | |||
| MaintOrdCompCmtdQtyIsKept | MaintOrdCompCmtdQtyIsKept | |||
| MaintOrdOpCompPurOutlineAgrmt | MaintOrdOpCompPurOutlineAgrmt | |||
| MaintOrdCompPurOutlineAgrmtItm | MaintOrdCompPurOutlineAgrmtItm | |||
| IsDeleted | IsDeleted | |||
| MaintOrdOpCompProcmtCatalog | MaintOrdOpCompProcmtCatalog | |||
| MaintOrdOpCompProcmtCatalogItm | MaintOrdOpCompProcmtCatalogItm | |||
| QuantityWithdrawnInBaseUnit | QuantityWithdrawnInBaseUnit | |||
| ConfirmedAvailableQuantity | ConfirmedAvailableQuantity | |||
| RecipientLocationCode | _ReservationItem | RecipientLocationCode | ||
| ControllingArea | _MaintenanceOrder | ControllingArea | ||
| _MaintenanceOrder | _MaintenanceOrder | |||
| _MaintenanceOrderOperation | _MaintenanceOrderOperation | |||
| _ReservationItem | _ReservationItem | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _UnitOfMeasureEntry | _UnitOfMeasureEntry | |||
| _Plant | _Plant | |||
| _StorageLocation | _StorageLocation | |||
| _ItemCategoryText | _ItemCategoryText | |||
| _ProductTypeCode | _ProductTypeCode | |||
| _ReservationIsFinallyIssued | _ReservationIsFinallyIssued | |||
| _MaterialGroup | _MaterialGroup | |||
| _PurReqnOrResvnGeneration | _PurReqnOrResvnGeneration | |||
| _Supplier | _Supplier | |||
| _MaintOrderOpCompLongText | _MaintOrderOpCompLongText | |||
| _MaintOrdCompDelivDateAdjmtT | _MaintOrdCompDelivDateAdjmtT |
@AccessControl.authorizationCheck: #CHECK
@VDM: { viewType: #TRANSACTIONAL, lifecycle.contract.type: #SAP_INTERNAL_API }
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #L, dataClass: #TRANSACTIONAL}
@VDM.usage.type: [#TRANSACTIONAL_PROCESSING_SERVICE]
@EndUserText.label: 'Maintenance Order Operation Component TP'
@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: 'R_MaintOrderOpComponentTP_2'
define view entity R_MaintOrderOpComponentTP
as select from I_MaintenanceOrderComponent
association to parent R_MaintenanceOrderOperationTP as _MaintenanceOrderOperation on (
$projection.MaintenanceOrderOperation = _MaintenanceOrderOperation.MaintenanceOrderOperation
and $projection.MaintenanceOrderSubOperation = _MaintenanceOrderOperation.MaintenanceOrderSubOperation
and $projection.MaintenanceOrder = _MaintenanceOrderOperation.MaintenanceOrder
)
composition [0..*] of R_MaintOrderOpCompLongTextTP as _MaintOrderOpCompLongText
association [1..1] to R_MaintenanceOrderTP as _MaintenanceOrder on $projection.MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder
association [0..1] to I_WBSElementBasicData as _WBSElement on _WBSElement.WBSElementInternalID = $projection.MaintOrdOpCompAssgdWBSElmntInt
{
key MaintenanceOrder,
key cast( MaintenanceOrderOperation as maintenanceorderoperation preserving type ) as MaintenanceOrderOperation,
key cast( MaintenanceOrderSubOperation as maintenanceordersuboperation preserving type ) as MaintenanceOrderSubOperation,
key cast( MaintenanceOrderComponent as maintenanceordercomponent preserving type ) as MaintenanceOrderComponent,
@ObjectModel.editableFieldFor: 'MaintenanceOrderOperation'
cast( MaintenanceOrderOperation as maintenanceorderoperation preserving type ) as MaintOrderOperationForEdit,
@ObjectModel.editableFieldFor: 'MaintenanceOrderSubOperation'
cast( MaintenanceOrderSubOperation as maintenanceordersuboperation preserving type ) as MaintOrderSubOperationForEdit,
@ObjectModel.editableFieldFor: 'MaintenanceOrderComponent'
cast( MaintenanceOrderComponent as maintenanceordercomponent preserving type ) as MaintOrderComponentForEdit,
Reservation,
ReservationItem,
ReservationType,
MaintOrderRoutingNumber,
MaintOrderOperationCounter,
Material as Product,
case when Material = ''
then ComponentDescription
else _MaterialText[1:Language = $session.system_language ].MaterialName end as MaintOrdOperationComponentText,
RequirementQuantityInBaseUnit as MaintOrdOpCompRequiredQuantity,
BaseUnit,
QuantityInUnitOfEntry,
UnitOfEntry,
case RequirementTime when '240000'
then tstmp_to_dats( dats_tims_to_tstmp(dats_add_days( RequirementDate, 1, 'NULL'), cast( '000000' as abap.tims ),
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL'), 'UTC', $session.client, 'NULL' )
else tstmp_to_dats( dats_tims_to_tstmp(RequirementDate, RequirementTime,
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL'), 'UTC', $session.client, 'NULL' )
end as RequirementDate,
case RequirementTime when '240000'
then tstmp_to_tims( dats_tims_to_tstmp(dats_add_days( RequirementDate, 1, 'NULL'), cast( '000000' as abap.tims ),
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL'), 'UTC', $session.client, 'NULL' )
else tstmp_to_tims( dats_tims_to_tstmp(RequirementDate, RequirementTime,
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL'), 'UTC', $session.client, 'NULL' )
end as RequirementTime,
case RequirementTime when '240000'
then cast(dats_tims_to_tstmp( dats_add_days( RequirementDate, 1, 'NULL'), cast( '000000' as abap.tims ),
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL') as timestamp preserving type)
else cast(dats_tims_to_tstmp( RequirementDate, RequirementTime,
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL') as timestamp preserving type)
end as RequirementDateTime,
Supplier,
Plant,
StorageLocation,
ItemCategory as MaintOrdOpCompItemCategory,
//_ItemCategoryText[1:Language = $session.system_language ].BillOfMaterialItemCategoryDesc as BillOfMaterialItemCategoryDesc,
GoodsMovementType,
ReservationIsFinallyIssued,
MaterialGroup,
PurReqnOrResvnGeneration as MaintOrdOpCompIsMRPRelevant,
MaterialCompIsProcuredDirectly,
ProductTypeCode,
ServicePerformer,
case PerformancePeriodStartTime when '240000'
then cast(dats_tims_to_tstmp( dats_add_days( PerformancePeriodStartDate, 1, 'NULL'), cast( '000000' as abap.tims ),
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL') as timestamp preserving type)
else cast(dats_tims_to_tstmp( PerformancePeriodStartDate, PerformancePeriodStartTime,
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL') as timestamp preserving type)
end as PerformancePeriodStartDateTime,
case PerformancePeriodStartTime when '240000'
then tstmp_to_dats( dats_tims_to_tstmp(dats_add_days( PerformancePeriodStartDate, 1, 'NULL'), cast( '000000' as abap.tims ),
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL'), 'UTC', $session.client, 'NULL' )
else tstmp_to_dats( dats_tims_to_tstmp(PerformancePeriodStartDate, PerformancePeriodStartTime,
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL'), 'UTC', $session.client, 'NULL' )
end as PerformancePeriodStartDate,
case PerformancePeriodStartTime when '240000'
then tstmp_to_tims( dats_tims_to_tstmp(dats_add_days( PerformancePeriodStartDate, 1, 'NULL'), cast( '000000' as abap.tims ),
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL'), 'UTC', $session.client, 'NULL' )
else tstmp_to_tims( dats_tims_to_tstmp(PerformancePeriodStartDate, PerformancePeriodStartTime,
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL'), 'UTC', $session.client, 'NULL' )
end as PerformancePeriodStartTime,
case PerformancePeriodEndTime when '240000'
then cast(dats_tims_to_tstmp( dats_add_days( PerformancePeriodEndDate, 1, 'NULL'), cast( '000000' as abap.tims ),
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL') as timestamp preserving type)
else cast(dats_tims_to_tstmp( PerformancePeriodEndDate, PerformancePeriodEndTime,
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL') as timestamp preserving type)
end as PerformancePeriodEndDateTime,
case PerformancePeriodEndTime when '240000'
then tstmp_to_dats( dats_tims_to_tstmp(dats_add_days( PerformancePeriodEndDate, 1, 'NULL'), cast( '000000' as abap.tims ),
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL'), 'UTC', $session.client, 'NULL' )
else tstmp_to_dats( dats_tims_to_tstmp(PerformancePeriodEndDate, PerformancePeriodEndTime,
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL'), 'UTC', $session.client, 'NULL' )
end as PerformancePeriodEndDate,
case PerformancePeriodEndTime when '240000'
then tstmp_to_tims( dats_tims_to_tstmp(dats_add_days( PerformancePeriodEndDate, 1, 'NULL'), cast( '000000' as abap.tims ),
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL'), 'UTC', $session.client, 'NULL' )
else tstmp_to_tims( dats_tims_to_tstmp(PerformancePeriodEndDate, PerformancePeriodEndTime,
abap_system_timezone( $session.client,'NULL' ),
$session.client, 'NULL'), 'UTC', $session.client, 'NULL' )
end as PerformancePeriodEndTime,
LeanServiceDuration,
LeanServiceDurationUnit,
DistributionFunction,
MaintOrdCompDeliveryDateAdjmt,
SrvcSchedgIsAlignedWthOpWrkCtr,
MaintOrderCompDebitCreditCode,
GoodsMovementIsAllowed,
MaintenanceOrderComponentBatch,
MaintOrderComponentInternalID,
QuantityIsFixed,
MaintOrdOpComponentCurrency,
MaintOrdOpComponentGLAccount,
MaintOrdOpCompCostingRelevancy,
MaintCompAltvProdUsgeRateInPct,
MaintOrderOpComponentSortText,
MaintOrdOpCompIsBulkProduct,
MaterialProvisionType,
MaintOrdOpCompAssgdWBSElmntInt,
cast ( _WBSElement.WBSElement as vdm_ps_posid preserving type ) as WBSElement,
MaintOrderOpComponentPrice,
MaintOrdOpCompPriceUnitQty,
MatlCompIsMarkedForBackflush,
PurchasingGroup,
DeliveryTimeInDays,
MaintOrdOpCompGdsRecipientName,
MaintOrdOpCompUnloadingPtTxt,
GoodsReceiptDurationInWorkDays,
PurchasingInfoRecord,
OperationLeadTimeOffset,
OpsLeadTimeOffsetUnit,
MaintOrdOpCompRequisitioner,
MaintOrdOpCompProcmtTrckgNmbr,
ResponsiblePurchaseOrg,
PurchaseRequisition,
PurchaseRequisitionItem,
OverallLimitAmount,
ExpectedOverallLimitAmount,
// MaintOrdCompIsDirectlyProcured,
MaintOrdOpCompSpecialStockType,
VariableSizeDimension1,
VariableSizeDimensionUnit,
VariableSizeCompFormulaKey,
VariableSizeDimension2,
NumberOfVariableSizeItem,
VariableSizeDimension3,
VariableSizeItemQuantity,
VariableSizeComponentUnit,
RqmtDateIsEnteredManually,
SupplierProduct,
MaintOrdCompCmtdQtyIsKept,
MaintOrdOpCompPurOutlineAgrmt,
MaintOrdCompPurOutlineAgrmtItm,
IsDeleted,
MaintOrdOpCompProcmtCatalog,
MaintOrdOpCompProcmtCatalogItm,
QuantityWithdrawnInBaseUnit,
ConfirmedAvailableQuantity,
_ReservationItem.RecipientLocationCode,
_MaintenanceOrder.ControllingArea,
_MaintenanceOrder,
_MaintenanceOrderOperation,
_ReservationItem,
_UnitOfMeasure,
_UnitOfMeasureEntry,
_Plant,
_StorageLocation,
_ItemCategoryText,
_ProductTypeCode,
_ReservationIsFinallyIssued,
_MaterialGroup,
_PurReqnOrResvnGeneration,
_Supplier,
_MaintOrderOpCompLongText,
_MaintOrdCompDelivDateAdjmtT
}
where
_StatusObjectActiveStatus [1: StatusCode = 'I0013'].StatusCode is null // mark for deletion based on system status
//and IsDeleted = ''
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