I_MaintOrderInspectionLot
Maintenance Order Inspection Lot
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 72 fields with key fields MaintenanceOrder, InspectionLot. It has 12 associations to related views. Part of development package IWO_CHECKLIST.
SAP Help Documentation
| Category | CDS 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
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
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_InspectionLot | _InspectionLot | inner |
| I_MaintenanceChecklist | _MaintenanceChecklist | inner |
| I_MaintenanceOrder | _MaintenanceOrder | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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 (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMAINTORDINSPLOT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #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 |
Fields (72)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceOrder | I_MaintenanceOrder | MaintenanceOrder | Order |
| KEY | InspectionLot | I_InspectionLot | InspectionLot | Inspection Lot |
| Plant | I_InspectionLot | Plant | Valuation Area | |
| InspectionLotType | I_InspectionLot | InspectionLotType | Inspection Type | |
| InspectionLotOrigin | I_InspectionLot | InspectionLotOrigin | ||
| StatusObject | I_InspectionLot | StatusObject | Status Object | |
| StatusObjectCategory | I_InspectionLot | StatusObjectCategory | Picking area | |
| StatusProfile | I_InspectionLot | StatusProfile | Status Profile | |
| GoodsReceiptIsMovedToBlkdStock | I_InspectionLot | GoodsReceiptIsMovedToBlkdStock | GR Blocked Stck | |
| InspectionLotIsSkipped | I_InspectionLot | InspectionLotIsSkipped | ||
| InspLotCreatedOnLocalDate | I_InspectionLot | InspLotCreatedOnLocalDate | Lot Created | |
| InspLotCreatedOnLocalTime | I_InspectionLot | InspLotCreatedOnLocalTime | ||
| InspectionLotCreatedBy | I_InspectionLot | InspectionLotCreatedBy | Created By | |
| InspectionLotCreatedOn | I_InspectionLot | InspectionLotCreatedOn | Created On | |
| InspectionLotCreatedOnTime | I_InspectionLot | InspectionLotCreatedOnTime | ||
| InspectionLotChangedBy | I_InspectionLot | InspectionLotChangedBy | Changed By | |
| InspectionLotChangeDate | I_InspectionLot | InspectionLotChangeDate | Changed On | |
| InspectionLotChangeTime | I_InspectionLot | InspectionLotChangeTime | ||
| ChangedDateTime | I_InspectionLot | ChangedDateTime | Time Stamp | |
| InspectionLotStartDate | I_InspectionLot | InspectionLotStartDate | Start Date | |
| InspectionLotStartTime | I_InspectionLot | InspectionLotStartTime | ||
| InspectionLotEndDate | I_InspectionLot | InspectionLotEndDate | End Date | |
| InspectionLotEndTime | I_InspectionLot | InspectionLotEndTime | ||
| BillOfOperationsType | I_InspectionLot | BillOfOperationsType | Task List Type | |
| BillOfOperationsGroup | I_InspectionLot | BillOfOperationsGroup | Group | |
| BillOfOperationsUsage | I_InspectionLot | BillOfOperationsUsage | ||
| BillOfOperationsVariant | I_InspectionLot | BillOfOperationsVariant | Group Counter | |
| BillOfOperationsChangeStateID | I_InspectionLot | BillOfOperationsChangeStateID | Sort pos. | |
| InspLotSelBillOfOperationsUsge | I_InspectionLot | InspLotSelBillOfOperationsUsge | Usage | |
| InspLotSelectionValidFromDate | I_InspectionLot | InspLotSelectionValidFromDate | Valid From | |
| ManufacturingOrder | I_InspectionLot | ManufacturingOrder | Order | |
| OrderInternalBillOfOperations | I_InspectionLot | OrderInternalBillOfOperations | Order Internal Bill of Operations | |
| InspLotSelectionCustomer | I_InspectionLot | InspLotSelectionCustomer | Customer | |
| Customer | I_InspectionLot | Customer | Sold-to Party | |
| InspLotSelectionSupplier | I_InspectionLot | InspLotSelectionSupplier | Supplier | |
| Supplier | I_InspectionLot | Supplier | Supplier | |
| Language | I_InspectionLot | Language | Report Text Language | |
| InspectionLotText | I_InspectionLot | InspectionLotText | ||
| InspectionLotObjectText | I_InspectionLot | InspectionLotObjectText | Obj short text | |
| InspLotNmbrAddlRecordedCharc | I_InspectionLot | InspLotNmbrAddlRecordedCharc | Charcs Recorded | |
| InspLotNmbrOpenShortTermCharc | I_InspectionLot | InspLotNmbrOpenShortTermCharc | Short-Term Char | |
| InspLotNmbrOpenLongTermCharc | I_InspectionLot | InspLotNmbrOpenLongTermCharc | ||
| InspLotUsageDecisionTool | I_InspectionLot | InspLotUsageDecisionTool | UD Mode | |
| InspectionLotHasUsageDecision | I_InspectionLot | InspectionLotHasUsageDecision | ||
| MaintenanceOrderType | I_MaintenanceOrder | MaintenanceOrderType | Order Type | |
| MaintenancePlanningPlant | I_MaintenanceOrder | MaintenancePlanningPlant | Planning Plant | |
| MaintenancePlannerGroup | I_MaintenanceOrder | MaintenancePlannerGroup | Planner Group | |
| MaintObjectLocAcctAssgmtNmbr | I_MaintenanceOrder | MaintObjectLocAcctAssgmtNmbr | Loc/AccAssmt | |
| AuthorizationGroup | ||||
| MaintBusinessSubobjectType | I_MaintenanceChecklist | MaintBusinessSubobjectType | SubObject Type | |
| MaintenanceBusinessSubobject | I_MaintenanceChecklist | MaintenanceBusinessSubobject | SubObject ID | |
| MaintChecklistTemplateType | I_MaintenanceChecklist | MaintChecklistTemplateType | Checklist Templ Type | |
| MaintenanceChecklistTemplate | I_MaintenanceChecklist | MaintenanceChecklistTemplate | Checklist TemplateID | |
| Equipment | I_MaintenanceChecklist | Equipment | Equipment check | |
| FunctionalLocation | I_MaintenanceChecklist | FunctionalLocation | Object ID | |
| MaintChklstAddlInformationText | I_MaintenanceChecklist | MaintChklstAddlInformationText | Checklist Status | |
| MainChecklistIsDeactivated | I_MaintenanceChecklist | MainChecklistIsDeactivated | Inactive | |
| MaintenanceBusinessObjectType | I_MaintenanceChecklist | MaintenanceBusinessObjectType | Translation OType | |
| MaintenanceChecklistType | I_MaintenanceChecklist | MaintenanceChecklistType | Checklist Type | |
| _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.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.BillOfOperationsChangeStateID AS BillOfOperationsChangeStateID,
_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,
_MaintenanceChecklist.MaintBusinessSubobjectType AS MaintBusinessSubobjectType,
_MaintenanceChecklist.MaintenanceBusinessSubobject AS MaintenanceBusinessSubobject,
_MaintenanceChecklist.MaintChecklistTemplateType AS MaintChecklistTemplateType,
_MaintenanceChecklist.MaintenanceChecklistTemplate AS MaintenanceChecklistTemplate,
_MaintenanceChecklist.Equipment AS Equipment,
_MaintenanceChecklist.FunctionalLocation AS FunctionalLocation,
_MaintenanceChecklist.MaintChklstAddlInformationText AS MaintChklstAddlInformationText,
_MaintenanceChecklist.MainChecklistIsDeactivated AS MainChecklistIsDeactivated,
_MaintenanceChecklist.MaintenanceBusinessObjectType AS MaintenanceBusinessObjectType,
_MaintenanceChecklist.MaintenanceChecklistType AS MaintenanceChecklistType,
_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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA