I_EWM_StockWithMaterialAndBat
Stock Material with Batch
I_EWM_StockWithMaterialAndBat is a Basic CDS View that provides data about "Stock Material with Batch" in SAP S/4HANA. It reads from 1 data source (/scwm/stock_iw02) and exposes 11 fields with key fields Warehouse, ProductUUID, BatchUUID, StockType, StockUsage.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| /scwm/stock_iw02 | /scwm/stock_iw02 | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IEWMSTKMATBAT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Stock Material with Batch | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | I_EWM_StkWthMatlAndBat_2 | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Warehouse | lgnum_stock | ||
| KEY | ProductUUID | |||
| KEY | BatchUUID | batchid | ||
| KEY | StockType | cat | ||
| KEY | StockUsage | stock_usage | ||
| KEY | StockOwner | owner | ||
| KEY | StockOwnerPartnerRole | owner_role | ||
| KEY | EntitledToDisposeParty | entitled | ||
| KEY | EntitledToDisposePartnerRole | entitled_role | ||
| KEY | CounterForStockSeparation | stock_cnt | ||
| StockItemUUID | guid_stock |
@AbapCatalog.sqlViewName: 'IEWMSTKMATBAT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.viewType:#BASIC
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Stock Material with Batch'
@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: 'I_EWM_StkWthMatlAndBat_2'
define view I_EWM_StockWithMaterialAndBat
as select from /scwm/stock_iw02
{
///scwm/stock_iw02
key lgnum_stock as Warehouse,
key cast( matid as raw16 preserving type ) as ProductUUID,
key batchid as BatchUUID,
key cat as StockType,
key stock_usage as StockUsage,
key owner as StockOwner,
key owner_role as StockOwnerPartnerRole,
key entitled as EntitledToDisposeParty,
key entitled_role as EntitledToDisposePartnerRole,
key stock_cnt as CounterForStockSeparation,
guid_stock as StockItemUUID
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"/SCWM/STOCK_IW02"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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