P_SerialNumberServiceDocument
Serial Number Service Documents
P_SerialNumberServiceDocument is a Composite CDS View that provides data about "Serial Number Service Documents" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentRefObject) and exposes 11 fields with key fields ServiceObjectType, ServiceDocument, ServiceDocumentItem, ServiceRefObjectSequenceNumber. It has 4 associations to related views. Part of development package ODATA_LO_SN_HISTORY.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentRefObject | I_ServiceDocumentRefObject | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ServiceDocument | _ServiceDocument | $projection.ServiceDocument = _ServiceDocument.ServiceDocument and $projection.ServiceObjectType = _ServiceDocument.ServiceObjectType |
| [0..1] | I_ServiceDocumentItem | _ServiceDocumentItem | $projection.ServiceDocument = _ServiceDocumentItem.ServiceDocument and $projection.ServiceObjectType = _ServiceDocumentItem.ServiceObjectType and $projection.ServiceDocumentItem = _ServiceDocumentItem.ServiceDocumentItem |
| [0..1] | I_InHouseRepairItem | _InHouseRepairItem | $projection.ServiceDocument = _InHouseRepairItem.InHouseRepair and $projection.ServiceObjectType = _InHouseRepairItem.CustMgmtObjectType and $projection.ServiceDocumentItem = _InHouseRepairItem.InHouseRepairItem |
| [0..1] | P_SrlNmbrHistSrvChangeDocument | _SrlNmbrHistSrvChangeDocument | $projection.ChangeDocTableKey = _SrlNmbrHistSrvChangeDocument.ChangeDocTableKey |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceObjectType | ServiceObjectType | Object Type | |
| KEY | ServiceDocument | ServiceDocument | Transaction ID | |
| KEY | ServiceDocumentItem | ServiceDocumentItem | Service Document | |
| KEY | ServiceRefObjectSequenceNumber | ServiceRefObjectSequenceNumber | Version | |
| Equipment | Equipment | Equipment check | ||
| ServiceReferenceObjectType | ServiceReferenceObjectType | Object Type | ||
| SerialNumber | SerialNumber | Serial Number | ||
| _SrlNmbrHistSrvChangeDocument | _SrlNmbrHistSrvChangeDocument | |||
| _ServiceDocument | _ServiceDocument | |||
| _ServiceDocumentItem | _ServiceDocumentItem | |||
| _InHouseRepairItem | _InHouseRepairItem |
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 P_SerialNumberServiceDocument.
-- 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 P_SerialNumberServiceDocument AS
SELECT
ServiceObjectType,
ServiceDocument,
ServiceDocumentItem,
ServiceRefObjectSequenceNumber,
Equipment,
ServiceReferenceObjectType,
SerialNumber
FROM I_ServiceDocumentRefObject
LEFT OUTER JOIN I_ServiceDocument AS _ServiceDocument ON ServiceDocument = _ServiceDocument.ServiceDocument AND ServiceObjectType = _ServiceDocument.ServiceObjectType -- association [0..1]
LEFT OUTER JOIN I_ServiceDocumentItem AS _ServiceDocumentItem ON ServiceDocument = _ServiceDocumentItem.ServiceDocument AND ServiceObjectType = _ServiceDocumentItem.ServiceObjectType AND ServiceDocumentItem = _ServiceDocumentItem.ServiceDocumentItem -- association [0..1]
LEFT OUTER JOIN I_InHouseRepairItem AS _InHouseRepairItem ON ServiceDocument = _InHouseRepairItem.InHouseRepair AND ServiceObjectType = _InHouseRepairItem.CustMgmtObjectType AND ServiceDocumentItem = _InHouseRepairItem.InHouseRepairItem -- association [0..1]
LEFT OUTER JOIN P_SrlNmbrHistSrvChangeDocument AS _SrlNmbrHistSrvChangeDocument ON ChangeDocTableKey = _SrlNmbrHistSrvChangeDocument.ChangeDocTableKey -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- 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