C_InspLotOpRsltRecg
Inspection Lot Operation
C_InspLotOpRsltRecg is a Consumption CDS View that provides data about "Inspection Lot Operation" in SAP S/4HANA. It reads from 3 data sources (I_InspectionLot, I_InspectionOperation, I_InspOperationAggregate) and exposes 66 fields with key fields InspectionLot, InspPlanOperationInternalID. It has 3 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_InspectionLot | _InspectionLot | from |
| I_InspectionOperation | _InspOperation | inner |
| I_InspOperationAggregate | _InspOperationAggregate | inner |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_InspOperationUsageDecision | _InspOperationUsageDecision | _InspOperation.InspectionLot = _InspOperationUsageDecision.InspectionLot and _InspOperation.InspPlanOperationInternalID = _InspOperationUsageDecision.InspPlanOperationInternalID and InspLotStatusCanceled.InspLotStatusCanceled = '' |
| [0..*] | C_InspLotOpUnplndCharcRsltRecg | _UnplannedChar | $projection.Plant = _UnplannedChar.InspectionSpecificationPlant |
| [0..*] | C_InspLotOpCharcRsltRecg | _InspChar | |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Inspection Lot Operation | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Search.searchable | true | view | |
| UI.headerInfo.title.type | #STANDARD | view | |
| UI.headerInfo.title.value | Title | view |
Fields (66)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InspectionLot | I_InspectionLot | InspectionLot | Inspection Lot |
| KEY | InspPlanOperationInternalID | I_InspectionOperation | InspPlanOperationInternalID | Node Number |
| InspectionOperation | Operation | |||
| Material | I_InspectionLot | Material | Vehicle Model | |
| Plant | I_InspectionLot | Plant | Valuation Area | |
| Batch | I_InspectionLot | Batch | Lot No. | |
| InspectionLotOrigin | I_InspectionLot | InspectionLotOrigin | ||
| NumberOfMaterialSamples | Number of Samples | |||
| int4asInspCharacteristicCount | Number of Characteristics | |||
| InspCharOpenCountendasInspCharOpenCount | Number of Open Characteristics | |||
| NumberOfDaysLeftForRsltRecg | Inspection Lot End Date | |||
| InspectionLotEndDate | I_InspectionLot | InspectionLotEndDate | Inspection Lot End Date | |
| AccountingDocumentType | I_InspectionLot | AccountingDocumentType | Journal Entry Type | |
| BatchStorageLocation | I_InspectionLot | BatchStorageLocation | ||
| Customer | I_InspectionLot | Customer | Sold-to Party | |
| DeliveryDocument | I_InspectionLot | DeliveryDocument | Outbound Delivery | |
| DeliveryDocumentItem | I_InspectionLot | DeliveryDocumentItem | Outb. Delivery Item | |
| InspCharCount | Characteristic Count | |||
| InspLotCreatedOnLocalDate | I_InspectionLot | InspLotCreatedOnLocalDate | Lot Created | |
| InspLotCreatedOnLocalTime | I_InspectionLot | InspLotCreatedOnLocalTime | ||
| InspLotUsageDecisionValuation | ||||
| InspOpUsageDecidedOnDte | _InspOperationUsageDecision | InspOpUsageDecidedOn | ||
| InspOpUsageDecisionChangedBy | _InspOperationUsageDecision | InspOpUsageDecisionChangedBy | ||
| InspOpUsageDecisionChangedOn | _InspOperationUsageDecision | InspOpUsageDecisionChangedOn | ||
| InspOpUsageDecisionTime | _InspOperationUsageDecision | InspOpUsageDecisionTime | ||
| InspOpUsageDecisionValuation | _InspOperationUsageDecision | InspOpUsageDecisionValuation | ||
| InspOpUsgeDcsnChangedTime | _InspOperationUsageDecision | InspOpUsgeDcsnChangedTime | ||
| InspOpUsgeDcsnFollowUpAction | _InspOperationUsageDecision | InspOpUsgeDcsnFollowUpAction | ||
| InspOpUsgeDcsnSelectedSet | _InspOperationUsageDecision | InspOpUsgeDcsnSelectedSet | ||
| InspectionLotChangeDate | I_InspectionLot | InspectionLotChangeDate | Changed On | |
| InspectionLotChangeTime | I_InspectionLot | InspectionLotChangeTime | ||
| InspectionLotChangedBy | I_InspectionLot | InspectionLotChangedBy | Changed By | |
| InspectionLotCreatedBy | I_InspectionLot | InspectionLotCreatedBy | Created By | |
| InspectionLotCreatedOn | I_InspectionLot | InspectionLotCreatedOn | Created On | |
| InspectionLotCreatedOnTime | I_InspectionLot | InspectionLotCreatedOnTime | ||
| InspectionLotHasPartialLots | I_InspectionLot | InspectionLotHasPartialLots | Partial Lots | |
| InspectionLotObjectText | I_InspectionLot | InspectionLotObjectText | Obj short text | |
| InspectionLotOriginText | ||||
| InspectionLotQualityScore | _InspOperationUsageDecision | InspectionLotQualityScore | Inspection Lot Score | |
| InspectionLotQuantity | I_InspectionLot | InspectionLotQuantity | ||
| InspectionLotQuantityUnit | I_InspectionLot | InspectionLotQuantityUnit | Sample UOM | |
| InspectionLotStartDate | I_InspectionLot | InspectionLotStartDate | Start Date | |
| InspectionLotText | I_InspectionLot | InspectionLotText | ||
| InspectionLotType | I_InspectionLot | InspectionLotType | Inspection Type | |
| InspectionLotTypeText | ||||
| InspectionOpUsageDecidedBy | _InspOperationUsageDecision | InspectionOpUsageDecidedBy | ||
| Manufacturer | I_InspectionLot | Manufacturer | Manufacturer | |
| ManufacturingOrder | I_InspectionLot | ManufacturingOrder | Order | |
| MatlQualityAuthorizationGroup | I_InspectionLot | MatlQualityAuthorizationGroup | QM Matl Auth. | |
| IsBusinessPurposeCompleted | I_InspectionLot | IsBusinessPurposeCompleted | Purpose Completed | |
| OperationText | I_InspectionOperation | OperationText | Description | |
| ProductionVersion | I_InspectionLot | ProductionVersion | Version ID | |
| PurchasingDocument | I_InspectionLot | PurchasingDocument | Purchasing Document | |
| PurchasingDocumentItem | I_InspectionLot | PurchasingDocumentItem | Purchasing Doc. Item | |
| QualityCostCollector | I_InspectionLot | QualityCostCollector | QM Order | |
| SalesOrder | I_InspectionLot | SalesOrder | SD Document | |
| SalesOrderItem | I_InspectionLot | SalesOrderItem | Sales Order Item | |
| ScheduleLine | I_InspectionLot | ScheduleLine | Schedule Line | |
| Supplier | I_InspectionLot | Supplier | Supplier | |
| UsageDecisionCode | _InspOperationUsageDecision | UsageDecisionCode | ||
| UsageDecisionCodeGroup | _InspOperationUsageDecision | UsageDecisionCodeGroup | ||
| WorkCenter | ||||
| WorkCenterText | ||||
| _InspLot | _InspLot | |||
| _InspChar | _InspChar | |||
| _UnplannedChar | _UnplannedChar |
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_InspLotOpRsltRecg.
-- 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.
CREATE VIEW C_InspLotOpRsltRecg AS
SELECT
_InspectionLot.InspectionLot AS InspectionLot,
_InspOperation.InspPlanOperationInternalID AS InspPlanOperationInternalID,
cast(_InspOperation.InspectionOperation as abap.char(4)) AS InspectionOperation,
_InspectionLot.Material AS Material,
_InspectionLot.Plant AS Plant,
_InspectionLot.Batch AS Batch,
_InspectionLot.InspectionLotOrigin AS InspectionLotOrigin,
cast(_InspOperationAggregate.MaterialSampleCount as abap.int4 ) AS NumberOfMaterialSamples,
cast( case when _InspectionLot.InspLotHasSubsets = 'X' then _InspOperationAggregate.InspSubsetCharcAcceptedCount + _InspOperationAggregate.InspSubsetCharcRejectedCount + _InspOperationAggregate.InspSubsetCharcOpenCount + _InspOperationAggregate.NumberOfSkipInspSubsetCharcs else _InspOperationAggregate.InspCharAcceptedCount + _InspOperationAggregate.InspCharRejectedCount + _InspOperationAggregate.InspCharOpenCount + _InspOperationAggregate.NumberOfSkipInspCharcs end as abap.int4) as InspCharacteristicCount AS int4asInspCharacteristicCount,
case when _InspectionLot.InspLotHasSubsets = 'X' then _InspOperationAggregate.InspSubsetCharcOpenCount else _InspOperationAggregate.InspCharOpenCount end as InspCharOpenCount AS InspCharOpenCountendasInspCharOpenCount,
dats_days_between(cast($session.system_date as abap.dats), _InspectionLot.InspectionLotEndDate) AS NumberOfDaysLeftForRsltRecg,
_InspectionLot.InspectionLotEndDate AS InspectionLotEndDate,
_InspectionLot.AccountingDocumentType AS AccountingDocumentType,
_InspectionLot.BatchStorageLocation AS BatchStorageLocation,
_InspectionLot.Customer AS Customer,
_InspectionLot.DeliveryDocument AS DeliveryDocument,
_InspectionLot.DeliveryDocumentItem AS DeliveryDocumentItem,
cast(_InspOperationAggregate.InspCharAcceptedCount + _InspOperationAggregate.InspCharRejectedCount + _InspOperationAggregate.InspCharOpenCount as abap.int4) AS InspCharCount,
_InspectionLot.InspLotCreatedOnLocalDate AS InspLotCreatedOnLocalDate,
_InspectionLot.InspLotCreatedOnLocalTime AS InspLotCreatedOnLocalTime,
_InspectionLot._InspLotUsageDecision.InspLotUsageDecisionValuation AS InspLotUsageDecisionValuation,
_InspOperationUsageDecision.InspOpUsageDecidedOn AS InspOpUsageDecidedOnDte,
_InspOperationUsageDecision.InspOpUsageDecisionChangedBy AS InspOpUsageDecisionChangedBy,
_InspOperationUsageDecision.InspOpUsageDecisionChangedOn AS InspOpUsageDecisionChangedOn,
_InspOperationUsageDecision.InspOpUsageDecisionTime AS InspOpUsageDecisionTime,
_InspOperationUsageDecision.InspOpUsageDecisionValuation AS InspOpUsageDecisionValuation,
_InspOperationUsageDecision.InspOpUsgeDcsnChangedTime AS InspOpUsgeDcsnChangedTime,
_InspOperationUsageDecision.InspOpUsgeDcsnFollowUpAction AS InspOpUsgeDcsnFollowUpAction,
_InspOperationUsageDecision.InspOpUsgeDcsnSelectedSet AS InspOpUsgeDcsnSelectedSet,
_InspectionLot.InspectionLotChangeDate AS InspectionLotChangeDate,
_InspectionLot.InspectionLotChangeTime AS InspectionLotChangeTime,
_InspectionLot.InspectionLotChangedBy AS InspectionLotChangedBy,
_InspectionLot.InspectionLotCreatedBy AS InspectionLotCreatedBy,
_InspectionLot.InspectionLotCreatedOn AS InspectionLotCreatedOn,
_InspectionLot.InspectionLotCreatedOnTime AS InspectionLotCreatedOnTime,
_InspectionLot.InspectionLotHasPartialLots AS InspectionLotHasPartialLots,
_InspectionLot.InspectionLotObjectText AS InspectionLotObjectText,
_InspectionLot._InspectionLotOrigin._Text[1:Language=$session.system_language].InspectionLotOriginText AS InspectionLotOriginText,
_InspOperationUsageDecision.InspectionLotQualityScore AS InspectionLotQualityScore,
_InspectionLot.InspectionLotQuantity AS InspectionLotQuantity,
_InspectionLot.InspectionLotQuantityUnit AS InspectionLotQuantityUnit,
_InspectionLot.InspectionLotStartDate AS InspectionLotStartDate,
_InspectionLot.InspectionLotText AS InspectionLotText,
_InspectionLot.InspectionLotType AS InspectionLotType,
_InspectionLot._InspectionLotType._Text[1:Language=$session.system_language].InspectionLotTypeText AS InspectionLotTypeText,
_InspOperationUsageDecision.InspectionOpUsageDecidedBy AS InspectionOpUsageDecidedBy,
_InspectionLot.Manufacturer AS Manufacturer,
_InspectionLot.ManufacturingOrder AS ManufacturingOrder,
_InspectionLot.MatlQualityAuthorizationGroup AS MatlQualityAuthorizationGroup,
_InspectionLot.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
_InspOperation.OperationText AS OperationText,
_InspectionLot.ProductionVersion AS ProductionVersion,
_InspectionLot.PurchasingDocument AS PurchasingDocument,
_InspectionLot.PurchasingDocumentItem AS PurchasingDocumentItem,
_InspectionLot.QualityCostCollector AS QualityCostCollector,
_InspectionLot.SalesOrder AS SalesOrder,
_InspectionLot.SalesOrderItem AS SalesOrderItem,
_InspectionLot.ScheduleLine AS ScheduleLine,
_InspectionLot.Supplier AS Supplier,
_InspOperationUsageDecision.UsageDecisionCode AS UsageDecisionCode,
_InspOperationUsageDecision.UsageDecisionCodeGroup AS UsageDecisionCodeGroup,
_InspOperation._WorkCenter.WorkCenter AS WorkCenter,
_InspOperation._WorkCenter._Text[1:Language=$session.system_language].WorkCenterText AS WorkCenterText
FROM I_InspectionLot AS _InspectionLot
INNER JOIN I_InspectionOperation AS _InspOperation ON /* join condition not captured in parsed metadata */
INNER JOIN I_InspOperationAggregate AS _InspOperationAggregate ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_InspOperationUsageDecision AS _InspOperationUsageDecision ON _InspOperation.InspectionLot = _InspOperationUsageDecision.InspectionLot AND _InspOperation.InspPlanOperationInternalID = _InspOperationUsageDecision.InspPlanOperationInternalID AND InspLotStatusCanceled.InspLotStatusCanceled = '' -- association [1..1]
LEFT OUTER JOIN C_InspLotOpUnplndCharcRsltRecg AS _UnplannedChar ON Plant = _UnplannedChar.InspectionSpecificationPlant -- association [0..*]
LEFT OUTER JOIN C_InspLotOpCharcRsltRecg AS _InspChar ON /* condition not available in parsed metadata */ -- association [0..*]
;
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