I_InspLotMatlDocItem

DDL: I_INSPLOTMATLDOCITEM SQL: IINSPLOTMATLDOCI Type: view BASIC

Material Document Item in Inspection Lot

I_InspLotMatlDocItem (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Manufacturing

I_InspLotMatlDocItem is a Basic CDS View that provides data about "Material Document Item in Inspection Lot" in SAP S/4HANA. It reads from 1 data source (qamb) and exposes 11 fields with key fields InspectionLot, InspLotMatlDocItem. It has 3 associations to related views.

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentQM-IM
CapabilitiesData Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides access to the reference of a material document in an inspection lot.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
qamb qamb from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_InspectionLot _InspectionLot $projection.InspectionLot = _InspectionLot.InspectionLot
[1..1] I_InspLotMatlDocItemType _InspLotMatlDocItemType $projection.InspLotMatlDocItemType = _InspLotMatlDocItemType.InspLotMatlDocItemType
[1..1] I_GoodsMovementDocument _GoodsMovementDocument $projection.MaterialDocument = _GoodsMovementDocument.MaterialDocument and $projection.MaterialDocumentItem = _GoodsMovementDocument.MaterialDocumentItem and $projection.MaterialDocumentYear = _GoodsMovementDocument.MaterialDocumentYear and _GoodsMovementDocument.MaterialDocumentRecordType = 'MDOC'

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IINSPLOTMATLDOCI view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Material Document Item in Inspection Lot view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
Metadata.ignorePropagatedAnnotations true view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot prueflos Inspection Lot Number
KEY InspLotMatlDocItem zaehler Internal Counter for DB Objects
InspLotMatlDocItemType typ Type of Reference Between Inspection Lot and Material Doc.
MaterialDocument mblnr Number of Material Document
MaterialDocumentYear mjahr Material Document Year
MaterialDocumentItem zeile Item in Material Document
CreationDate cpudt Day On Which Accounting Document Was Entered
UsageDecisionStockType ud_stock_type Posting Proposal in Usage Decision
_InspLotMatlDocItemType _InspLotMatlDocItemType
_InspectionLot _InspectionLot
_GoodsMovementDocument _GoodsMovementDocument

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_InspLotMatlDocItem.
-- 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: IINSPLOTMATLDOCI

CREATE VIEW I_InspLotMatlDocItem AS
SELECT
  prueflos AS InspectionLot,
  zaehler AS InspLotMatlDocItem,
  typ AS InspLotMatlDocItemType,
  mblnr AS MaterialDocument,
  mjahr AS MaterialDocumentYear,
  zeile AS MaterialDocumentItem,
  cpudt AS CreationDate,
  ud_stock_type AS UsageDecisionStockType
FROM qamb
LEFT OUTER JOIN I_InspectionLot AS _InspectionLot ON InspectionLot = _InspectionLot.InspectionLot  -- association [1..1]
LEFT OUTER JOIN I_InspLotMatlDocItemType AS _InspLotMatlDocItemType ON InspLotMatlDocItemType = _InspLotMatlDocItemType.InspLotMatlDocItemType  -- association [1..1]
LEFT OUTER JOIN I_GoodsMovementDocument AS _GoodsMovementDocument ON MaterialDocument = _GoodsMovementDocument.MaterialDocument AND MaterialDocumentItem = _GoodsMovementDocument.MaterialDocumentItem AND MaterialDocumentYear = _GoodsMovementDocument.MaterialDocumentYear AND _GoodsMovementDocument.MaterialDocumentRecordType = 'MDOC'  -- association [1..1]
;