R_MAINTJOBWORKITEMSERVICE
Planned service in work item
R_MAINTJOBWORKITEMSERVICE is a CDS View in S/4HANA. Planned service in work item. 1 CDS views read from this table.
CDS Views using this table (1)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| C_MaintJobWorkItemService | view_entity | from | CONSUMPTION | Planned service in work item |
@EndUserText.label: 'Planned service in work item'
@VDM.viewType: #BASIC
@VDM.usage.type: [#TRANSACTIONAL_PROCESSING_SERVICE]
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #L, dataClass: #MIXED}
@AccessControl.personalData.blocking:#NOT_REQUIRED
define view entity R_MaintJobWorkItemService
as select from I_MaintenanceOrderComponent_2
{
key MaintenanceOrder,
key cast(MaintenanceOrderOperation as pph_vornr preserving type) as MaintenanceOrderOperation,
key cast(MaintenanceOrderSubOperation as pph_vornr preserving type) as MaintenanceOrderSubOperation,
key MaintOrderComponentInternalID,
cast(MaintenanceOrderComponent as pph_vornr preserving type) as MaintenanceOrderComponent,
@ObjectModel.text.element: [ 'MaterialName' ]
Material,
@Semantics.text: true
case when Material =''
then ComponentDescription
else _MaterialText[1:Language=$session.system_language].MaterialName
end as MaterialName,
RequirementQuantityInBaseUnit,
BaseUnit,
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 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,
@Semantics.quantity.unitOfMeasure: 'LeanServiceDurationUnit'
LeanServiceDuration,
LeanServiceDurationUnit,
Supplier,
@Semantics.amount.currencyCode: 'MaintOrdOpComponentCurrency'
OverallLimitAmount,
@Semantics.amount.currencyCode: 'MaintOrdOpComponentCurrency'
ExpectedOverallLimitAmount,
MaintOrdOpComponentCurrency,
ReservationIsFinallyIssued,
WithdrawnQuantity,
@Semantics.amount.currencyCode: 'MaintOrdOpComponentCurrency'
MaintOrderOpComponentPrice,
MaintOrdOpCompPriceUnitQty
}
where
IsDeleted <> 'X' // filter out the deleted items from iw32 component list
and ProductTypeCode = '2'