I_InspectionReportHeader

DDL: I_INSPECTIONREPORTHEADER SQL: IINSPREPHEAD Type: view_entity COMPOSITE Package: QLOM

Inspection Report Header Information

I_InspectionReportHeader is a Composite CDS View that provides data about "Inspection Report Header Information" in SAP S/4HANA. It reads from 1 data source (I_InspectionLot) and exposes 48 fields with key field InspectionLot. It has 12 associations to related views. Part of development package QLOM.

Data Sources (1)

SourceAliasJoin Type
I_InspectionLot _InspectionLot from

Associations (12)

CardinalityTargetAliasCondition
[0..*] I_InspectionOperation _InspectionOperation $projection.InspectionLot = _InspectionOperation.InspectionLot
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_InspLotUsageDecision _InspLotUsageDecision $projection.InspectionLot = _InspLotUsageDecision.InspectionLot
[1..1] I_Indicator _InspectionLotHasUsgeDcsn $projection.InspectionLotHasUsageDecision = _InspectionLotHasUsgeDcsn.IndicatorValue
[0..*] I_Indicatortext _InspectionLotHasUsgeDcsnTxt $projection.InspectionLotHasUsageDecision = _InspectionLotHasUsgeDcsnTxt.IndicatorValue
[1..1] I_InspectionLotOrigin _InspectionLotOrigin $projection.InspectionLotOrigin = _InspectionLotOrigin.InspectionLotOrigin
[1..1] I_InspectionLotType _InspectionLotType $projection.InspectionLotType = _InspectionLotType.InspectionLotType
[0..1] I_BillOfOperationsChangeState _BillOfOperationsChangeState $projection.BillOfOperationsType = _BillOfOperationsChangeState.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsChangeState.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperationsChangeState.BillOfOperationsVariant and $projection.BillOfOperationsChangeStateID = _BillOfOperationsChangeState.BOOInternalVersionCounter
[0..1] I_InspectionLotWithStatus _InspectionLotWithStatus $projection.InspectionLot = _InspectionLotWithStatus.InspectionLot
[1..1] E_InspectionLot _Extension $projection.InspectionLot = _Extension.InspectionLot
[0..*] I_InspLotSerialNumber _InspLotSerialNumber $projection.InspectionLot = _InspLotSerialNumber.InspectionLot

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #X view
VDM.viewType #COMPOSITE view
EndUserText.label Inspection Report Header Information view
AbapCatalog.extensibility.extensible true view
AbapCatalog.extensibility.elementSuffix IRP view
AbapCatalog.extensibility.allowNewDatasources false view
AbapCatalog.extensibility.quota.maximumFields 250 view
AbapCatalog.extensibility.quota.maximumBytes 2500 view

Fields (48)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot InspectionLot Inspection Lot
Material Material Vehicle Model
Batch Batch Lot No.
Plant Plant Valuation Area
BillOfOperationsGroup BillOfOperationsGroup Group
BillOfOperationsType BillOfOperationsType Task List Type
BillOfOperationsVariant BillOfOperationsVariant Group Counter
BillOfOperationsChangeStateID BillOfOperationsChangeStateID Sort pos.
InspectionLotOrigin InspectionLotOrigin
InspectionLotType InspectionLotType Inspection Type
InspectionLotQuantity InspectionLotQuantity
InspectionLotQuantityUnit InspectionLotQuantityUnit Sample UOM
InspectionLotText InspectionLotText
InspectionLotObjectText InspectionLotObjectText Obj short text
InspectionLotSampleQuantity InspectionLotSampleQuantity Sample Size
InspectionLotSampleUnit InspectionLotSampleUnit
InspectionLotStartDate InspectionLotStartDate Start Date
InspectionLotStartTime InspectionLotStartTime
InspectionLotEndDate InspectionLotEndDate End Date
InspectionLotEndTime InspectionLotEndTime
MaterialIsBatchManaged MaterialIsBatchManaged
InspectionLotHasPartialLots InspectionLotHasPartialLots Partial Lots
InspectionLotHasUsageDecision InspectionLotHasUsageDecision
InspLotHasSubsets InspLotHasSubsets Prod. insp.
InspectionSubsetType InspectionSubsetType
InspSubsetFieldCombination InspSubsetFieldCombination Field Combinat.
InspLotUsgeDcsnValuationText
InspectionLotDefectPresentText
InspReportUserCurrentTime
InspReportUserCurrentDate
Customer Customer Sold-to Party
Supplier Supplier Supplier
Language Language Report Text Language
IsBusinessPurposeCompleted IsBusinessPurposeCompleted Purpose Completed
MatlQualityAuthorizationGroup MatlQualityAuthorizationGroup QM Matl Auth.
InspLotUsageDecisionCodeGroup _InspLotUsageDecision InspLotUsageDecisionCodeGroup
InspLotStsDefectsRecorded _InspectionLotWithStatus InspLotStsDefectsRecorded
_Supplier _Supplier
_Customer _Customer
_InspLotUsageDecision _InspLotUsageDecision
_InspectionLotHasUsgeDcsn _InspectionLotHasUsgeDcsn
_InspectionLotHasUsgeDcsnTxt _InspectionLotHasUsgeDcsnTxt
_InspectionLotOrigin _InspectionLotOrigin
_InspectionLotType _InspectionLotType
_BillOfOperationsChangeState _BillOfOperationsChangeState
_InspectionOperation _InspectionOperation
_InspectionLotWithStatus _InspectionLotWithStatus
_InspLotSerialNumber _InspLotSerialNumber

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_InspectionReportHeader.
-- 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: IINSPREPHEAD

CREATE VIEW I_InspectionReportHeader AS
SELECT
  InspectionLot,
  Material,
  Batch,
  Plant,
  BillOfOperationsGroup,
  BillOfOperationsType,
  BillOfOperationsVariant,
  BillOfOperationsChangeStateID,
  InspectionLotOrigin,
  InspectionLotType,
  InspectionLotQuantity,
  InspectionLotQuantityUnit,
  InspectionLotText,
  InspectionLotObjectText,
  InspectionLotSampleQuantity,
  InspectionLotSampleUnit,
  InspectionLotStartDate,
  InspectionLotStartTime,
  InspectionLotEndDate,
  InspectionLotEndTime,
  MaterialIsBatchManaged,
  InspectionLotHasPartialLots,
  InspectionLotHasUsageDecision,
  InspLotHasSubsets,
  InspectionSubsetType,
  InspSubsetFieldCombination,
  cast( '' as qloszust ) AS InspLotUsgeDcsnValuationText,
  cast( '' as qzustfehl ) AS InspectionLotDefectPresentText,
  cast( '' as tims ) AS InspReportUserCurrentTime,
  cast( '' as dats ) AS InspReportUserCurrentDate,
  Customer,
  Supplier,
  Language,
  IsBusinessPurposeCompleted,
  MatlQualityAuthorizationGroup,
  _InspLotUsageDecision.InspLotUsageDecisionCodeGroup AS InspLotUsageDecisionCodeGroup,
  _InspectionLotWithStatus.InspLotStsDefectsRecorded AS InspLotStsDefectsRecorded
FROM I_InspectionLot AS _InspectionLot
LEFT OUTER JOIN I_InspectionOperation AS _InspectionOperation ON InspectionLot = _InspectionOperation.InspectionLot  -- association [0..*]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_InspLotUsageDecision AS _InspLotUsageDecision ON InspectionLot = _InspLotUsageDecision.InspectionLot  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _InspectionLotHasUsgeDcsn ON InspectionLotHasUsageDecision = _InspectionLotHasUsgeDcsn.IndicatorValue  -- association [1..1]
LEFT OUTER JOIN I_Indicatortext AS _InspectionLotHasUsgeDcsnTxt ON InspectionLotHasUsageDecision = _InspectionLotHasUsgeDcsnTxt.IndicatorValue  -- association [0..*]
LEFT OUTER JOIN I_InspectionLotOrigin AS _InspectionLotOrigin ON InspectionLotOrigin = _InspectionLotOrigin.InspectionLotOrigin  -- association [1..1]
LEFT OUTER JOIN I_InspectionLotType AS _InspectionLotType ON InspectionLotType = _InspectionLotType.InspectionLotType  -- association [1..1]
LEFT OUTER JOIN I_BillOfOperationsChangeState AS _BillOfOperationsChangeState ON BillOfOperationsType = _BillOfOperationsChangeState.BillOfOperationsType AND BillOfOperationsGroup = _BillOfOperationsChangeState.BillOfOperationsGroup AND BillOfOperationsVariant = _BillOfOperationsChangeState.BillOfOperationsVariant AND BillOfOperationsChangeStateID = _BillOfOperationsChangeState.BOOInternalVersionCounter  -- association [0..1]
LEFT OUTER JOIN I_InspectionLotWithStatus AS _InspectionLotWithStatus ON InspectionLot = _InspectionLotWithStatus.InspectionLot  -- association [0..1]
LEFT OUTER JOIN E_InspectionLot AS _Extension ON InspectionLot = _Extension.InspectionLot  -- association [1..1]
LEFT OUTER JOIN I_InspLotSerialNumber AS _InspLotSerialNumber ON InspectionLot = _InspLotSerialNumber.InspectionLot  -- association [0..*]
;