P_SrvcOrdRefServiceContract
Reference Service Contracts For Service Order
P_SrvcOrdRefServiceContract is a Composite CDS View that provides data about "Reference Service Contracts For Service Order" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentPredecessor) and exposes 5 fields with key fields ServiceOrder, ReferenceServiceContract. It has 1 association to related views. Part of development package ODATA_CRMS4_SERVICEORDER.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentPredecessor | I_ServiceDocumentPredecessor | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ServiceDocumentEnhcd | _ServiceOrder | $projection.ServiceOrderUUID = _ServiceOrder.ServiceDocumentUUID |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceOrder | _ServiceOrder | ServiceDocument | |
| KEY | ReferenceServiceContract | |||
| ServiceOrderUUID | ServiceDocumentUUID | |||
| ServiceObjectType | ServiceObjectType | |||
| ServiceDocumentIsQuotation | _ServiceOrder | ServiceDocumentIsQuotation |
@AccessControl.authorizationCheck: #CHECK
@ObjectModel: {
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #B,
sizeCategory: #XL
}
}
@VDM: {
viewType: #COMPOSITE,
private: true
}
define view entity P_SrvcOrdRefServiceContract
as select from I_ServiceDocumentPredecessor
association [0..1] to I_ServiceDocumentEnhcd as _ServiceOrder on $projection.ServiceOrderUUID = _ServiceOrder.ServiceDocumentUUID
{
key _ServiceOrder.ServiceDocument as ServiceOrder,
key I_ServiceDocumentPredecessor._ServiceDoc.ServiceDocument as ReferenceServiceContract,
ServiceDocumentUUID as ServiceOrderUUID,
ServiceObjectType,
_ServiceOrder.ServiceDocumentIsQuotation
}
where
ServiceDocPrdcssrBusObjType = 'BUS2000112'
and ServiceObjectType = 'BUS2000116'
and _ServiceOrder.ServiceDocumentIsQuotation is initial
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