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 (P_SerialNumberHistoryUnion) and exposes 66 fields with key fields Equipment, SerialNumberBusinessDocument, SrlNmbrBusinessDocumentItem, SrlNmbrBizDocAdditionalKey1, SrlNmbrBizDocAdditionalKey2. It has 3 associations to related views. Part of development package ODATA_LO_SN_HISTORY.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_SerialNumberHistoryUnion | P_SerialNumberHistoryUnion | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SrlNmbrBizDocObjectTypeText | _ObjectTypeText | $projection.SrlNmbrBizDocumentObjectType = _ObjectTypeText.SrlNmbrBizDocumentObjectType and _ObjectTypeText.Language = $session.system_language |
| [0..1] | I_SalesDocumentItem | _SalesDocumentItem | $projection.SalesOrder = _SalesDocumentItem.SalesDocument and $projection.SalesOrderItem = _SalesDocumentItem.SalesDocumentItem |
| [0..1] | I_DeliveryDocumentItem | _DeliveryDocumentItem | $projection.DeliveryDocument = _DeliveryDocumentItem.DeliveryDocument and $projection.DeliveryDocumentItem = _DeliveryDocumentItem.DeliveryDocumentItem |
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 | Equipment | Equipment | ||
| KEY | SerialNumberBusinessDocument | SerialNumberBusinessDocument | ||
| KEY | SrlNmbrBusinessDocumentItem | SrlNmbrBusinessDocumentItem | ||
| KEY | SrlNmbrBizDocAdditionalKey1 | SrlNmbrBizDocAdditionalKey1 | ||
| KEY | SrlNmbrBizDocAdditionalKey2 | SrlNmbrBizDocAdditionalKey2 | ||
| KEY | SrlNmbrBizDocumentObjectType | SrlNmbrBizDocumentObjectType | ||
| Material | Material | |||
| SerialNumber | SerialNumber | |||
| MaintenanceObjectList | MaintenanceObjectList | |||
| MaintenanceObjectListItem | MaintenanceObjectListItem | |||
| DeliveryDocument | DeliveryDocument | |||
| DeliveryDocumentItem | DeliveryDocumentItem | |||
| SalesOrder | SalesOrder | |||
| SalesOrderItem | SalesOrderItem | |||
| MaterialDocumentItem | MaterialDocumentItem | |||
| MaterialDocumentYear | MaterialDocumentYear | |||
| OrderItem | OrderItem | |||
| PhysicalInventoryDocumentItem | PhysicalInventoryDocumentItem | |||
| FiscalYear | FiscalYear | |||
| SerialNumberPhysicalInvtryType | SerialNumberPhysicalInvtryType | |||
| PurchaseOrderItem | PurchaseOrderItem | |||
| PurchaseRequisitionItem | PurchaseRequisitionItem | |||
| JITCallItemNumber | JITCallItemNumber | |||
| CompGrpNumber | CompGrpNumber | |||
| clientNULLasSerialNumberAssignmentDate | ||||
| SerialNumberAssignmentDateTime | SerialNumberAssignmentDateTime | |||
| UserEnteredTimeZone | UserEnteredTimeZone | |||
| Customer | Customer | |||
| CustomerName | CustomerName | |||
| Supplier | Supplier | |||
| SupplierName | SupplierName | |||
| NumberOfSerialNumbers | NumberOfSerialNumbers | |||
| SDDocumentCategory | SDDocumentCategory | |||
| GoodsMovementType | GoodsMovementType | |||
| MovementTypeDescription | MovementTypeDescription | |||
| SalesOrderType | SalesOrderType | |||
| SalesDocumentTypeName | SalesDocumentTypeName | |||
| SalesOrderItemCategory | SalesOrderItemCategory | |||
| AccountingDocumentType | AccountingDocumentType | |||
| AccountingDocumentTypeName | AccountingDocumentTypeName | |||
| Plant | Plant | |||
| PlantName | PlantName | |||
| StorageLocation | StorageLocation | |||
| StorageLocationName | StorageLocationName | |||
| Batch | Batch | |||
| DebitCreditCode | DebitCreditCode | |||
| DebitCreditCodeName | DebitCreditCodeName | |||
| OrderCategory | OrderCategory | |||
| OrderType | OrderType | |||
| OrderTypeName | OrderTypeName | |||
| OrderIsRefurbishmentOrder | OrderIsRefurbishmentOrder | |||
| SrlNumberPhysicalInvtryTypeTxt | SrlNumberPhysicalInvtryTypeTxt | |||
| PhysicalInventoryStockType | PhysicalInventoryStockType | |||
| PhysicalInventoryStockTypeName | PhysicalInventoryStockTypeName | |||
| PurchasingDocumentCategory | PurchasingDocumentCategory | |||
| PurchasingDocumentType | PurchasingDocumentType | |||
| PurchasingDocumentTypeName | PurchasingDocumentTypeName | |||
| PurchasingDocumentItemCategory | PurchasingDocumentItemCategory | |||
| ExternalJITCallNumber | ExternalJITCallNumber | |||
| ShipToParty | ShipToParty | |||
| BusinessPartnerName | BusinessPartnerName | |||
| SubcontrgCompOfInbDelivItem | SubcontrgCompOfInbDelivItem | |||
| _MatlSrlNmbrInfo | _MatlSrlNmbrInfo | |||
| _ObjectTypeText | _ObjectTypeText | |||
| _DeliveryDocumentItem | _DeliveryDocumentItem | |||
| _SalesDocumentItem | _SalesDocumentItem |
@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 P_SerialNumberHistoryUnion
association to parent I_MatlSerialNumberInformation as _MatlSrlNmbrInfo on $projection.Equipment = _MatlSrlNmbrInfo.Equipment
association [0..1] to I_SrlNmbrBizDocObjectTypeText as _ObjectTypeText on $projection.SrlNmbrBizDocumentObjectType = _ObjectTypeText.SrlNmbrBizDocumentObjectType
and _ObjectTypeText.Language = $session.system_language
association [0..1] to I_SalesDocumentItem as _SalesDocumentItem on $projection.SalesOrder = _SalesDocumentItem.SalesDocument
and $projection.SalesOrderItem = _SalesDocumentItem.SalesDocumentItem
association [0..1] to I_DeliveryDocumentItem as _DeliveryDocumentItem on $projection.DeliveryDocument = _DeliveryDocumentItem.DeliveryDocument
and $projection.DeliveryDocumentItem = _DeliveryDocumentItem.DeliveryDocumentItem
{
key Equipment,
key SerialNumberBusinessDocument,
key SrlNmbrBusinessDocumentItem,
key SrlNmbrBizDocAdditionalKey1,
key SrlNmbrBizDocAdditionalKey2,
key SrlNmbrBizDocumentObjectType,
Material,
SerialNumber,
MaintenanceObjectList,
MaintenanceObjectListItem,
DeliveryDocument,
DeliveryDocumentItem,
SalesOrder,
SalesOrderItem,
MaterialDocumentItem,
MaterialDocumentYear,
OrderItem,
PhysicalInventoryDocumentItem,
FiscalYear,
SerialNumberPhysicalInvtryType,
PurchaseOrderItem,
PurchaseRequisitionItem,
JITCallItemNumber,
CompGrpNumber,
tstmp_to_dats(SerialNumberAssignmentDateTime,
UserEnteredTimeZone,
$session.client, 'NULL' ) as SerialNumberAssignmentDate,
// tstmp_to_tims(SerialNumberAssignmentDateTime,
// UserEnteredTimeZone,
// $session.client, 'NULL' ) as SerialNumberAssignmentTime,
@Semantics.dateTime: true
@Semantics.timeZoneReference: 'UserEnteredTimeZone'
SerialNumberAssignmentDateTime,
UserEnteredTimeZone,
Customer,
CustomerName,
Supplier,
SupplierName,
NumberOfSerialNumbers,
SDDocumentCategory,
GoodsMovementType,
MovementTypeDescription,
SalesOrderType,
SalesDocumentTypeName,
SalesOrderItemCategory,
AccountingDocumentType,
AccountingDocumentTypeName,
Plant,
PlantName,
StorageLocation,
StorageLocationName,
Batch,
DebitCreditCode,
DebitCreditCodeName,
OrderCategory,
OrderType,
OrderTypeName,
OrderIsRefurbishmentOrder,
SrlNumberPhysicalInvtryTypeTxt,
PhysicalInventoryStockType,
PhysicalInventoryStockTypeName,
PurchasingDocumentCategory,
PurchasingDocumentType,
PurchasingDocumentTypeName,
PurchasingDocumentItemCategory,
ExternalJITCallNumber,
ShipToParty,
BusinessPartnerName,
SubcontrgCompOfInbDelivItem,
_MatlSrlNmbrInfo,
_ObjectTypeText,
_DeliveryDocumentItem,
_SalesDocumentItem
}
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