I_SerialNumberStockSegment
Serial Number Stock Segment
I_SerialNumberStockSegment is a Basic CDS View (Dimension) that provides data about "Serial Number Stock Segment" in SAP S/4HANA. It reads from 2 data sources (I_Equipment, I_EquipmentStockSegment) and exposes 27 fields with key fields Material, SerialNumber.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_Equipment | e | inner |
| I_EquipmentStockSegment | ess | from |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISERNUMSTOCKSEG | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Serial Number Stock Segment | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.representativeKey | SerialNumber | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | I_Equipment | Material | |
| KEY | SerialNumber | I_Equipment | SerialNumber | |
| Equipment | I_EquipmentStockSegment | Equipment | ||
| Plant | I_EquipmentStockSegment | Plant | ||
| StorageLocation | I_EquipmentStockSegment | StorageLocation | ||
| Customer | I_EquipmentStockSegment | Customer | ||
| Supplier | I_EquipmentStockSegment | Supplier | ||
| SalesOrder | I_EquipmentStockSegment | SalesOrder | ||
| SalesOrderItem | I_EquipmentStockSegment | SalesOrderItem | ||
| InventorySpecialStockType | I_EquipmentStockSegment | InventorySpecialStockType | ||
| WBSElementInternalID | I_EquipmentStockSegment | WBSElementInternalID | ||
| Batch | I_EquipmentStockSegment | Batch | ||
| InventoryStockType | I_EquipmentStockSegment | InventoryStockType | ||
| StockOwner | I_EquipmentStockSegment | StockOwner | ||
| _Material | I_Equipment | _Material | ||
| _Equipment | I_EquipmentStockSegment | _Equipment | ||
| _Plant | I_EquipmentStockSegment | _Plant | ||
| _StorageLocation | I_EquipmentStockSegment | _StorageLocation | ||
| _SalesOrder | I_EquipmentStockSegment | _SalesOrder | ||
| _SalesOrderItem | I_EquipmentStockSegment | _SalesOrderItem | ||
| _Customer | I_EquipmentStockSegment | _Customer | ||
| _CustomerCompanyByPlant | I_EquipmentStockSegment | _CustomerCompanyByPlant | ||
| _Supplier | I_EquipmentStockSegment | _Supplier | ||
| _SupplierCompanyByPlant | I_EquipmentStockSegment | _SupplierCompanyByPlant | ||
| _InventoryStockType | I_EquipmentStockSegment | _InventoryStockType | ||
| _InventorySpecialStockType | I_EquipmentStockSegment | _InventorySpecialStockType | ||
| _WBSElementByInternalKey | I_EquipmentStockSegment | _WBSElementByInternalKey |
@AbapCatalog.sqlViewName: 'ISERNUMSTOCKSEG'
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@EndUserText.label: 'Serial Number Stock Segment'
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@ObjectModel.representativeKey: 'SerialNumber'
@ObjectModel.semanticKey: [ 'Material', 'SerialNumber' ]
@ObjectModel.supportedCapabilities: [
#SQL_DATA_SOURCE,
#CDS_MODELING_DATA_SOURCE,
#CDS_MODELING_ASSOCIATION_TARGET,
#ANALYTICAL_DIMENSION
]
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L
@Analytics: {dataCategory: #DIMENSION }
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
define view I_SerialNumberStockSegment
as select from I_EquipmentStockSegment as ess
inner join I_Equipment as e
on ess.Equipment = e.Equipment
{
@ObjectModel.foreignKey.association: '_Material'
key e.Material,
key e.SerialNumber,
@ObjectModel.foreignKey.association: '_Equipment'
ess.Equipment,
@ObjectModel.foreignKey.association: '_Plant'
ess.Plant,
@ObjectModel.foreignKey.association: '_StorageLocation'
ess.StorageLocation,
@ObjectModel.foreignKey.association: '_Customer'
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_Customer_VH',
element: 'Customer' }
}]
ess.Customer,
@ObjectModel.foreignKey.association: '_Supplier'
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_Supplier_VH',
element: 'Supplier' }
}]
ess.Supplier,
@ObjectModel.foreignKey.association: '_SalesOrder'
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_SalesOrderStdVH',
element: 'SalesOrder' }
}]
ess.SalesOrder,
@ObjectModel.foreignKey.association: '_SalesOrderItem'
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_SalesOrderItemStdVH',
element: 'SalesOrderItem' },
additionalBinding: [{ localElement: 'SalesOrder',
element: 'SalesOrder' }]
}]
ess.SalesOrderItem,
@ObjectModel.foreignKey.association: '_InventorySpecialStockType'
ess.InventorySpecialStockType,
@ObjectModel.foreignKey.association: '_WBSElementByInternalKey'
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_WBSElmntByIntKeyStdVH',
element: 'WBSElementInternalID' }
}]
ess.WBSElementInternalID,
ess.Batch,
ess.InventoryStockType,
ess.StockOwner,
// associations
e._Material,
ess._Equipment,
ess._Plant,
ess._StorageLocation,
ess._SalesOrder,
ess._SalesOrderItem,
ess._Customer,
ess._CustomerCompanyByPlant,
ess._Supplier,
ess._SupplierCompanyByPlant,
ess._InventoryStockType,
ess._InventorySpecialStockType,
ess._WBSElementByInternalKey
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_EQUIPMENT",
"I_EQUIPMENTSTOCKSEGMENT"
],
"ASSOCIATED":
[
"I_CUSTOMER",
"I_CUSTOMERCOMPANYBYPLANT",
"I_EQUIPMENT",
"I_INVENTORYSPECIALSTOCKTYPE",
"I_INVENTORYSTOCKTYPE",
"I_MATERIAL",
"I_PLANT",
"I_SALESORDER",
"I_SALESORDERITEM",
"I_STORAGELOCATION",
"I_SUPPLIER",
"I_SUPPLIERCOMPANYBYPLANT",
"I_WBSELEMENTBYINTERNALKEY"
],
"BASE":
[
"I_EQUIPMENT",
"I_EQUIPMENTSTOCKSEGMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"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