P_SrvcOrdRefServiceContract
P_SrvcOrdRefServiceContract is a Composite CDS View 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.
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 (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSRVCORDREFCONTR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | 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 | _ServiceDoc | ServiceDocument | |
| ServiceOrderUUID | ServiceDocumentUUID | |||
| ServiceObjectType | ServiceObjectType | |||
| ServiceDocumentIsQuotation | _ServiceOrder | ServiceDocumentIsQuotation |
@AbapCatalog.sqlViewName: 'PSRVCORDREFCONTR'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel: {
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #B,
sizeCategory: #XL
}
}
@VDM: {
viewType: #COMPOSITE,
private: true
}
define view 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 _ServiceDoc.ServiceDocument as ReferenceServiceContract,
ServiceDocumentUUID as ServiceOrderUUID,
ServiceObjectType,
_ServiceOrder.ServiceDocumentIsQuotation
}
where
ServiceDocPrdcssrBusObjType = 'BUS2000112'
and ServiceObjectType = 'BUS2000116'
and _ServiceOrder.ServiceDocumentIsQuotation is initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENTENHCD",
"I_SERVICEDOCUMENTPREDECESSOR"
],
"ASSOCIATED":
[
"I_SERVICEDOCUMENTENHCD"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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