C_Qm_InspectionlotsByMtrSmpl
Inspection lots for main page - group by material sample
C_Qm_InspectionlotsByMtrSmpl is a Consumption CDS View that provides data about "Inspection lots for main page - group by material sample" in SAP S/4HANA. It reads from 3 data sources (I_InspectionLot, I_InspMaterialSampleAggregate, I_MaterialSample) and exposes 156 fields with key fields InspectionLot, MaterialSample.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_InspectionLot | _insplots | from |
| I_InspMaterialSampleAggregate | I_InspMaterialSampleAggregate | inner |
| I_MaterialSample | I_MaterialSample | inner |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CQMINSPLBMS | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| EndUserText.label | Inspection lots for main page - group by material sample | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (156)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InspectionLot | I_InspectionLot | InspectionLot | Inspection Lot |
| KEY | MaterialSample | _inspmtrsplaggrgt | MaterialSample | Sample |
| SystemStatus | _stsObjConcatActiveStsILL | ConcatenatedActiveSystStsName | Concatenated System Status | |
| UserStatus | _stsObjConcatActiveStsILL | ConcatenatedActiveUserStsName | Concatenated User Status | |
| InspCharAcceptedCount | ||||
| InspCharRejectedCount | ||||
| InspCharOpenCount | ||||
| InspOperationCount | ||||
| ManufacturingOrder | I_InspectionLot | ManufacturingOrder | Order | |
| Plant | I_InspectionLot | Plant | Valuation Area | |
| Material | I_InspectionLot | Material | Vehicle Model | |
| InspectionLotOrigin | I_InspectionLot | InspectionLotOrigin | ||
| InspectionLotOriginText | ||||
| InspectionLotType | I_InspectionLot | InspectionLotType | Inspection Type | |
| InspectionLotTypeText | ||||
| MaterialName | ||||
| Batch | I_InspectionLot | Batch | Lot No. | |
| InspCharCount | ||||
| InspectionLotObjectText | I_InspectionLot | InspectionLotObjectText | Obj short text | |
| MatlQualityAuthorizationGroup | I_InspectionLot | MatlQualityAuthorizationGroup | QM Matl Auth. | |
| InspLotIsDocumentationRequired | I_InspectionLot | InspLotIsDocumentationRequired | ||
| 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 | ||
| InspectionLotStartDate | I_InspectionLot | InspectionLotStartDate | Start Date | |
| InspectionLotEndDate | I_InspectionLot | InspectionLotEndDate | End Date | |
| ProductionVersion | I_InspectionLot | ProductionVersion | Version ID | |
| SalesOperationsPlanningOrder | I_InspectionLot | SalesOperationsPlanningOrder | ||
| Customer | I_InspectionLot | Customer | Sold-to Party | |
| Supplier | I_InspectionLot | Supplier | Supplier | |
| Manufacturer | I_InspectionLot | Manufacturer | Manufacturer | |
| MaterialRevisionLevel | I_InspectionLot | MaterialRevisionLevel | Revision Level | |
| BatchStorageLocation | I_InspectionLot | BatchStorageLocation | ||
| PurchasingDocument | I_InspectionLot | PurchasingDocument | Purchasing Document | |
| PurchasingDocumentItem | I_InspectionLot | PurchasingDocumentItem | Purchasing Doc. Item | |
| ScheduleLine | I_InspectionLot | ScheduleLine | Schedule Line | |
| AccountingDocumentType | I_InspectionLot | AccountingDocumentType | Journal Entry Type | |
| MaterialDocumentYear | I_InspectionLot | MaterialDocumentYear | Material Document Year | |
| MaterialDocument | I_InspectionLot | MaterialDocument | Material Doc. | |
| MaterialDocumentItem | I_InspectionLot | MaterialDocumentItem | Material Document Item | |
| SalesOrder | I_InspectionLot | SalesOrder | SD Document | |
| SalesOrderItem | I_InspectionLot | SalesOrderItem | Sales Order Item | |
| DeliveryDocument | I_InspectionLot | DeliveryDocument | Outbound Delivery | |
| DeliveryDocumentItem | I_InspectionLot | DeliveryDocumentItem | Outb. Delivery Item | |
| InspectionLotText | I_InspectionLot | InspectionLotText | ||
| InspectionLotQuantity | I_InspectionLot | InspectionLotQuantity | ||
| InspectionLotQuantityUnit | I_InspectionLot | InspectionLotQuantityUnit | Sample UOM | |
| SerialNumberProfile | I_InspectionLot | SerialNumberProfile | SerialNoProfile | |
| InspLotIsSerialNmbrPossible | I_InspectionLot | InspLotIsSerialNmbrPossible | Serial Numbers | |
| InspSubsetFieldCombination | I_InspectionLot | InspSubsetFieldCombination | Field Combinat. | |
| IsBusinessPurposeCompleted | I_InspectionLot | IsBusinessPurposeCompleted | Purpose Completed | |
| InspectionOperation | ||||
| InspLotRsltRecgStatus | ||||
| BatchBySupplier | ||||
| InspLotIsStockPostingCompleted | ||||
| InspectionLotIsSkipped | ||||
| InspectionLotIsFullInspection | ||||
| NumberOfSerialNumbers | ||||
| SmplDrawingProcedure | ||||
| SmplDrwgProcedIsConfRequired | ||||
| InspectionDynamicStage | ||||
| InspectionSeverity | ||||
| InspectionLotHasPartialLots | I_InspectionLot | InspectionLotHasPartialLots | Partial Lots | |
| InspLotIsAutomUsgeDcsnPossible | ||||
| InspLotHasConfignSpecification | ||||
| InspLotIsTaskListRequired | ||||
| InspLotHasManualSampleSize | ||||
| InspLotHasMaterialSpec | ||||
| InspLotDigitalSgntrResultsRecg | ||||
| InspLotIsBatchRequired | ||||
| InspectionLotHasUsageDecision | ||||
| MaterialIsBatchManaged | ||||
| PurchasingOrganization | ||||
| MatlDocLatestPostgDate | ||||
| GoodsMovementType | ||||
| ManufacturerPartNmbr | ||||
| GoodsReceiptIsMovedToBlkdStock | ||||
| InspectionLotHasQuantity | ||||
| Warehouse | ||||
| StorageType | ||||
| StorageBin | ||||
| MaterialCompIsSpecialStock | ||||
| InspectionLotStorageLocation | ||||
| SoldToParty | ||||
| DeliveryCategory | ||||
| Route | ||||
| BillToPartyCountry | ||||
| SalesOrganization | ||||
| MaterialByCustomer | ||||
| BillOfOperationsType | ||||
| BillOfOperationsGroup | ||||
| BillOfOperationsUsage | ||||
| BillOfOperationsVariant | ||||
| InspLotNmbrAddlRecordedCharc | ||||
| InspLotNmbrOpenShortTermCharc | ||||
| InspLotNmbrOpenLongTermCharc | ||||
| CostCenter | ||||
| SalesOrdStockWBSElement | ||||
| QualityCostCollector | ||||
| ProfitCenter | ||||
| BusinessArea | ||||
| GLAccount | ||||
| ControllingArea | ||||
| CompanyCode | ||||
| InspLotDigitalSgntrInUsgeDcsn | ||||
| WorkCenter | ||||
| InspLotUsageDecisionCodeGroup | ||||
| InspectionLotUsageDecisionCode | ||||
| StorageLocation | ||||
| InspectionOperationPlant | ||||
| OperationControlProfile | ||||
| InspectionSubSystem | ||||
| OperationConfirmation | ||||
| OperationText | ||||
| InspectionCharacteristic | ||||
| InspectionCharacteristicStatus | ||||
| InspectionMethodPlant | ||||
| InspectionMethod | ||||
| InspectionSpecificationPlant | ||||
| InspectionSpecification | ||||
| InspSpecImportanceCode | ||||
| InspectionCharacteristicText | ||||
| InspectorQualification | ||||
| InspSpecInformationField1 | ||||
| InspSpecInformationField2 | ||||
| InspSpecInformationField3 | ||||
| InspectionSubsetSortKey | ||||
| Equipment | ||||
| FunctionalLocation | ||||
| InspectionSubsetLongCharKey | ||||
| InspectionSubsetShortCharKey | ||||
| InspSubsetLongNumericKey | ||||
| InspSubsetShortNumericKey | ||||
| InspectionSubsetDate | ||||
| InspectionSubsetTime | ||||
| InspSubsetUsageDcsnCodeGroup | ||||
| InspSubsetUsageDcsnCode | ||||
| InspSubsetUsageDcsnValuation | ||||
| ProductionPlant | ||||
| InspectionLotPlant | ||||
| InspectionSpecificationText | ||||
| MaterialSampleType | _mtrSample | MaterialSampleType | Sample Type | |
| MaterialSampleCategory | _mtrSample | MaterialSampleCategory | Type of Price | |
| MaterialSampleStorageLocation | _mtrSample | MaterialSampleStorageLocation | Sample Location | |
| MaterialSampleChangedOn | _mtrSample | MaterialSampleChangedOn | Date | |
| MaterialSampleDrawingLocation | _mtrSample | MaterialSampleDrawingLocation | ||
| MatlSmplDrawingLocDescription | _mtrSample | MatlSmplDrawingLocDescription | ||
| MaterialSampleDrawingOnDate | _mtrSample | MaterialSampleDrawingOnDate | Date of Drawing | |
| MaterialSampleDrawingOnTime | _mtrSample | MaterialSampleDrawingOnTime | ||
| MaterialSampleResponsibleName | _mtrSample | MaterialSampleResponsibleName | Sample Processor | |
| MaterialSampleDrawing | _mtrSample | MaterialSampleDrawing |
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 C_Qm_InspectionlotsByMtrSmpl.
-- 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: CQMINSPLBMS
CREATE VIEW C_Qm_InspectionlotsByMtrSmpl AS
SELECT
_insplots.InspectionLot AS InspectionLot,
_inspmtrsplaggrgt.MaterialSample AS MaterialSample,
_stsObjConcatActiveStsILL.ConcatenatedActiveSystStsName AS SystemStatus,
_stsObjConcatActiveStsILL.ConcatenatedActiveUserStsName AS UserStatus,
cast(_inspmtrsplaggrgt.InspCharAcceptedCount as abap.int4 ) AS InspCharAcceptedCount,
cast(_inspmtrsplaggrgt.InspCharRejectedCount as abap.int4 ) AS InspCharRejectedCount,
cast(_inspmtrsplaggrgt.InspCharOpenCount as abap.int4 ) AS InspCharOpenCount,
cast(_inspmtrsplaggrgt.InspOperationCount as abap.int4 ) AS InspOperationCount,
_insplots.ManufacturingOrder AS ManufacturingOrder,
_insplots.Plant AS Plant,
_insplots.Material AS Material,
_insplots.InspectionLotOrigin AS InspectionLotOrigin,
_insplots._InspectionLotOrigin._Text[1:Language=$session.system_language].InspectionLotOriginText AS InspectionLotOriginText,
_insplots.InspectionLotType AS InspectionLotType,
_insplots._InspectionLotType._Text[1:Language=$session.system_language].InspectionLotTypeText AS InspectionLotTypeText,
_insplots._Material._Text[1:Language=$session.system_language].MaterialName AS MaterialName,
_insplots.Batch AS Batch,
cast(0 as abap.int4) AS InspCharCount,
_insplots.InspectionLotObjectText AS InspectionLotObjectText,
_insplots.MatlQualityAuthorizationGroup AS MatlQualityAuthorizationGroup,
_insplots.InspLotIsDocumentationRequired AS InspLotIsDocumentationRequired,
_insplots.InspLotCreatedOnLocalDate AS InspLotCreatedOnLocalDate,
_insplots.InspLotCreatedOnLocalTime AS InspLotCreatedOnLocalTime,
_insplots.InspectionLotCreatedBy AS InspectionLotCreatedBy,
_insplots.InspectionLotCreatedOn AS InspectionLotCreatedOn,
_insplots.InspectionLotCreatedOnTime AS InspectionLotCreatedOnTime,
_insplots.InspectionLotChangedBy AS InspectionLotChangedBy,
_insplots.InspectionLotChangeDate AS InspectionLotChangeDate,
_insplots.InspectionLotChangeTime AS InspectionLotChangeTime,
_insplots.InspectionLotStartDate AS InspectionLotStartDate,
_insplots.InspectionLotEndDate AS InspectionLotEndDate,
_insplots.ProductionVersion AS ProductionVersion,
_insplots.SalesOperationsPlanningOrder AS SalesOperationsPlanningOrder,
_insplots.Customer AS Customer,
_insplots.Supplier AS Supplier,
_insplots.Manufacturer AS Manufacturer,
_insplots.MaterialRevisionLevel AS MaterialRevisionLevel,
_insplots.BatchStorageLocation AS BatchStorageLocation,
_insplots.PurchasingDocument AS PurchasingDocument,
_insplots.PurchasingDocumentItem AS PurchasingDocumentItem,
_insplots.ScheduleLine AS ScheduleLine,
_insplots.AccountingDocumentType AS AccountingDocumentType,
_insplots.MaterialDocumentYear AS MaterialDocumentYear,
_insplots.MaterialDocument AS MaterialDocument,
_insplots.MaterialDocumentItem AS MaterialDocumentItem,
_insplots.SalesOrder AS SalesOrder,
_insplots.SalesOrderItem AS SalesOrderItem,
_insplots.DeliveryDocument AS DeliveryDocument,
_insplots.DeliveryDocumentItem AS DeliveryDocumentItem,
_insplots.InspectionLotText AS InspectionLotText,
_insplots.InspectionLotQuantity AS InspectionLotQuantity,
_insplots.InspectionLotQuantityUnit AS InspectionLotQuantityUnit,
_insplots.SerialNumberProfile AS SerialNumberProfile,
_insplots.InspLotIsSerialNmbrPossible AS InspLotIsSerialNmbrPossible,
_insplots.InspSubsetFieldCombination AS InspSubsetFieldCombination,
_insplots.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
cast( _insplots._InspectionOperation.InspectionOperation as vdm_vornr preserving type ) AS InspectionOperation,
cast('' as abap.char( 1 )) AS InspLotRsltRecgStatus,
cast('' as abap.char( 15 )) AS BatchBySupplier,
cast('' as abap.char( 1 )) AS InspLotIsStockPostingCompleted,
cast('' as abap.char( 1 )) AS InspectionLotIsSkipped,
cast('' as abap.char( 1 )) AS InspectionLotIsFullInspection,
cast(0 as abap.int4) AS NumberOfSerialNumbers,
cast('' as abap.char( 8 )) AS SmplDrawingProcedure,
cast('' as abap.char( 1 )) AS SmplDrwgProcedIsConfRequired,
cast('' as abap.char( 4 )) AS InspectionDynamicStage,
cast('' as abap.char( 3 )) AS InspectionSeverity,
_insplots.InspectionLotHasPartialLots AS InspectionLotHasPartialLots,
cast('' as abap.char( 1 )) AS InspLotIsAutomUsgeDcsnPossible,
cast('' as abap.char( 1 )) AS InspLotHasConfignSpecification,
cast('' as abap.char( 1 )) AS InspLotIsTaskListRequired,
cast('' as abap.char( 1 )) AS InspLotHasManualSampleSize,
cast('' as abap.char( 1 )) AS InspLotHasMaterialSpec,
cast('' as abap.char( 1 )) AS InspLotDigitalSgntrResultsRecg,
cast('' as abap.char( 1 )) AS InspLotIsBatchRequired,
cast('' as abap.char( 1 )) AS InspectionLotHasUsageDecision,
cast('' as vdm_xchpf) AS MaterialIsBatchManaged,
cast('' as abap.char( 4 )) AS PurchasingOrganization,
cast('' as abap.dats) AS MatlDocLatestPostgDate,
cast('' as abap.char( 3 )) AS GoodsMovementType,
cast('' as abap.char( 40 )) AS ManufacturerPartNmbr,
cast('' as abap.char( 1 )) AS GoodsReceiptIsMovedToBlkdStock,
cast('' as abap.char( 1 )) AS InspectionLotHasQuantity,
cast('' as abap.char( 3 )) AS Warehouse,
cast('' as abap.char( 3 )) AS StorageType,
cast('' as abap.char( 10 )) AS StorageBin,
cast('' as abap.char( 1 )) AS MaterialCompIsSpecialStock,
cast('' as abap.char( 4 )) AS InspectionLotStorageLocation,
cast('' as abap.char( 10 )) AS SoldToParty,
cast('' as abap.char( 3 )) AS DeliveryCategory,
cast('' as abap.char( 6 )) AS Route,
cast('' as abap.char( 3 )) AS BillToPartyCountry,
cast('' as abap.char( 4 )) AS SalesOrganization,
cast('' as abap.char( 35 )) AS MaterialByCustomer,
cast('' as abap.char( 1 )) AS BillOfOperationsType,
cast('' as abap.char( 8 )) AS BillOfOperationsGroup,
cast('' as abap.char( 3 )) AS BillOfOperationsUsage,
cast('' as abap.char( 20 )) AS BillOfOperationsVariant,
cast('' as abap.char( 6 )) AS InspLotNmbrAddlRecordedCharc,
cast('' as abap.char( 6 )) AS InspLotNmbrOpenShortTermCharc,
cast('' as abap.char( 6 )) AS InspLotNmbrOpenLongTermCharc,
cast('' as abap.char( 10 )) AS CostCenter,
cast('' as abap.char( 24 )) AS SalesOrdStockWBSElement,
cast('' as abap.char( 12 )) AS QualityCostCollector,
cast('' as abap.char( 10 )) AS ProfitCenter,
cast('' as abap.char( 4 )) AS BusinessArea,
cast('' as abap.char( 10 )) AS GLAccount,
cast('' as abap.char( 4 )) AS ControllingArea,
cast('' as abap.char( 4 )) AS CompanyCode,
cast('' as abap.char( 1 )) AS InspLotDigitalSgntrInUsgeDcsn,
cast('' as abap.char( 8 )) AS WorkCenter,
cast('' as abap.char( 8 )) AS InspLotUsageDecisionCodeGroup,
cast('' as abap.char( 4 )) AS InspectionLotUsageDecisionCode,
cast('' as abap.char( 4 )) AS StorageLocation,
cast('' as abap.char( 4 )) AS InspectionOperationPlant,
cast('' as abap.char( 4 )) AS OperationControlProfile,
cast('' as abap.char( 6 )) AS InspectionSubSystem,
cast('' as abap.char( 10 )) AS OperationConfirmation,
cast('' as abap.char( 20 )) AS OperationText,
cast('' as abap.char( 4 )) AS InspectionCharacteristic,
cast('' as abap.char( 1 )) AS InspectionCharacteristicStatus,
cast('' as abap.char( 4 )) AS InspectionMethodPlant,
cast('' as abap.char( 8 )) AS InspectionMethod,
cast('' as abap.char( 4 )) AS InspectionSpecificationPlant,
cast('' as abap.char( 8 )) AS InspectionSpecification,
cast('' as abap.char( 2 )) AS InspSpecImportanceCode,
cast('' as abap.char( 40 )) AS InspectionCharacteristicText,
cast('' as abap.char( 5 )) AS InspectorQualification,
cast('' as abap.char( 10 )) AS InspSpecInformationField1,
cast('' as abap.char( 20 )) AS InspSpecInformationField2,
cast('' as abap.char( 40 )) AS InspSpecInformationField3,
cast('' as abap.char( 70 )) AS InspectionSubsetSortKey,
cast('' as abap.char( 18 )) AS Equipment,
cast('' as abap.char( 30 )) AS FunctionalLocation,
cast('' as abap.char( 18 )) AS InspectionSubsetLongCharKey,
cast('' as abap.char( 10 )) AS InspectionSubsetShortCharKey,
cast('' as abap.char( 10 )) AS InspSubsetLongNumericKey,
cast('' as abap.char( 3 )) AS InspSubsetShortNumericKey,
cast('' as abap.dats) AS InspectionSubsetDate,
cast('' as abap.tims) AS InspectionSubsetTime,
cast('' as abap.char( 8 )) AS InspSubsetUsageDcsnCodeGroup,
cast('' as abap.char( 4 )) AS InspSubsetUsageDcsnCode,
cast('' as abap.char( 1 )) AS InspSubsetUsageDcsnValuation,
cast('' as abap.char( 4 )) AS ProductionPlant,
cast('' as abap.char( 4 )) AS InspectionLotPlant,
cast('' as abap.char( 40 )) AS InspectionSpecificationText,
_mtrSample.MaterialSampleType AS MaterialSampleType,
_mtrSample.MaterialSampleCategory AS MaterialSampleCategory,
_mtrSample.MaterialSampleStorageLocation AS MaterialSampleStorageLocation,
_mtrSample.MaterialSampleChangedOn AS MaterialSampleChangedOn,
_mtrSample.MaterialSampleDrawingLocation AS MaterialSampleDrawingLocation,
_mtrSample.MatlSmplDrawingLocDescription AS MatlSmplDrawingLocDescription,
_mtrSample.MaterialSampleDrawingOnDate AS MaterialSampleDrawingOnDate,
_mtrSample.MaterialSampleDrawingOnTime AS MaterialSampleDrawingOnTime,
_mtrSample.MaterialSampleResponsibleName AS MaterialSampleResponsibleName,
_mtrSample.MaterialSampleDrawing AS MaterialSampleDrawing
FROM I_InspectionLot AS _insplots
INNER JOIN I_InspMaterialSampleAggregate ON /* join condition not captured in parsed metadata */
INNER JOIN I_MaterialSample ON /* join condition not captured in parsed metadata */
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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