A_InspectionLotWithStatus

DDL: A_INSPECTIONLOTWITHSTATUS SQL: AINSPLOTWSTS Type: view CONSUMPTION Package: ODATA_QM_INSPECTION_API

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)

SourceAliasJoin Type
I_InspectionLotWithStatus I_InspectionLotWithStatus from

Annotations (16)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;