A_InspectionLotWithStatus
Inspection Lot Statuses
A_InspectionLotWithStatus is a Consumption CDS View that provides data about "Inspection Lot Statuses" in SAP S/4HANA. It reads from 1 data source (I_InspectionLotWithStatus) and exposes 13 fields with key field InspectionLot. Part of development package ODATA_QM_INSPECTION_API.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_InspectionLotWithStatus | I_InspectionLotWithStatus | from |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | AINSPLOTWSTS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| EndUserText.label | Inspection Lot Statuses | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.updateEnabled | false | view | |
| ObjectModel.deleteEnabled | false | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InspectionLot | InspectionLot | Inspection Lot | |
| InspectionLotStatusCreated | ||||
| InspectionLotStatusReleased | ||||
| InspectionLotStatusSkip | ||||
| InspLotStatusRsltsConfirmed | ||||
| InspLotStsDefectsRecorded | ||||
| InspLotStsShrtTrmInspCmpltd | ||||
| InspLotStatusInspCompleted | ||||
| InspLotStatusCanceled | ||||
| InspLotStatusRepair | ||||
| Plant | Plant | Valuation Area | ||
| InspectionLotType | InspectionLotType | Inspection Type | ||
| MatlQualityAuthorizationGroup | MatlQualityAuthorizationGroup | QM Matl Auth. |
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 A_InspectionLotWithStatus.
-- 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: AINSPLOTWSTS
CREATE VIEW A_InspectionLotWithStatus AS
SELECT
InspectionLot,
case when InspectionLotStatusCreated = 'I0001' then cast('X' as abap.char(1) ) end AS InspectionLotStatusCreated,
case when InspectionLotStatusReleased = 'I0002' then cast('X' as abap.char(1) ) end AS InspectionLotStatusReleased,
case when InspectionLotStatusSkip = 'I0209' then cast('X' as abap.char(1) ) end AS InspectionLotStatusSkip,
case when InspLotStatusRsltsConfirmed = 'I0213' then cast('X' as abap.char(1) ) end AS InspLotStatusRsltsConfirmed,
case when InspLotStsDefectsRecorded = 'I0214' then cast('X' as abap.char(1) ) end AS InspLotStsDefectsRecorded,
case when InspLotStsShrtTrmInspCmpltd = 'I0216' then cast('X' as abap.char(1) ) end AS InspLotStsShrtTrmInspCmpltd,
case when InspLotStatusInspCompleted = 'I0217' then cast('X' as abap.char(1) ) end AS InspLotStatusInspCompleted,
case when InspLotStatusCanceled = 'I0224' then cast('X' as abap.char(1) ) end AS InspLotStatusCanceled,
case when InspLotStatusRepair = 'I0400' then cast('X' as abap.char(1) ) end AS InspLotStatusRepair,
Plant,
InspectionLotType,
MatlQualityAuthorizationGroup
FROM I_InspectionLotWithStatus
;
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