I_SerialNumberSalesOrder

DDL: I_SERIALNUMBERSALESORDER Type: view_entity COMPOSITE Package: LO_SN_DB

Serial Number in Sales Order

I_SerialNumberSalesOrder (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Database & Data Management

I_SerialNumberSalesOrder is a Composite CDS View that provides data about "Serial Number in Sales Order" in SAP S/4HANA. It reads from 2 data sources (I_MaintenanceObjectListItem, I_MaintObjListSalesOrder) and exposes 9 fields with key fields Equipment, SalesOrder, SalesOrderItem. Part of development package LO_SN_DB.

SAP Help Documentation

CategoryCDS Views for Serial Number Management
Purpose
This CDS view retrieves information on the serial numbers used within sales orders. This CDS view provides the data to answer the following business questions: Which material serial numbers were used in a sales order? When were specific material serial numbers used within a sales order? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must either: have authorization to start the Display Material Serial Number ( IQ09 ) app (with Serial number history ), or: have display authorization for the CDS view Sales Order Document Item ( I_SalesOrderItem ), see Sales Order Item . These restriction types are edited in the Maintain Business Roles app.

Structure
Important Fields Important fields in this view include the following: Field Name Description Equipment Equipment SalesOrder Sales Document SalesOrderItem Sales Document Item Material Material SerialNumber Serial Number

View on SAP Help Portal →

SAP API Hub

CategoryComposite
StateC1
Line of BusinessDatabase & Data Management
Application ComponentLO-MD-SN-2CL
CapabilitiesData Source in SQL Select,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageDatabase and Data Management for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view retrieves information on the serial numbers used within sales orders.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li> <p>Which material serial numbers were used in a sales order?</p> </li> <li> <p>When were specific material serial numbers used within a sales order?</p> </li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (2)

SourceAliasJoin Type
I_MaintenanceObjectListItem _MaintenanceObjectListItem inner
I_MaintObjListSalesOrder _MaintObjListSalesOrder from

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
EndUserText.label Serial Number in Sales Order view
Metadata.ignorePropagatedAnnotations true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY Equipment I_MaintenanceObjectListItem Equipment Equipment Number
KEY SalesOrder I_MaintObjListSalesOrder SalesOrder Sales Document
KEY SalesOrderItem I_MaintObjListSalesOrder SalesOrderItem Sales Document Item
Material I_MaintenanceObjectListItem Material Material Number
SerialNumber I_MaintenanceObjectListItem SerialNumber Serial Number
_Equipment I_MaintenanceObjectListItem _Equipment
_SalesOrder I_MaintObjListSalesOrder _SalesOrder
_SalesOrderItem I_MaintObjListSalesOrder _SalesOrderItem
_Product I_MaintenanceObjectListItem _Product

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 I_SerialNumberSalesOrder.
-- 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 I_SerialNumberSalesOrder AS
SELECT
  _MaintenanceObjectListItem.Equipment AS Equipment,
  _MaintObjListSalesOrder.SalesOrder AS SalesOrder,
  _MaintObjListSalesOrder.SalesOrderItem AS SalesOrderItem,
  _MaintenanceObjectListItem.Material AS Material,
  _MaintenanceObjectListItem.SerialNumber AS SerialNumber,
  _MaintenanceObjectListItem._Equipment AS _Equipment,
  _MaintObjListSalesOrder._SalesOrder AS _SalesOrder,
  _MaintObjListSalesOrder._SalesOrderItem AS _SalesOrderItem,
  _MaintenanceObjectListItem._Product AS _Product
FROM I_MaintObjListSalesOrder AS _MaintObjListSalesOrder
INNER JOIN I_MaintenanceObjectListItem AS _MaintenanceObjectListItem ON /* join condition not captured in parsed metadata */
;