I_MaintOrderInspectionLot

DDL: I_MAINTORDERINSPECTIONLOT SQL: IMAINTORDINSPLOT Type: view COMPOSITE

Maintenance Order Inspection Lot

I_MaintOrderInspectionLot (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Asset Management

I_MaintOrderInspectionLot is a Composite CDS View that provides data about "Maintenance Order Inspection Lot" in SAP S/4HANA. It reads from 3 data sources (I_InspectionLot, I_MaintenanceChecklist, I_MaintenanceOrder) and exposes 74 fields with key fields MaintenanceOrder, InspectionLot. It has 12 associations to related views.

SAP Help Documentation

CategoryCDS Views for Maintenance Management
Purpose
This CDS view retrieves records of inspection lot related to maintenance order. This CDS view provides the data to answer the following business questions: How many inspection lots related to maintenance orders are in the system? What is the status of the inspection lot? What administrative data is associated with the creation or change of the inspection lot? What are the inspection lot's origin and type? What technical object and maintenance plant are associated with it? Which customer or supplier is associated with the inspection lot? Does the inspection lot have a usage decision? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: I_TCODE (PM: Transaction Code) I_AUART (PM: Order Type) I_BEGRP (PM: Authorization Group) I_IWERK (PM: Maintenance Planning Plant) I_INGRP (PM: Maintenance Planner Group) I_SWERK (PM: Maintenance Plant) I_KOSTL (PM: Cost Centers)

Structure
Important Fields Important fields in this view include the following: Field Name Description MaintenanceOrder Order Number InspectionLot Inspection Lot Number Plant Inspection Lot Plant InspectionLotType Inspection Lot Type InspectionLotOrigin Inspection Lot Origin MaintenanceOrderType Maintenance Order Type Equipment Equipment Number FunctionalLocation Functional Location Name Customer Customer Name Supplier Supplier Name MainChecklistIsDeactivated Deactivated InspectionLotHasUsageDecision Usage Decision Made

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessAsset Management
Application ComponentPM-WOC-CL
CapabilitiesData Source for Defining CDS Entities, Association Target for Defining CDS Entities
PackageAsset Management for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view retrieves records of inspection lot related to maintenance order.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>How many inspection lots related to maintenance orders are in the system?</p></li> <li><p>What is the status of the inspection lot?</p></li> <li><p>What administrative data is associated with the creation or change of the inspection lot?</p></li> <li><p>What are the inspection lot's origin and type? What technical object and maintenance plant are associated with it?</p></li> <li><p>Which customer or supplier is associated with the inspection lot?</p></li> <li><p>Does the inspection lot have a usage decision?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (3)

SourceAliasJoin Type
I_InspectionLot _InspectionLot inner
I_MaintenanceChecklist _MaintenanceChecklist inner
I_MaintenanceOrder _MaintenanceOrder from

Associations (12)

CardinalityTargetAliasCondition
[0..1] I_InspLotUsageDecision _InspLotUsageDecision $projection.InspectionLot = _InspLotUsageDecision.InspectionLot
[0..*] I_InspectionOperation _InspectionOperation $projection.InspectionLot = _InspectionOperation.InspectionLot
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_InspectionLotType _InspectionLotType $projection.InspectionLotType = _InspectionLotType.InspectionLotType
[1..1] I_InspectionLotOrigin _InspectionLotOrigin $projection.InspectionLotOrigin = _InspectionLotOrigin.InspectionLotOrigin
[0..1] I_BillOfOperationsType _BillOfOperationsType $projection.BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType
[0..1] I_BillOfOperationsGroup _BillOfOperationsGroup $projection.BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup
[0..1] I_Customer _InspLotSelectionCustomer $projection.InspLotSelectionCustomer = _InspLotSelectionCustomer.Customer
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_Supplier _InspLotSelectionSupplier $projection.InspLotSelectionSupplier = _InspLotSelectionSupplier.Supplier
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[1..1] I_Indicator _InspectionLotHasUsgeDcsn $projection.InspectionLotHasUsageDecision = _InspectionLotHasUsgeDcsn.IndicatorValue

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IMAINTORDINSPLOT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Maintenance Order Inspection Lot view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Metadata.ignorePropagatedAnnotations true view

Fields (74)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceOrder I_MaintenanceOrder MaintenanceOrder Order Number
KEY InspectionLot I_InspectionLot InspectionLot Inspection Lot Number
Material I_InspectionLot Material Material Number
Plant I_InspectionLot Plant Valuation Area
InspectionLotType I_InspectionLot InspectionLotType Inspection Type
InspectionLotOrigin I_InspectionLot InspectionLotOrigin Inspection Lot Origin
StatusObject I_InspectionLot StatusObject Status Object
StatusObjectCategory I_InspectionLot StatusObjectCategory Picking area
StatusProfile I_InspectionLot StatusProfile Status Profile
GoodsReceiptIsMovedToBlkdStock I_InspectionLot GoodsReceiptIsMovedToBlkdStock GR Blocked Stock
InspectionLotIsSkipped I_InspectionLot InspectionLotIsSkipped Skip Lot
InspLotCreatedOnLocalDate I_InspectionLot InspLotCreatedOnLocalDate Date in Time Zone Where Lot Created
InspLotCreatedOnLocalTime I_InspectionLot InspLotCreatedOnLocalTime Time in Time Zone Where Lot Created
InspectionLotCreatedBy I_InspectionLot InspectionLotCreatedBy Name of User Who Created the Data Record
InspectionLotCreatedOn I_InspectionLot InspectionLotCreatedOn System Date on Which Data Record Was Created
InspectionLotCreatedOnTime I_InspectionLot InspectionLotCreatedOnTime System Time of Creation
InspectionLotChangedBy I_InspectionLot InspectionLotChangedBy Name of User Who Last Changed Data Record
InspectionLotChangeDate I_InspectionLot InspectionLotChangeDate System Date on Which Data Record Was Changed
InspectionLotChangeTime I_InspectionLot InspectionLotChangeTime System Time of Change
ChangedDateTime I_InspectionLot ChangedDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
InspectionLotStartDate I_InspectionLot InspectionLotStartDate Start Date of Inspection in Local Time Zone
InspectionLotStartTime I_InspectionLot InspectionLotStartTime Inspection Started At
InspectionLotEndDate I_InspectionLot InspectionLotEndDate End Date of Inspection in Local Time Zone
InspectionLotEndTime I_InspectionLot InspectionLotEndTime Inspection Ended At
BillOfOperationsType I_InspectionLot BillOfOperationsType Bill of Operations Type
BillOfOperationsGroup I_InspectionLot BillOfOperationsGroup Bill of Operations Group
BillOfOperationsUsage I_InspectionLot BillOfOperationsUsage Bill of Operations Usage
BillOfOperationsVariant I_InspectionLot BillOfOperationsVariant Bill of Operations Group Counter
InspLotSelBillOfOperationsUsge I_InspectionLot InspLotSelBillOfOperationsUsge Task List Usage
InspLotSelectionValidFromDate I_InspectionLot InspLotSelectionValidFromDate Key Date for Selecting Records or Changing Task Lists
ManufacturingOrder I_InspectionLot ManufacturingOrder Order Number (Production Order)
OrderInternalBillOfOperations I_InspectionLot OrderInternalBillOfOperations Routing number of operations in the order
InspLotSelectionCustomer I_InspectionLot InspLotSelectionCustomer Account number of customer
Customer I_InspectionLot Customer Customer (Ship-to Party)
InspLotSelectionSupplier I_InspectionLot InspLotSelectionSupplier Supplier's Account Number
Supplier I_InspectionLot Supplier Supplier's Account Number
Language I_InspectionLot Language Report Text Language
InspectionLotText I_InspectionLot InspectionLotText Inspection Lot Text
InspectionLotObjectText I_InspectionLot InspectionLotObjectText Short Text for Inspection Object
InspLotNmbrAddlRecordedCharc I_InspectionLot InspLotNmbrAddlRecordedCharc Number of Characteristics Recorded Additionally
InspLotNmbrOpenShortTermCharc I_InspectionLot InspLotNmbrOpenShortTermCharc Number of Outstanding Short-Term Chars That Require Confirm.
InspLotNmbrOpenLongTermCharc I_InspectionLot InspLotNmbrOpenLongTermCharc Open Long-Term Characteristics
InspLotUsageDecisionTool I_InspectionLot InspLotUsageDecisionTool Usage Decision Mode (UD Origin)
InspectionLotHasUsageDecision I_InspectionLot InspectionLotHasUsageDecision Usage Decision Made
MaintenanceOrderType I_MaintenanceOrder MaintenanceOrderType Order Type
MaintenancePlanningPlant I_MaintenanceOrder MaintenancePlanningPlant Maintenance Planning Plant
MaintenancePlannerGroup I_MaintenanceOrder MaintenancePlannerGroup Planner Group for Customer Service and Plant Maintenance
MaintObjectLocAcctAssgmtNmbr I_MaintenanceOrder MaintObjectLocAcctAssgmtNmbr Location and account assignment for technical object
AuthorizationGroup Technical Object Authorization Group
MaintenanceOrderDesc I_MaintenanceOrder MaintenanceOrderDesc Description
MaintBusinessSubobjectType I_MaintenanceChecklist MaintBusinessSubobjectType Checklists: Sub Object Type
MaintenanceBusinessSubobject I_MaintenanceChecklist MaintenanceBusinessSubobject Checklists: Sub Object Key ID
MaintChecklistTemplateType I_MaintenanceChecklist MaintChecklistTemplateType Checklists: Checklist Template Object Type
MaintenanceChecklistTemplate I_MaintenanceChecklist MaintenanceChecklistTemplate Checklists: Checklist Template Object Key ID
Equipment I_MaintenanceChecklist Equipment Equipment Number
FunctionalLocation Functional Location
MaintChklstAddlInformationText I_MaintenanceChecklist MaintChklstAddlInformationText Checklists: Status information
MainChecklistIsDeactivated I_MaintenanceChecklist MainChecklistIsDeactivated Checklists: Deactivated indicator
MaintenanceBusinessObjectType I_MaintenanceChecklist MaintenanceBusinessObjectType Checklists: Object Type
MaintenanceChecklistType I_MaintenanceChecklist MaintenanceChecklistType Checklists: Checklist Object Type
MaintChklstAdditionalObjectKey I_MaintenanceChecklist MaintChklstAdditionalObjectKey Checklists: Additional Object Key
_InspLotUsageDecision _InspLotUsageDecision
_InspectionOperation _InspectionOperation
_Plant _Plant
_InspectionLotType _InspectionLotType
_InspectionLotOrigin _InspectionLotOrigin
_BillOfOperationsType _BillOfOperationsType
_BillOfOperationsGroup _BillOfOperationsGroup
_InspLotSelectionCustomer _InspLotSelectionCustomer
_Customer _Customer
_Supplier _Supplier
_InspLotSelectionSupplier _InspLotSelectionSupplier
_InspectionLotHasUsgeDcsn _InspectionLotHasUsgeDcsn
_LocationAccountAssignment I_MaintenanceOrder _LocationAccountAssignment

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_MaintOrderInspectionLot.
-- 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: IMAINTORDINSPLOT

CREATE VIEW I_MaintOrderInspectionLot AS
SELECT
  _MaintenanceOrder.MaintenanceOrder AS MaintenanceOrder,
  _InspectionLot.InspectionLot AS InspectionLot,
  _InspectionLot.Material AS Material,
  _InspectionLot.Plant AS Plant,
  _InspectionLot.InspectionLotType AS InspectionLotType,
  _InspectionLot.InspectionLotOrigin AS InspectionLotOrigin,
  _InspectionLot.StatusObject AS StatusObject,
  _InspectionLot.StatusObjectCategory AS StatusObjectCategory,
  _InspectionLot.StatusProfile AS StatusProfile,
  _InspectionLot.GoodsReceiptIsMovedToBlkdStock AS GoodsReceiptIsMovedToBlkdStock,
  _InspectionLot.InspectionLotIsSkipped AS InspectionLotIsSkipped,
  _InspectionLot.InspLotCreatedOnLocalDate AS InspLotCreatedOnLocalDate,
  _InspectionLot.InspLotCreatedOnLocalTime AS InspLotCreatedOnLocalTime,
  _InspectionLot.InspectionLotCreatedBy AS InspectionLotCreatedBy,
  _InspectionLot.InspectionLotCreatedOn AS InspectionLotCreatedOn,
  _InspectionLot.InspectionLotCreatedOnTime AS InspectionLotCreatedOnTime,
  _InspectionLot.InspectionLotChangedBy AS InspectionLotChangedBy,
  _InspectionLot.InspectionLotChangeDate AS InspectionLotChangeDate,
  _InspectionLot.InspectionLotChangeTime AS InspectionLotChangeTime,
  _InspectionLot.ChangedDateTime AS ChangedDateTime,
  _InspectionLot.InspectionLotStartDate AS InspectionLotStartDate,
  _InspectionLot.InspectionLotStartTime AS InspectionLotStartTime,
  _InspectionLot.InspectionLotEndDate AS InspectionLotEndDate,
  _InspectionLot.InspectionLotEndTime AS InspectionLotEndTime,
  _InspectionLot.BillOfOperationsType AS BillOfOperationsType,
  _InspectionLot.BillOfOperationsGroup AS BillOfOperationsGroup,
  _InspectionLot.BillOfOperationsUsage AS BillOfOperationsUsage,
  _InspectionLot.BillOfOperationsVariant AS BillOfOperationsVariant,
  _InspectionLot.InspLotSelBillOfOperationsUsge AS InspLotSelBillOfOperationsUsge,
  _InspectionLot.InspLotSelectionValidFromDate AS InspLotSelectionValidFromDate,
  _InspectionLot.ManufacturingOrder AS ManufacturingOrder,
  _InspectionLot.OrderInternalBillOfOperations AS OrderInternalBillOfOperations,
  _InspectionLot.InspLotSelectionCustomer AS InspLotSelectionCustomer,
  _InspectionLot.Customer AS Customer,
  _InspectionLot.InspLotSelectionSupplier AS InspLotSelectionSupplier,
  _InspectionLot.Supplier AS Supplier,
  _InspectionLot.Language AS Language,
  _InspectionLot.InspectionLotText AS InspectionLotText,
  _InspectionLot.InspectionLotObjectText AS InspectionLotObjectText,
  _InspectionLot.InspLotNmbrAddlRecordedCharc AS InspLotNmbrAddlRecordedCharc,
  _InspectionLot.InspLotNmbrOpenShortTermCharc AS InspLotNmbrOpenShortTermCharc,
  _InspectionLot.InspLotNmbrOpenLongTermCharc AS InspLotNmbrOpenLongTermCharc,
  _InspectionLot.InspLotUsageDecisionTool AS InspLotUsageDecisionTool,
  _InspectionLot.InspectionLotHasUsageDecision AS InspectionLotHasUsageDecision,
  _MaintenanceOrder.MaintenanceOrderType AS MaintenanceOrderType,
  _MaintenanceOrder.MaintenancePlanningPlant AS MaintenancePlanningPlant,
  _MaintenanceOrder.MaintenancePlannerGroup AS MaintenancePlannerGroup,
  _MaintenanceOrder.MaintObjectLocAcctAssgmtNmbr AS MaintObjectLocAcctAssgmtNmbr,
  _MaintenanceOrder._Equipment.AuthorizationGroup AS AuthorizationGroup,
  _MaintenanceOrder.MaintenanceOrderDesc AS MaintenanceOrderDesc,
  _MaintenanceChecklist.MaintBusinessSubobjectType AS MaintBusinessSubobjectType,
  _MaintenanceChecklist.MaintenanceBusinessSubobject AS MaintenanceBusinessSubobject,
  _MaintenanceChecklist.MaintChecklistTemplateType AS MaintChecklistTemplateType,
  _MaintenanceChecklist.MaintenanceChecklistTemplate AS MaintenanceChecklistTemplate,
  _MaintenanceChecklist.Equipment AS Equipment,
  cast ( _MaintenanceChecklist.FunctionalLocation as vdm_eam_tplnr preserving type ) AS FunctionalLocation,
  _MaintenanceChecklist.MaintChklstAddlInformationText AS MaintChklstAddlInformationText,
  _MaintenanceChecklist.MainChecklistIsDeactivated AS MainChecklistIsDeactivated,
  _MaintenanceChecklist.MaintenanceBusinessObjectType AS MaintenanceBusinessObjectType,
  _MaintenanceChecklist.MaintenanceChecklistType AS MaintenanceChecklistType,
  _MaintenanceChecklist.MaintChklstAdditionalObjectKey AS MaintChklstAdditionalObjectKey,
  _MaintenanceOrder._LocationAccountAssignment AS _LocationAccountAssignment
FROM I_MaintenanceOrder AS _MaintenanceOrder
INNER JOIN I_MaintenanceChecklist AS _MaintenanceChecklist ON /* join condition not captured in parsed metadata */
INNER JOIN I_InspectionLot AS _InspectionLot ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_InspLotUsageDecision AS _InspLotUsageDecision ON InspectionLot = _InspLotUsageDecision.InspectionLot  -- association [0..1]
LEFT OUTER JOIN I_InspectionOperation AS _InspectionOperation ON InspectionLot = _InspectionOperation.InspectionLot  -- association [0..*]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_InspectionLotType AS _InspectionLotType ON InspectionLotType = _InspectionLotType.InspectionLotType  -- association [1..1]
LEFT OUTER JOIN I_InspectionLotOrigin AS _InspectionLotOrigin ON InspectionLotOrigin = _InspectionLotOrigin.InspectionLotOrigin  -- association [1..1]
LEFT OUTER JOIN I_BillOfOperationsType AS _BillOfOperationsType ON BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType  -- association [0..1]
LEFT OUTER JOIN I_BillOfOperationsGroup AS _BillOfOperationsGroup ON BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _InspLotSelectionCustomer ON InspLotSelectionCustomer = _InspLotSelectionCustomer.Customer  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _InspLotSelectionSupplier ON InspLotSelectionSupplier = _InspLotSelectionSupplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _InspectionLotHasUsgeDcsn ON InspectionLotHasUsageDecision = _InspectionLotHasUsgeDcsn.IndicatorValue  -- association [1..1]
;