C_SerialNumberHistory
Serial Number History
C_SerialNumberHistory is a Consumption CDS View that provides data about "Serial Number History" in SAP S/4HANA. It reads from 1 data source (I_SerialNumberHistory) and exposes 56 fields with key fields Equipment, SerialNumberBusinessDocument, SrlNmbrBusinessDocumentItem, SrlNmbrBizDocAdditionalKey1, SrlNmbrBizDocAdditionalKey2. It is exposed through 2 OData services (ASQL_F7368, UI_SERIALNUMBER_HISTORY_V4). Part of development package ODATA_LO_SN_HISTORY.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SerialNumberHistory | I_SerialNumberHistory | projection |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| EndUserText.label | Serial Number History | view | |
| Metadata.allowExtensions | true | view |
OData Services (2)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F7368 | ASQL_F7368 | C2 | NOT_RELEASED | |
| UI_SERIALNUMBER_HISTORY_V4 | UI_SERIALNUMBER_HISTORY_V4 | V4 | C1 | NOT_TO_BE_RELEASED_STABLE |
Fields (56)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Equipment | Equipment | Equipment check | |
| KEY | SerialNumberBusinessDocument | SerialNumberBusinessDocument | ||
| KEY | SrlNmbrBusinessDocumentItem | SrlNmbrBusinessDocumentItem | ||
| KEY | SrlNmbrBizDocAdditionalKey1 | SrlNmbrBizDocAdditionalKey1 | ||
| KEY | SrlNmbrBizDocAdditionalKey2 | SrlNmbrBizDocAdditionalKey2 | ||
| KEY | SrlNmbrBizDocumentObjectType | SrlNmbrBizDocumentObjectType | ||
| MaintenanceObjectList | MaintenanceObjectList | |||
| MaintenanceObjectListItem | MaintenanceObjectListItem | Object counters | ||
| Material | Material | Vehicle Model | ||
| SerialNumber | SerialNumber | Serial Number | ||
| DeliveryDocumentItem | DeliveryDocumentItem | Outb. Delivery Item | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| MaterialDocumentItem | MaterialDocumentItem | Material Document Item | ||
| MaterialDocumentYear | MaterialDocumentYear | Material Document Year | ||
| OrderItem | OrderItem | |||
| PhysicalInventoryDocumentItem | PhysicalInventoryDocumentItem | Physical Inventory Document Item | ||
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| SerialNumberPhysicalInvtryType | SerialNumberPhysicalInvtryType | Serial Number Physical Inventory Type | ||
| PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | ||
| PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item | ||
| JITCallItemNumber | JITCallItemNumber | Call Item Number | ||
| CompGrpNumber | CompGrpNumber | Component Group No. | ||
| SerialNumberAssignmentDate | SerialNumberAssignmentDate | |||
| SerialNumberAssignmentDateTime | SerialNumberAssignmentDateTime | |||
| Customer | Customer | Sold-to Party | ||
| CustomerName | CustomerName | Name of Customer | ||
| Supplier | Supplier | Supplier | ||
| SupplierName | SupplierName | Supplier Name | ||
| NumberOfSerialNumbers | NumberOfSerialNumbers | No.serial no. | ||
| GoodsMovementType | GoodsMovementType | Movement Type | ||
| MovementTypeDescription | MovementTypeDescription | |||
| SalesOrderType | SalesOrderType | Sales Order Type | ||
| SalesDocumentTypeName | SalesDocumentTypeName | |||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| AccountingDocumentTypeName | AccountingDocumentTypeName | |||
| Plant | Plant | Valuation Area | ||
| PlantName | PlantName | Plant Name | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| StorageLocationName | StorageLocationName | Storage Loc. Name | ||
| Batch | Batch | Lot No. | ||
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| DebitCreditCodeName | DebitCreditCodeName | |||
| OrderType | OrderType | Order Type | ||
| OrderTypeName | OrderTypeName | |||
| SrlNumberPhysicalInvtryTypeTxt | SrlNumberPhysicalInvtryTypeTxt | |||
| PhysicalInventoryStockType | PhysicalInventoryStockType | Stock Type | ||
| PhysicalInventoryStockTypeName | PhysicalInventoryStockTypeName | |||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| PurchasingDocumentTypeName | PurchasingDocumentTypeName | Description | ||
| ExternalJITCallNumber | ExternalJITCallNumber | Ext. JIT Call Number | ||
| ShipToParty | ShipToParty | Ship-To Party (obsolete) | ||
| BusinessPartnerName | BusinessPartnerName | Extracted Customer Name | ||
| SubcontrgCompOfInbDelivItem | SubcontrgCompOfInbDelivItem | |||
| SrlNmbrBizDocObjectTypeText | _ObjectTypeText | SrlNmbrBizDocObjectTypeText | ||
| DeliveryDocumentItemText | _DeliveryDocumentItem | DeliveryDocumentItemText | ||
| SalesDocumentItemText | _SalesDocumentItem | SalesDocumentItemText | Item Descr. |
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 C_SerialNumberHistory.
-- 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.
CREATE VIEW C_SerialNumberHistory AS
SELECT
Equipment,
SerialNumberBusinessDocument,
SrlNmbrBusinessDocumentItem,
SrlNmbrBizDocAdditionalKey1,
SrlNmbrBizDocAdditionalKey2,
SrlNmbrBizDocumentObjectType,
MaintenanceObjectList,
MaintenanceObjectListItem,
Material,
SerialNumber,
DeliveryDocumentItem,
SalesOrderItem,
MaterialDocumentItem,
MaterialDocumentYear,
OrderItem,
PhysicalInventoryDocumentItem,
FiscalYear,
SerialNumberPhysicalInvtryType,
PurchaseOrderItem,
PurchaseRequisitionItem,
JITCallItemNumber,
CompGrpNumber,
SerialNumberAssignmentDate,
SerialNumberAssignmentDateTime,
Customer,
CustomerName,
Supplier,
SupplierName,
NumberOfSerialNumbers,
GoodsMovementType,
MovementTypeDescription,
SalesOrderType,
SalesDocumentTypeName,
AccountingDocumentType,
AccountingDocumentTypeName,
Plant,
PlantName,
StorageLocation,
StorageLocationName,
Batch,
DebitCreditCode,
DebitCreditCodeName,
OrderType,
OrderTypeName,
SrlNumberPhysicalInvtryTypeTxt,
PhysicalInventoryStockType,
PhysicalInventoryStockTypeName,
PurchasingDocumentType,
PurchasingDocumentTypeName,
ExternalJITCallNumber,
ShipToParty,
BusinessPartnerName,
SubcontrgCompOfInbDelivItem,
_ObjectTypeText.SrlNmbrBizDocObjectTypeText AS SrlNmbrBizDocObjectTypeText,
_DeliveryDocumentItem.DeliveryDocumentItemText AS DeliveryDocumentItemText,
_SalesDocumentItem.SalesDocumentItemText AS SalesDocumentItemText
FROM I_SerialNumberHistory
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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