R_ServiceOrderTemplateTP
Service Order Template - TP
R_ServiceOrderTemplateTP is a Transactional CDS View that provides data about "Service Order Template - TP" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 43 fields with key field ServiceOrderTemplate. It has 9 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentEnhcd | I_ServiceDocumentEnhcd | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | E_ServiceDocument | _Extension | $projection.ServiceObjectType = _Extension.ServiceCategory and $projection.ServiceOrderTemplate = _Extension.ServiceOrder |
| [0..1] | I_StatusObjectUUIDStatus | _SrvcOrdTmplStatus | $projection.ServiceOrderTemplateUUID = _SrvcOrdTmplStatus.StatusObjectUUID and ( _SrvcOrdTmplStatus.StatusCode = 'I1002' or _SrvcOrdTmplStatus.StatusCode = 'I1003' or _SrvcOrdTmplStatus.StatusCode = 'I1004' or _SrvcOrdTmplStatus.StatusCode = 'I1005' ) and _SrvcOrdTmplStatus.StatusIsActive = 'X' |
| [0..*] | R_ServiceOrderTemplateItemTP | _ServiceOrderTemplateItemTP | |
| [0..*] | R_SrvcOrdTmplRefObjectTP | _SrvcOrdTmplReferenceObjectTP | |
| [0..*] | R_SrvcOrdTmplUserStatusTP | _SrvcOrdTmplUserStatusTP | |
| [0..*] | R_SrvcOrdTmplPartnerTP | _SrvcOrdTmplPartnerTP | |
| [0..*] | R_SrvcOrdTmplLongTextTP | _SrvcOrdTmplLongTextTP | |
| [0..*] | R_SrvcOrdTmplAppointmentTP | _SrvcOrdTmplAppointmentTP | |
| [0..*] | R_SrvcOrdTmplDurationTP | _SrvcOrdTmplDurationTP | |
Annotations (10)
| 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 - TP | view | |
| ObjectModel.sapObjectNodeType.name | ServiceOrderTemplate | view | |
| ObjectModel.representativeKey | ServiceOrderTemplate | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceOrderTemplate | ServiceDocument | ||
| ServiceObjectType | ServiceObjectType | |||
| ServiceOrderTemplateType | ServiceDocumentType | |||
| ServiceOrderTemplateUUID | ServiceDocumentUUID | |||
| SrvcOrdTmplDescription | ServiceDocumentDescription | |||
| ServiceDocumentPriority | ServiceDocumentPriority | |||
| SrvcDocTmplValdtyStartDateTime | SrvcDocTmplValdtyStartDateTime | |||
| SrvcDocTmplValdtyEndDateTime | SrvcDocTmplValdtyEndDateTime | |||
| SalesGroupOrgUnitID | SalesGroupOrgUnitID | |||
| SalesOfficeOrgUnitID | SalesOfficeOrgUnitID | |||
| SalesOrganizationOrgUnitID | SalesOrganizationOrgUnitID | |||
| SalesGroup | SalesGroup | |||
| SalesOffice | SalesOffice | |||
| Division | Division | |||
| DistributionChannel | DistributionChannel | |||
| SalesOrganization | SalesOrganization | |||
| ServiceDocCreationDateTime | ServiceDocCreationDateTime | |||
| ServiceDocChangedDateTime | ServiceDocChangedDateTime | |||
| ServiceDocumentCreatedByUser | ServiceDocumentCreatedByUser | |||
| ServiceDocumentChangedByUser | ServiceDocumentChangedByUser | |||
| EnterpriseServiceOrganization | EnterpriseServiceOrganization | |||
| ServiceDocumentTemplateType | ServiceDocumentTemplateType | |||
| SrvcDocTemplateSearchTermText | SrvcDocTemplateSearchTermText | |||
| Language | Language | |||
| _ServiceObjType | _ServiceObjType | |||
| _ServiceDocumentType | _ServiceDocumentType | |||
| _ServiceDocumentPriority | _ServiceDocumentPriority | |||
| _SalesOrganizationOrgUnit_2 | _SalesOrganizationOrgUnit_2 | |||
| _SalesGroupOrgUnit_2 | _SalesGroupOrgUnit_2 | |||
| _SalesOfficeOrgUnit_2 | _SalesOfficeOrgUnit_2 | |||
| _DistributionChannel | _DistributionChannel | |||
| _Division | _Division | |||
| _SalesOffice | _SalesOffice | |||
| _SalesGroup | _SalesGroup | |||
| _SalesOrganization | _SalesOrganization | |||
| _ServiceOrderTemplateItemTP | _ServiceOrderTemplateItemTP | |||
| _SrvcOrdTmplReferenceObjectTP | _SrvcOrdTmplReferenceObjectTP | |||
| _SrvcOrdTmplStatus | _SrvcOrdTmplStatus | |||
| _SrvcOrdTmplUserStatusTP | _SrvcOrdTmplUserStatusTP | |||
| _SrvcOrdTmplPartnerTP | _SrvcOrdTmplPartnerTP | |||
| _SrvcOrdTmplLongTextTP | _SrvcOrdTmplLongTextTP | |||
| _SrvcOrdTmplAppointmentTP | _SrvcOrdTmplAppointmentTP | |||
| _SrvcOrdTmplDurationTP | _SrvcOrdTmplDurationTP |
@AccessControl: {
authorizationCheck: #MANDATORY,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@VDM: {
viewType: #TRANSACTIONAL,
lifecycle.contract.type: #SAP_INTERNAL_API
}
@Metadata:
{
ignorePropagatedAnnotations: true
}
@EndUserText.label: 'Service Order Template - TP'
@ObjectModel: {
sapObjectNodeType.name: 'ServiceOrderTemplate',
semanticKey: ['ServiceOrderTemplate'],
representativeKey: 'ServiceOrderTemplate',
usageType: {dataClass: #TRANSACTIONAL,
serviceQuality: #C,
sizeCategory: #L}
}
define root view entity R_ServiceOrderTemplateTP
as select from I_ServiceDocumentEnhcd
composition [0..*] of R_ServiceOrderTemplateItemTP as _ServiceOrderTemplateItemTP
composition [0..*] of R_SrvcOrdTmplRefObjectTP as _SrvcOrdTmplReferenceObjectTP
composition [0..*] of R_SrvcOrdTmplUserStatusTP as _SrvcOrdTmplUserStatusTP
composition [0..*] of R_SrvcOrdTmplPartnerTP as _SrvcOrdTmplPartnerTP
composition [0..*] of R_SrvcOrdTmplLongTextTP as _SrvcOrdTmplLongTextTP
composition [0..*] of R_SrvcOrdTmplAppointmentTP as _SrvcOrdTmplAppointmentTP
composition [0..*] of R_SrvcOrdTmplDurationTP as _SrvcOrdTmplDurationTP
//! Extensibility support
association [0..1] to E_ServiceDocument as _Extension on $projection.ServiceObjectType = _Extension.ServiceCategory
and $projection.ServiceOrderTemplate = _Extension.ServiceOrder
association [0..1] to I_StatusObjectUUIDStatus as _SrvcOrdTmplStatus on $projection.ServiceOrderTemplateUUID = _SrvcOrdTmplStatus.StatusObjectUUID
and (
_SrvcOrdTmplStatus.StatusCode = 'I1002'
or _SrvcOrdTmplStatus.StatusCode = 'I1003'
or _SrvcOrdTmplStatus.StatusCode = 'I1004'
or _SrvcOrdTmplStatus.StatusCode = 'I1005'
)
and _SrvcOrdTmplStatus.StatusIsActive = 'X'
{
key ServiceDocument as ServiceOrderTemplate,
@ObjectModel.foreignKey.association: '_ServiceObjType'
ServiceObjectType,
@ObjectModel.foreignKey.association: '_ServiceDocumentType'
ServiceDocumentType as ServiceOrderTemplateType,
ServiceDocumentUUID as ServiceOrderTemplateUUID,
ServiceDocumentDescription as SrvcOrdTmplDescription,
@ObjectModel.foreignKey.association: '_ServiceDocumentPriority'
ServiceDocumentPriority,
SrvcDocTmplValdtyStartDateTime,
SrvcDocTmplValdtyEndDateTime,
@Feature: 'BF:API_FULLSCOPE'
@ObjectModel.foreignKey.association: '_SalesGroupOrgUnit_2'
SalesGroupOrgUnitID,
@Feature: 'BF:API_FULLSCOPE'
@ObjectModel.foreignKey.association: '_SalesOfficeOrgUnit_2'
SalesOfficeOrgUnitID,
@Feature: 'BF:API_FULLSCOPE'
@ObjectModel.foreignKey.association: '_SalesOrganizationOrgUnit_2'
SalesOrganizationOrgUnitID,
@Feature: 'BF:API_FULLSCOPE'
@ObjectModel.foreignKey.association: '_SalesGroup'
SalesGroup,
@ObjectModel.foreignKey.association: '_SalesOffice'
SalesOffice,
@ObjectModel.foreignKey.association: '_Division'
Division,
@ObjectModel.foreignKey.association: '_DistributionChannel'
DistributionChannel,
@ObjectModel.foreignKey.association: '_SalesOrganization'
SalesOrganization,
ServiceDocCreationDateTime,
ServiceDocChangedDateTime,
ServiceDocumentCreatedByUser,
ServiceDocumentChangedByUser,
@Feature: 'BF:API_FULLSCOPE'
@ObjectModel.sapObjectNodeTypeReference: 'EnterpriseServiceOrganization'
EnterpriseServiceOrganization,
ServiceDocumentTemplateType,
SrvcDocTemplateSearchTermText,
Language,
// Status
cast( case _SrvcOrdTmplStatus.StatusCode
when 'I1002' then 'X'
else ' '
end as xfeld preserving type ) as SrvcOrdTmplIsNew,
cast( case _SrvcOrdTmplStatus.StatusCode
when 'I1003' then 'X'
else ' '
end as xfeld preserving type ) as SrvcOrdTmplIsInProcess,
cast( case _SrvcOrdTmplStatus.StatusCode
when 'I1004' then 'X'
else ' '
end as xfeld preserving type ) as SrvcOrdTmplIsReleased,
cast( case _SrvcOrdTmplStatus.StatusCode
when 'I1005' then 'X'
else ' '
end as xfeld preserving type ) as SrvcOrdTmplIsCompleted,
// Associations
_ServiceObjType,
_ServiceDocumentType,
_ServiceDocumentPriority,
_SalesOrganizationOrgUnit_2,
_SalesGroupOrgUnit_2,
_SalesOfficeOrgUnit_2,
_DistributionChannel,
_Division,
_SalesOffice,
_SalesGroup,
_SalesOrganization,
_ServiceOrderTemplateItemTP,
_SrvcOrdTmplReferenceObjectTP,
_SrvcOrdTmplStatus,
_SrvcOrdTmplUserStatusTP,
_SrvcOrdTmplPartnerTP,
_SrvcOrdTmplLongTextTP,
_SrvcOrdTmplAppointmentTP,
_SrvcOrdTmplDurationTP
}
where
ServiceObjectType = 'BUS2000116'
and ServiceDocumentIsQuotation is initial
and ServiceDocumentTemplateType is not initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENTENHCD",
"I_STATUSOBJECTUUIDSTATUS"
],
"ASSOCIATED":
[
"I_CUSTMGMTBUSOBJTYPE",
"I_DISTRIBUTIONCHANNEL",
"I_DIVISION",
"I_SALESGROUP",
"I_SALESOFFICE",
"I_SALESORGANIZATION",
"I_SERVICEDOCUMENTPRIORITY",
"I_SERVICEDOCUMENTTYPE",
"I_SRVCMGMTORGANIZATIONUNIT",
"I_STATUSOBJECTUUIDSTATUS",
"R_SERVICEORDERTEMPLATEITEMTP",
"R_SRVCORDTMPLAPPOINTMENTTP",
"R_SRVCORDTMPLDURATIONTP",
"R_SRVCORDTMPLLONGTEXTTP",
"R_SRVCORDTMPLPARTNERTP",
"R_SRVCORDTMPLREFOBJECTTP",
"R_SRVCORDTMPLUSERSTATUSTP"
],
"BASE":
[
"I_SERVICEDOCUMENTENHCD"
],
"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