A_InspLotMatlDocItem
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.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_InspLotMatlDocItmGdsMvt | I_InspLotMatlDocItmGdsMvt | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | A_InspectionLot | _InspectionLot | $projection.InspectionLot = _InspectionLot.InspectionLot |
| [0..*] | A_InspLotMatlDocItmSrlNmbr | _InspLotMatlDocItmSrlNmbr | $projection.InspectionLot = _InspLotMatlDocItmSrlNmbr.InspectionLot and $projection.InspLotMatlDocItem = _InspLotMatlDocItmSrlNmbr.InspLotMatlDocItem |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | AINSPLMATDOCITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | Transfer Material | ||
| InspLotBatchTransferredTo | InspLotBatchTransferredTo | Transfer Batch | ||
| 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.
-- SQL view name: AINSPLMATDOCITEM
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..*]
;
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