I_FldLogsBatchStockQty
Stock qty for batch active material
I_FldLogsBatchStockQty is a Basic CDS View that provides data about "Stock qty for batch active material" in SAP S/4HANA. It reads from 1 data source (matdoc_extract) and exposes 12 fields with key fields MaterialDocumentKey1, MaterialDocumentKey2, MaterialDocumentKey3, MaterialDocumentKey4, MaterialDocumentKey5.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| matdoc_extract | matdoc_extract | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IFLBATCHSTK | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Stock qty for batch active material | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| VDM.viewType | #BASIC | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaterialDocumentKey1 | key1 | INT4 | |
| KEY | MaterialDocumentKey2 | key2 | Character Field of Length 12 | |
| KEY | MaterialDocumentKey3 | key3 | INT2 | |
| KEY | MaterialDocumentKey4 | key4 | BO Key Part (4) | |
| KEY | MaterialDocumentKey5 | key5 | BO Key Part (5) | |
| KEY | MaterialDocumentKey6 | key6 | BO Key Part (6) | |
| Material | matbf | Stock Mat. | ||
| FldLogsRemotePlant | werks | Receiving Plant | ||
| RemoteStorageLocation | lgort_sid | Stor. Location SID | ||
| Batch | charg_sid | Batch SID | ||
| WBSElementInternalID | WBSElem of Inv. | |||
| FldLogsRemoteQuantity | stock_qty_l1 | Stock Qty CDS on BL |
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_FldLogsBatchStockQty.
-- 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: IFLBATCHSTK
CREATE VIEW I_FldLogsBatchStockQty AS
SELECT
key1 AS MaterialDocumentKey1,
key2 AS MaterialDocumentKey2,
key3 AS MaterialDocumentKey3,
key4 AS MaterialDocumentKey4,
key5 AS MaterialDocumentKey5,
key6 AS MaterialDocumentKey6,
matbf AS Material,
werks AS FldLogsRemotePlant,
lgort_sid AS RemoteStorageLocation,
charg_sid AS Batch,
cast(mat_pspnr as ps_s4_pspnr) AS WBSElementInternalID,
stock_qty_l1 AS FldLogsRemoteQuantity
FROM matdoc_extract
;
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