A_InspLotMatlDocItem

DDL: A_INSPLOTMATLDOCITEM Type: view_entity CONSUMPTION Package: ODATA_QM_INSPECTION_API

Stock Postings

A_InspLotMatlDocItem is a Consumption CDS View that provides data about "Stock Postings" in SAP S/4HANA. It reads from 1 data source (I_InspLotMatlDocItmGdsMvt) and exposes 17 fields with key fields InspectionLot, InspLotMatlDocItem. It has 2 associations to related views. Part of development package ODATA_QM_INSPECTION_API.

Data Sources (1)

SourceAliasJoin Type
I_InspLotMatlDocItmGdsMvt I_InspLotMatlDocItmGdsMvt from

Associations (2)

CardinalityTargetAliasCondition
[1..1] A_InspectionLot _InspectionLot $projection.InspectionLot = _InspectionLot.InspectionLot
[0..*] A_InspLotMatlDocItmSrlNmbr _InspLotMatlDocItmSrlNmbr $projection.InspectionLot = _InspLotMatlDocItmSrlNmbr.InspectionLot and $projection.InspLotMatlDocItem = _InspLotMatlDocItmSrlNmbr.InspLotMatlDocItem

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
EndUserText.label Stock Postings view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled false view
ObjectModel.deleteEnabled false view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot InspectionLot Inspection Lot
KEY InspLotMatlDocItem InspLotMatlDocItem
InspLotQtyPosted InspLotQtyPosted Quantity in Unit of Entry
InspLotMatlDocItmQtyUnit InspLotMatlDocItmQtyUnit Unit of Entry
UsageDecisionStockType UsageDecisionStockType
StorageLocation StorageLocation StorageLocation
InspLotMaterialPostedTo InspLotMaterialPostedTo
InspLotBatchTransferredTo InspLotBatchTransferredTo
MaterialDocumentItemText MaterialDocumentItemText Text
InspLotMatlDocItemType InspLotMatlDocItemType
MaterialDocument MaterialDocument Material Doc.
MaterialDocumentYear MaterialDocumentYear Material Document Year
MaterialDocumentItem MaterialDocumentItem Material Document Item
CreationDate CreationDate Time Stamp
ChangedDateTime _InspectionLot ChangedDateTime Time Stamp
_InspectionLot _InspectionLot
_InspLotMatlDocItmSrlNmbr _InspLotMatlDocItmSrlNmbr

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_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.

CREATE VIEW A_InspLotMatlDocItem AS
SELECT
  InspectionLot,
  InspLotMatlDocItem,
  InspLotQtyPosted,
  InspLotMatlDocItmQtyUnit,
  UsageDecisionStockType,
  StorageLocation,
  InspLotMaterialPostedTo,
  InspLotBatchTransferredTo,
  MaterialDocumentItemText,
  InspLotMatlDocItemType,
  MaterialDocument,
  MaterialDocumentYear,
  MaterialDocumentItem,
  CreationDate,
  _InspectionLot.ChangedDateTime AS ChangedDateTime
FROM I_InspLotMatlDocItmGdsMvt
LEFT OUTER JOIN A_InspectionLot AS _InspectionLot ON InspectionLot = _InspectionLot.InspectionLot  -- association [1..1]
LEFT OUTER JOIN A_InspLotMatlDocItmSrlNmbr AS _InspLotMatlDocItmSrlNmbr ON InspectionLot = _InspLotMatlDocItmSrlNmbr.InspectionLot AND InspLotMatlDocItem = _InspLotMatlDocItmSrlNmbr.InspLotMatlDocItem  -- association [0..*]
;