R_SrvcOrdTmplRefObjectTP
Service Order Template Ref Object - TP
R_SrvcOrdTmplRefObjectTP is a Transactional CDS View that provides data about "Service Order Template Ref Object - TP" in SAP S/4HANA. It reads from 2 data sources (I_ServiceDocumentRefObject, I_ServiceDocument) and exposes 8 fields with key fields ServiceOrderTemplate, ServiceRefObjectSequenceNumber. Part of development package CRMS4_SERVICEORDERTEMPL_RAP.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentRefObject | ReferenceObject | from |
| I_ServiceDocument | ServiceOrder | inner |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Service Order Template Ref Object - TP | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceOrderTemplate | I_ServiceDocumentRefObject | ServiceDocument | |
| KEY | ServiceRefObjectSequenceNumber | I_ServiceDocumentRefObject | ServiceRefObjectSequenceNumber | |
| SerialNumber | I_ServiceDocumentRefObject | SerialNumber | ||
| ServiceReferenceEquipment | I_ServiceDocumentRefObject | Equipment | ||
| ServiceRefFunctionalLocation | ||||
| ServiceReferenceProduct | I_ServiceDocumentRefObject | ProductID | ||
| SrvcRefObjIsMainObject | I_ServiceDocumentRefObject | SrvcRefObjIsMainObject | ||
| _ServiceOrderTemplateTP | _ServiceOrderTemplateTP |
@AccessControl: {
authorizationCheck: #MANDATORY,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@VDM: {
viewType: #TRANSACTIONAL,
lifecycle.contract.type: #SAP_INTERNAL_API
}
@Metadata:
{
ignorePropagatedAnnotations: true
}
@EndUserText.label: 'Service Order Template Ref Object - TP'
@ObjectModel: {
semanticKey: ['ServiceOrderTemplate'],
usageType: {dataClass: #TRANSACTIONAL,
serviceQuality: #C,
sizeCategory: #L}
}
define view entity R_SrvcOrdTmplRefObjectTP
as select from I_ServiceDocumentRefObject as ReferenceObject
inner join I_ServiceDocument as ServiceOrder on ServiceOrder.ServiceDocument = ReferenceObject.ServiceDocument
and ServiceOrder.ServiceObjectType = 'BUS2000116'
and ServiceOrder.ServiceDocumentIsQuotation is initial
and ServiceOrder.ServiceDocumentTemplateType is not initial
association to parent R_ServiceOrderTemplateTP as _ServiceOrderTemplateTP on $projection.ServiceOrderTemplate = _ServiceOrderTemplateTP.ServiceOrderTemplate
{
@ObjectModel.foreignKey.association: '_ServiceOrderTemplateTP'
key ReferenceObject.ServiceDocument as ServiceOrderTemplate,
key ReferenceObject.ServiceRefObjectSequenceNumber as ServiceRefObjectSequenceNumber,
ReferenceObject.SerialNumber as SerialNumber,
ReferenceObject.Equipment as ServiceReferenceEquipment,
cast( ReferenceObject.FunctionalLocation as functionallocation preserving type ) as ServiceRefFunctionalLocation,
ReferenceObject.ProductID as ServiceReferenceProduct,
ReferenceObject.SrvcRefObjIsMainObject,
// Associations
_ServiceOrderTemplateTP
}
where
ReferenceObject.ServiceDocumentItem 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