I_SerialNumberHistory
Serial Number History
I_SerialNumberHistory is a Composite CDS View that provides data about "Serial Number History" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceObjectListItem) and exposes 66 fields with key fields MaintenanceObjectList, MaintenanceObjectListItem. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintenanceObjectListItem | I_MaintenanceObjectListItem | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_MaintObjectListCollection | _ObjListCollection | $projection.MaintenanceObjectList = _ObjListCollection.MaintenanceObjectList |
| [0..1] | I_SrlNmbrBizDocObjectTypeText | _ObjectTypeText | $projection.srlnmbrbizdocumentobjecttype = _ObjectTypeText.SrlNmbrBizDocumentObjectType and _ObjectTypeText.Language = $session.system_language |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| EndUserText.label | Serial Number History | view |
Fields (66)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceObjectList | MaintenanceObjectList | ||
| KEY | MaintenanceObjectListItem | MaintenanceObjectListItem | ||
| Equipment | Equipment | |||
| Material | Material | |||
| SerialNumber | SerialNumber | |||
| DeliveryDocument | _ObjListCollection | DeliveryDocument | ||
| DeliveryDocumentItem | _ObjListCollection | DeliveryDocumentItem | ||
| SalesOrder | _ObjListCollection | SalesOrder | ||
| SalesOrderItem | _ObjListCollection | SalesOrderItem | ||
| MaterialDocument | _ObjListCollection | MaterialDocument | ||
| MaterialDocumentItem | _ObjListCollection | MaterialDocumentItem | ||
| MaterialDocumentYear | _ObjListCollection | MaterialDocumentYear | ||
| InspectionLot | _ObjListCollection | InspectionLot | ||
| LogisticsOrder | _ObjListCollection | LogisticsOrder | ||
| OrderItem | _ObjListCollection | OrderItem | ||
| HandlingUnitExternalID | _ObjListCollection | HandlingUnitExternalID | ||
| PhysicalInventoryDocument | _ObjListCollection | PhysicalInventoryDocument | ||
| PhysicalInventoryDocumentItem | _ObjListCollection | PhysicalInventoryDocumentItem | ||
| FiscalYear | _ObjListCollection | FiscalYear | ||
| PurchaseOrder | _ObjListCollection | PurchaseOrder | ||
| PurchaseOrderItem | _ObjListCollection | PurchaseOrderItem | ||
| PurchaseRequisition | _ObjListCollection | PurchaseRequisition | ||
| PurchaseRequisitionItem | _ObjListCollection | PurchaseRequisitionItem | ||
| InternalJITCallNumber | _ObjListCollection | InternalJITCallNumber | ||
| JITCallItemNumber | _ObjListCollection | JITCallItemNumber | ||
| CompGrpNumber | _ObjListCollection | CompGrpNumber | ||
| SerialNumberAssignmentDate | _ObjListCollection | SerialNumberAssignmentDate | ||
| SerialNumberAssignmentTime | _ObjListCollection | SerialNumberAssignmentTime | ||
| Customer | _ObjListCollection | Customer | ||
| CustomerName | _ObjListCollection | CustomerName | ||
| Supplier | _ObjListCollection | Supplier | ||
| SupplierName | _ObjListCollection | SupplierName | ||
| NumberOfSerialNumbers | _ObjListCollection | NumberOfSerialNumbers | ||
| SDDocumentCategory | _ObjListCollection | SDDocumentCategory | ||
| GoodsMovementType | _ObjListCollection | GoodsMovementType | ||
| MovementTypeDescription | _ObjListCollection | MovementTypeDescription | ||
| SalesOrderType | _ObjListCollection | SalesOrderType | ||
| SalesDocumentTypeName | _ObjListCollection | SalesDocumentTypeName | ||
| SalesOrderItemCategory | _ObjListCollection | SalesOrderItemCategory | ||
| AccountingDocumentType | _ObjListCollection | AccountingDocumentType | ||
| AccountingDocumentTypeName | _ObjListCollection | AccountingDocumentTypeName | ||
| Plant | _ObjListCollection | Plant | ||
| PlantName | _ObjListCollection | PlantName | ||
| StorageLocation | _ObjListCollection | StorageLocation | ||
| StorageLocationName | _ObjListCollection | StorageLocationName | ||
| Batch | _ObjListCollection | Batch | ||
| DebitCreditCode | _ObjListCollection | DebitCreditCode | ||
| DebitCreditCodeName | _ObjListCollection | DebitCreditCodeName | ||
| OrderCategory | _ObjListCollection | OrderCategory | ||
| OrderType | _ObjListCollection | OrderType | ||
| OrderTypeName | _ObjListCollection | OrderTypeName | ||
| OrderIsRefurbishmentOrder | _ObjListCollection | OrderIsRefurbishmentOrder | ||
| SerialNumberPhysicalInvtryType | _ObjListCollection | SerialNumberPhysicalInvtryType | ||
| PhysicalInventoryStockType | _ObjListCollection | PhysicalInventoryStockType | ||
| PhysicalInventoryStockTypeName | _ObjListCollection | PhysicalInventoryStockTypeName | ||
| PurchasingDocumentCategory | _ObjListCollection | PurchasingDocumentCategory | ||
| PurchasingDocumentType | _ObjListCollection | PurchasingDocumentType | ||
| PurchasingDocumentTypeName | _ObjListCollection | PurchasingDocumentTypeName | ||
| PurchasingDocumentItemCategory | _ObjListCollection | PurchasingDocumentItemCategory | ||
| ExternalJITCallNumber | _ObjListCollection | ExternalJITCallNumber | ||
| ShipToParty | _ObjListCollection | ShipToParty | ||
| BusinessPartnerName | _ObjListCollection | BusinessPartnerName | ||
| SubcontrgCompOfInbDelivItem | _ObjListCollection | SubcontrgCompOfInbDelivItem | ||
| SrlNmbrBizDocumentObjectType | _ObjListCollection | SrlNmbrBizDocumentObjectType | ||
| _MatlSrlNmbrInfo | _MatlSrlNmbrInfo | |||
| _ObjectTypeText | _ObjectTypeText |
@AccessControl: { authorizationCheck: #MANDATORY,
personalData.blocking: #NOT_REQUIRED }
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #C,
sizeCategory: #XL }
@ObjectModel.supportedCapabilities: [
#SQL_DATA_SOURCE,
#CDS_MODELING_DATA_SOURCE,
#CDS_MODELING_ASSOCIATION_TARGET
]
@EndUserText.label: 'Serial Number History'
define view entity I_SerialNumberHistory
as select from I_MaintenanceObjectListItem
association to parent I_MatlSerialNumberInformation as _MatlSrlNmbrInfo on $projection.Material = _MatlSrlNmbrInfo.Material
and $projection.SerialNumber = _MatlSrlNmbrInfo.SerialNumber
and $projection.Equipment = _MatlSrlNmbrInfo.Equipment
association [1..1] to I_MaintObjectListCollection as _ObjListCollection on $projection.MaintenanceObjectList = _ObjListCollection.MaintenanceObjectList
association [0..1] to I_SrlNmbrBizDocObjectTypeText as _ObjectTypeText on $projection.srlnmbrbizdocumentobjecttype = _ObjectTypeText.SrlNmbrBizDocumentObjectType
and _ObjectTypeText.Language = $session.system_language
{
key MaintenanceObjectList,
key MaintenanceObjectListItem,
Equipment,
Material,
SerialNumber,
_ObjListCollection.DeliveryDocument,
_ObjListCollection.DeliveryDocumentItem,
_ObjListCollection.SalesOrder,
_ObjListCollection.SalesOrderItem,
_ObjListCollection.MaterialDocument,
_ObjListCollection.MaterialDocumentItem,
_ObjListCollection.MaterialDocumentYear,
_ObjListCollection.InspectionLot,
_ObjListCollection.LogisticsOrder,
_ObjListCollection.OrderItem,
_ObjListCollection.HandlingUnitExternalID,
_ObjListCollection.PhysicalInventoryDocument,
_ObjListCollection.PhysicalInventoryDocumentItem,
_ObjListCollection.FiscalYear,
_ObjListCollection.PurchaseOrder,
_ObjListCollection.PurchaseOrderItem,
_ObjListCollection.PurchaseRequisition,
_ObjListCollection.PurchaseRequisitionItem,
_ObjListCollection.InternalJITCallNumber,
_ObjListCollection.JITCallItemNumber,
_ObjListCollection.CompGrpNumber,
_ObjListCollection.SerialNumberAssignmentDate,
_ObjListCollection.SerialNumberAssignmentTime,
_ObjListCollection.Customer,
_ObjListCollection.CustomerName,
_ObjListCollection.Supplier,
_ObjListCollection.SupplierName,
_ObjListCollection.NumberOfSerialNumbers,
_ObjListCollection.SDDocumentCategory,
_ObjListCollection.GoodsMovementType,
_ObjListCollection.MovementTypeDescription,
_ObjListCollection.SalesOrderType,
_ObjListCollection.SalesDocumentTypeName,
_ObjListCollection.SalesOrderItemCategory,
_ObjListCollection.AccountingDocumentType,
_ObjListCollection.AccountingDocumentTypeName,
_ObjListCollection.Plant,
_ObjListCollection.PlantName,
_ObjListCollection.StorageLocation,
_ObjListCollection.StorageLocationName,
_ObjListCollection.Batch,
_ObjListCollection.DebitCreditCode,
_ObjListCollection.DebitCreditCodeName,
_ObjListCollection.OrderCategory,
_ObjListCollection.OrderType,
_ObjListCollection.OrderTypeName,
_ObjListCollection.OrderIsRefurbishmentOrder,
_ObjListCollection.SerialNumberPhysicalInvtryType,
_ObjListCollection.PhysicalInventoryStockType,
_ObjListCollection.PhysicalInventoryStockTypeName,
_ObjListCollection.PurchasingDocumentCategory,
_ObjListCollection.PurchasingDocumentType,
_ObjListCollection.PurchasingDocumentTypeName,
_ObjListCollection.PurchasingDocumentItemCategory,
_ObjListCollection.ExternalJITCallNumber,
_ObjListCollection.ShipToParty,
_ObjListCollection.BusinessPartnerName,
_ObjListCollection.SubcontrgCompOfInbDelivItem,
_ObjListCollection.SrlNmbrBizDocumentObjectType,
_MatlSrlNmbrInfo,
_ObjectTypeText
}
where MaintenanceObjectListUsageCode = 'S'
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