I_MaintenanceOrderConfirmation

DDL: I_MAINTENANCEORDERCONFIRMATION SQL: IMAINTORDCONF Type: view BASIC Package: IOCF

Maintenance Order Confirmation

I_MaintenanceOrderConfirmation is a Basic CDS View that provides data about "Maintenance Order Confirmation" in SAP S/4HANA. It reads from 1 data source (P_MaintenanceOrderConfirmation) and exposes 82 fields with key fields MaintOrderConf, MaintOrderConfCntrValue. It has 20 associations to related views. Part of development package IOCF.

Data Sources (1)

SourceAliasJoin Type
P_MaintenanceOrderConfirmation P_MaintenanceOrderConfirmation from

Associations (20)

CardinalityTargetAliasCondition
[0..*] I_MaintOrderConfGoodsMovement _MaintOrderConfGoodsMovement _MaintOrderConfGoodsMovement.MaintOrderConf = $projection.MaintOrderConf and _MaintOrderConfGoodsMovement.MaintOrderConfCntrValue = $projection.MaintOrderConfCntrValue
[0..1] I_WorkCenter _ActualWorkCenter $projection.WorkCenterInternalID = _ActualWorkCenter.WorkCenterInternalID and _ActualWorkCenter.WorkCenterTypeCode = 'A'
[0..1] I_MaintenanceOrder _MaintenanceOrder _MaintenanceOrder.MaintenanceOrder = $projection.MaintenanceOrder
[0..1] I_ConfirmationGroup _ConfirmationGroup _ConfirmationGroup.ConfirmationGroup = $projection.MaintOrderConf
[0..1] I_User _EnteredByUser _EnteredByUser.UserID = $projection.EnteredByUser
[0..1] I_User _LastChangeByUser _LastChangeByUser.UserID = $projection.LastChangedByUser
[0..1] I_Indicator _IsReversed _IsReversed.IndicatorValue = $projection.IsReversed
[0..1] I_Indicator _IsReversal _IsReversal.IndicatorValue = $projection.IsReversal
[0..1] I_Indicator _IsFinalConfirmation _IsFinalConfirmation.IndicatorValue = $projection.IsFinalConfirmation
[0..1] I_Indicator _OpenReservationsIsCleared _OpenReservationsIsCleared.IndicatorValue = $projection.OpenReservationsIsCleared
[0..1] I_Indicator _NoFurtherWorkQuantityIsExpd _NoFurtherWorkQuantityIsExpd.IndicatorValue = $projection.NoFurtherWorkQuantityIsExpd
[0..1] I_Indicator _LongTextExists _LongTextExists.IndicatorValue = $projection.LongTextExists
[0..1] I_VarianceReason _VarianceReason $projection.Plant = _VarianceReason.Plant and $projection.VarianceReasonCode = _VarianceReason.VarianceReasonCode
[0..1] I_WorkforcePerson _PersonnelName $projection.PersonnelNumber = _PersonnelName.PersonExternalID
[0..1] I_PersonWorkAgreement_1 _PersonResponsible $projection.PersonnelNumber = _PersonResponsible.PersonWorkAgreement
[0..1] I_MaintenanceOrderOperation _MaintenanceOrderOperation _MaintenanceOrderOperation.MaintenanceOrder = $projection.MaintenanceOrder and _MaintenanceOrderOperation.MaintOrderOperationCounter = $projection.MaintOrderOperationCounter
[0..1] I_UnitOfMeasure _ActualWorkExtQuantityUnit _ActualWorkExtQuantityUnit.UnitOfMeasure = $projection.ActualWorkExternalQuantityUnit
[0..1] I_UnitOfMeasure _RemainingWorkExtQuantityUnit _RemainingWorkExtQuantityUnit.UnitOfMeasure = $projection.RemainingWorkExtQuantityUnit
[0..1] I_OrderConfLongText _OrderConfLongText _OrderConfLongText.ConfirmationGroup = $projection.MaintOrderConf and _OrderConfLongText.OrderConfirmation = $projection.MaintOrderConfCntrValue -- Extensions, do not expose as association:
[0..1] E_MaintenanceOrderConfirmation _MaintOrdConfExtension $projection.MaintOrderConf = _MaintOrdConfExtension.MaintOrderConf and $projection.MaintOrderConfCntrValue = _MaintOrdConfExtension.MaintOrderConfCntrValue

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IMAINTORDCONF view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Maintenance Order Confirmation view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey MaintOrderConfCntrValue view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.createEnabled false view
ObjectModel.deleteEnabled false view
ObjectModel.updateEnabled false view

Fields (82)

KeyFieldSource TableSource FieldDescription
KEY MaintOrderConf P_MaintenanceOrderConfirmation MaintOrderConf Return Agmt
KEY MaintOrderConfCntrValue P_MaintenanceOrderConfirmation MaintOrderConfCntrValue Counter
MaintOrderConfirmationEntryDte P_MaintenanceOrderConfirmation MaintOrderConfirmationEntryDte
MaintOrderOperationCounter P_MaintenanceOrderConfirmation MaintOrderOperationCounter Counter
EnteredByUser P_MaintenanceOrderConfirmation EnteredByUser
LastChangeDate P_MaintenanceOrderConfirmation LastChangeDate Time Stamp
LastChangedByUser P_MaintenanceOrderConfirmation LastChangedByUser User Name
PostingDate P_MaintenanceOrderConfirmation PostingDate Posting Date for GR
WorkCenterInternalID P_MaintenanceOrderConfirmation WorkCenterInternalID Work Center
ConfirmationText P_MaintenanceOrderConfirmation ConfirmationText Short Text
Language P_MaintenanceOrderConfirmation Language Report Text Language
LongTextExists P_MaintenanceOrderConfirmation LongTextExists LgText ID
ActualWorkQuantity P_MaintenanceOrderConfirmation ActualWorkQuantity Actual work
ActualWorkQuantityUnit P_MaintenanceOrderConfirmation ActualWorkQuantityUnit Unit for work
ActivityType P_MaintenanceOrderConfirmation ActivityType Activity Type
ActualDuration P_MaintenanceOrderConfirmation ActualDuration Actual Duration
ActualDurationUnit P_MaintenanceOrderConfirmation ActualDurationUnit Un/actual dur.
EmployeeWageType P_MaintenanceOrderConfirmation EmployeeWageType Wage type
ConfirmationYieldQuantity P_MaintenanceOrderConfirmation ConfirmationYieldQuantity Yield Quantity
ConfirmationScrapQuantity P_MaintenanceOrderConfirmation ConfirmationScrapQuantity Scrap Quantity
ConfirmationUnit P_MaintenanceOrderConfirmation ConfirmationUnit Unit of Measure
VarianceReasonCode P_MaintenanceOrderConfirmation VarianceReasonCode Reason
PersonnelNumber P_MaintenanceOrderConfirmation PersonnelNumber Personnel No.
OperationConfirmedStartDate P_MaintenanceOrderConfirmation OperationConfirmedStartDate Start Execution
OperationConfirmedStartTime P_MaintenanceOrderConfirmation OperationConfirmedStartTime
MaintOrderRoutingNumber P_MaintenanceOrderConfirmation MaintOrderRoutingNumber Plan No.f.Oper.
OperationConfirmedEndDate P_MaintenanceOrderConfirmation OperationConfirmedEndDate Finish Execut.
OperationConfirmedEndTime P_MaintenanceOrderConfirmation OperationConfirmedEndTime
clientNULLasMaintOrdOpWrkExecEndDateTime
ActyConfFcstdEndDate P_MaintenanceOrderConfirmation ActyConfFcstdEndDate Forecast finish
ActyConfFcstdEndTime P_MaintenanceOrderConfirmation ActyConfFcstdEndTime
clientNULLasMaintOrdOpFcstdEndDateTime
IsFinalConfirmation P_MaintenanceOrderConfirmation IsFinalConfirmation
OpenReservationsIsCleared P_MaintenanceOrderConfirmation OpenReservationsIsCleared Open Reservs.
MaintenanceOrder P_MaintenanceOrderConfirmation MaintenanceOrder Order
MaintenanceOrderOperation P_MaintenanceOrderConfirmation MaintenanceOrderOperation Suboperation
MaintenanceOrderSubOperation P_MaintenanceOrderConfirmation MaintenanceOrderSubOperation Suboperation
RemainingWorkQuantity P_MaintenanceOrderConfirmation RemainingWorkQuantity Remaining work
RemainingWorkQuantityUnit P_MaintenanceOrderConfirmation RemainingWorkQuantityUnit Unit Remng Work
NoFurtherWorkQuantityIsExpd P_MaintenanceOrderConfirmation NoFurtherWorkQuantityIsExpd No Remain. Work
IsReversed P_MaintenanceOrderConfirmation IsReversed Reversed?
IsReversal P_MaintenanceOrderConfirmation IsReversal Reversal doc.
CancldMaintOrderConfCntrValue P_MaintenanceOrderConfirmation CancldMaintOrderConfCntrValue Cancelled Conf.
ConfirmationReworkQuantity P_MaintenanceOrderConfirmation ConfirmationReworkQuantity Rework Quantity
MaintOrderConfirmationEntryTme P_MaintenanceOrderConfirmation MaintOrderConfirmationEntryTme
AccountingIndicatorCode P_MaintenanceOrderConfirmation AccountingIndicatorCode AcctIndicator
EnteredByExternalUser P_MaintenanceOrderConfirmation EnteredByExternalUser Created by
ConfirmationExternalEntryDate P_MaintenanceOrderConfirmation ConfirmationExternalEntryDate
ConfirmationExternalEntryTime P_MaintenanceOrderConfirmation ConfirmationExternalEntryTime
ActualWorkExternalQuantityUnit ActualWorkExternalQuantityUnit Unit for work
RemainingWorkExtQuantityUnit RemainingWorkExtQuantityUnit Unit for work
Plant P_MaintenanceOrderConfirmation Plant Valuation Area
FactoryCalendar
MaintOrderOperationInternalID P_MaintenanceOrderConfirmation MaintOrderOperationInternalID Object number
CapacityInternalID P_MaintenanceOrderConfirmation CapacityInternalID Capacity ID
EmployeeWageGroup P_MaintenanceOrderConfirmation EmployeeWageGroup Wage Group
NmbrOfMaintTechnicianCapSplits P_MaintenanceOrderConfirmation NmbrOfMaintTechnicianCapSplits Splitting
MaterialDocument P_MaintenanceOrderConfirmation MaterialDocument Material Doc.
AddressTimeZone AddressTimeZone Time Zone
UserEnteredTimeZone
PlantTimeZone
_Plant _Plant
_MaintOrderConfGoodsMovement _MaintOrderConfGoodsMovement
_Language _Language
_ActualWorkCenter _ActualWorkCenter
_MaintenanceOrder _MaintenanceOrder
_MaintenanceOrderOperation _MaintenanceOrderOperation
_ConfirmationGroup _ConfirmationGroup
_EnteredByUser _EnteredByUser
_LastChangeByUser _LastChangeByUser
_PersonnelName _PersonnelName
_LongTextExists _LongTextExists
_IsReversed _IsReversed
_IsReversal _IsReversal
_IsFinalConfirmation _IsFinalConfirmation
_OpenReservationsIsCleared _OpenReservationsIsCleared
_NoFurtherWorkQuantityIsExpd _NoFurtherWorkQuantityIsExpd
_VarianceReason _VarianceReason
_ActualWorkExtQuantityUnit _ActualWorkExtQuantityUnit
_RemainingWorkExtQuantityUnit _RemainingWorkExtQuantityUnit
_PersonResponsible _PersonResponsible
_OrderConfLongText _OrderConfLongText

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_MaintenanceOrderConfirmation.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: IMAINTORDCONF

CREATE VIEW I_MaintenanceOrderConfirmation AS
SELECT
  P_MaintenanceOrderConfirmation.MaintOrderConf AS MaintOrderConf,
  P_MaintenanceOrderConfirmation.MaintOrderConfCntrValue AS MaintOrderConfCntrValue,
  P_MaintenanceOrderConfirmation.MaintOrderConfirmationEntryDte AS MaintOrderConfirmationEntryDte,
  P_MaintenanceOrderConfirmation.MaintOrderOperationCounter AS MaintOrderOperationCounter,
  P_MaintenanceOrderConfirmation.EnteredByUser AS EnteredByUser,
  P_MaintenanceOrderConfirmation.LastChangeDate AS LastChangeDate,
  P_MaintenanceOrderConfirmation.LastChangedByUser AS LastChangedByUser,
  P_MaintenanceOrderConfirmation.PostingDate AS PostingDate,
  P_MaintenanceOrderConfirmation.WorkCenterInternalID AS WorkCenterInternalID,
  P_MaintenanceOrderConfirmation.ConfirmationText AS ConfirmationText,
  P_MaintenanceOrderConfirmation.Language AS Language,
  P_MaintenanceOrderConfirmation.LongTextExists AS LongTextExists,
  P_MaintenanceOrderConfirmation.ActualWorkQuantity AS ActualWorkQuantity,
  P_MaintenanceOrderConfirmation.ActualWorkQuantityUnit AS ActualWorkQuantityUnit,
  P_MaintenanceOrderConfirmation.ActivityType AS ActivityType,
  P_MaintenanceOrderConfirmation.ActualDuration AS ActualDuration,
  P_MaintenanceOrderConfirmation.ActualDurationUnit AS ActualDurationUnit,
  P_MaintenanceOrderConfirmation.EmployeeWageType AS EmployeeWageType,
  P_MaintenanceOrderConfirmation.ConfirmationYieldQuantity AS ConfirmationYieldQuantity,
  P_MaintenanceOrderConfirmation.ConfirmationScrapQuantity AS ConfirmationScrapQuantity,
  P_MaintenanceOrderConfirmation.ConfirmationUnit AS ConfirmationUnit,
  P_MaintenanceOrderConfirmation.VarianceReasonCode AS VarianceReasonCode,
  P_MaintenanceOrderConfirmation.PersonnelNumber AS PersonnelNumber,
  P_MaintenanceOrderConfirmation.OperationConfirmedStartDate AS OperationConfirmedStartDate,
  P_MaintenanceOrderConfirmation.OperationConfirmedStartTime AS OperationConfirmedStartTime,
  P_MaintenanceOrderConfirmation.MaintOrderRoutingNumber AS MaintOrderRoutingNumber,
  P_MaintenanceOrderConfirmation.OperationConfirmedEndDate AS OperationConfirmedEndDate,
  P_MaintenanceOrderConfirmation.OperationConfirmedEndTime AS OperationConfirmedEndTime,
  dats_tims_to_tstmp( P_MaintenanceOrderConfirmation.OperationConfirmedEndDate, P_MaintenanceOrderConfirmation.OperationConfirmedEndTime, AddressTimeZone, $session.client, 'NULL' ) as MaintOrdOpWrkExecEndDateTime AS clientNULLasMaintOrdOpWrkExecEndDateTime,
  P_MaintenanceOrderConfirmation.ActyConfFcstdEndDate AS ActyConfFcstdEndDate,
  P_MaintenanceOrderConfirmation.ActyConfFcstdEndTime AS ActyConfFcstdEndTime,
  dats_tims_to_tstmp( P_MaintenanceOrderConfirmation.ActyConfFcstdEndDate, P_MaintenanceOrderConfirmation.ActyConfFcstdEndTime, AddressTimeZone, $session.client, 'NULL' ) as MaintOrdOpFcstdEndDateTime AS clientNULLasMaintOrdOpFcstdEndDateTime,
  P_MaintenanceOrderConfirmation.IsFinalConfirmation AS IsFinalConfirmation,
  P_MaintenanceOrderConfirmation.OpenReservationsIsCleared AS OpenReservationsIsCleared,
  P_MaintenanceOrderConfirmation.MaintenanceOrder AS MaintenanceOrder,
  P_MaintenanceOrderConfirmation.MaintenanceOrderOperation AS MaintenanceOrderOperation,
  P_MaintenanceOrderConfirmation.MaintenanceOrderSubOperation AS MaintenanceOrderSubOperation,
  P_MaintenanceOrderConfirmation.RemainingWorkQuantity AS RemainingWorkQuantity,
  P_MaintenanceOrderConfirmation.RemainingWorkQuantityUnit AS RemainingWorkQuantityUnit,
  P_MaintenanceOrderConfirmation.NoFurtherWorkQuantityIsExpd AS NoFurtherWorkQuantityIsExpd,
  P_MaintenanceOrderConfirmation.IsReversed AS IsReversed,
  P_MaintenanceOrderConfirmation.IsReversal AS IsReversal,
  P_MaintenanceOrderConfirmation.CancldMaintOrderConfCntrValue AS CancldMaintOrderConfCntrValue,
  P_MaintenanceOrderConfirmation.ConfirmationReworkQuantity AS ConfirmationReworkQuantity,
  P_MaintenanceOrderConfirmation.MaintOrderConfirmationEntryTme AS MaintOrderConfirmationEntryTme,
  P_MaintenanceOrderConfirmation.AccountingIndicatorCode AS AccountingIndicatorCode,
  P_MaintenanceOrderConfirmation.EnteredByExternalUser AS EnteredByExternalUser,
  P_MaintenanceOrderConfirmation.ConfirmationExternalEntryDate AS ConfirmationExternalEntryDate,
  P_MaintenanceOrderConfirmation.ConfirmationExternalEntryTime AS ConfirmationExternalEntryTime,
  ActualWorkExternalQuantityUnit,
  RemainingWorkExtQuantityUnit,
  P_MaintenanceOrderConfirmation.Plant AS Plant,
  P_MaintenanceOrderConfirmation._Plant.FactoryCalendar AS FactoryCalendar,
  P_MaintenanceOrderConfirmation.MaintOrderOperationInternalID AS MaintOrderOperationInternalID,
  P_MaintenanceOrderConfirmation.CapacityInternalID AS CapacityInternalID,
  P_MaintenanceOrderConfirmation.EmployeeWageGroup AS EmployeeWageGroup,
  P_MaintenanceOrderConfirmation.NmbrOfMaintTechnicianCapSplits AS NmbrOfMaintTechnicianCapSplits,
  P_MaintenanceOrderConfirmation.MaterialDocument AS MaterialDocument,
  AddressTimeZone,
  cast( abap_user_timezone( $session.user,$session.client,'NULL' ) as tzonso preserving type ) AS UserEnteredTimeZone,
  _Plant._OrganizationAddress[1:AddressRepresentationCode = ''].AddressTimeZone AS PlantTimeZone
FROM P_MaintenanceOrderConfirmation
LEFT OUTER JOIN I_MaintOrderConfGoodsMovement AS _MaintOrderConfGoodsMovement ON _MaintOrderConfGoodsMovement.MaintOrderConf = MaintOrderConf AND _MaintOrderConfGoodsMovement.MaintOrderConfCntrValue = MaintOrderConfCntrValue  -- association [0..*]
LEFT OUTER JOIN I_WorkCenter AS _ActualWorkCenter ON WorkCenterInternalID = _ActualWorkCenter.WorkCenterInternalID AND _ActualWorkCenter.WorkCenterTypeCode = 'A'  -- association [0..1]
LEFT OUTER JOIN I_MaintenanceOrder AS _MaintenanceOrder ON _MaintenanceOrder.MaintenanceOrder = MaintenanceOrder  -- association [0..1]
LEFT OUTER JOIN I_ConfirmationGroup AS _ConfirmationGroup ON _ConfirmationGroup.ConfirmationGroup = MaintOrderConf  -- association [0..1]
LEFT OUTER JOIN I_User AS _EnteredByUser ON _EnteredByUser.UserID = EnteredByUser  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangeByUser ON _LastChangeByUser.UserID = LastChangedByUser  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _IsReversed ON _IsReversed.IndicatorValue = IsReversed  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _IsReversal ON _IsReversal.IndicatorValue = IsReversal  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _IsFinalConfirmation ON _IsFinalConfirmation.IndicatorValue = IsFinalConfirmation  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _OpenReservationsIsCleared ON _OpenReservationsIsCleared.IndicatorValue = OpenReservationsIsCleared  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _NoFurtherWorkQuantityIsExpd ON _NoFurtherWorkQuantityIsExpd.IndicatorValue = NoFurtherWorkQuantityIsExpd  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _LongTextExists ON _LongTextExists.IndicatorValue = LongTextExists  -- association [0..1]
LEFT OUTER JOIN I_VarianceReason AS _VarianceReason ON Plant = _VarianceReason.Plant AND VarianceReasonCode = _VarianceReason.VarianceReasonCode  -- association [0..1]
LEFT OUTER JOIN I_WorkforcePerson AS _PersonnelName ON PersonnelNumber = _PersonnelName.PersonExternalID  -- association [0..1]
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS _PersonResponsible ON PersonnelNumber = _PersonResponsible.PersonWorkAgreement  -- association [0..1]
LEFT OUTER JOIN I_MaintenanceOrderOperation AS _MaintenanceOrderOperation ON _MaintenanceOrderOperation.MaintenanceOrder = MaintenanceOrder AND _MaintenanceOrderOperation.MaintOrderOperationCounter = MaintOrderOperationCounter  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _ActualWorkExtQuantityUnit ON _ActualWorkExtQuantityUnit.UnitOfMeasure = ActualWorkExternalQuantityUnit  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _RemainingWorkExtQuantityUnit ON _RemainingWorkExtQuantityUnit.UnitOfMeasure = RemainingWorkExtQuantityUnit  -- association [0..1]
LEFT OUTER JOIN I_OrderConfLongText AS _OrderConfLongText ON _OrderConfLongText.ConfirmationGroup = MaintOrderConf AND _OrderConfLongText.OrderConfirmation = MaintOrderConfCntrValue  -- association [0..1]
LEFT OUTER JOIN E_MaintenanceOrderConfirmation AS _MaintOrdConfExtension ON MaintOrderConf = _MaintOrdConfExtension.MaintOrderConf AND MaintOrderConfCntrValue = _MaintOrdConfExtension.MaintOrderConfCntrValue  -- association [0..1]
;