R_SrvcOrdTmplUserStatusTP
Service Order Template User Status - TP
R_SrvcOrdTmplUserStatusTP is a Transactional CDS View that provides data about "Service Order Template User Status - TP" in SAP S/4HANA. It reads from 3 data sources (I_ServiceDocument, I_SrvcMgmtObjectStatus, P_StatusObjectWithGUID) and exposes 6 fields with key fields ServiceOrderTemplate, UserStatus. It has 2 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocument | ServiceOrderTemplate | inner |
| I_SrvcMgmtObjectStatus | ServiceOrderTemplateStatus | from |
| P_StatusObjectWithGUID | StatusObject | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_StatusCode | _StatusCode | $projection.UserStatus = _StatusCode.StatusCode and $projection.StatusProfile = _StatusCode.StatusProfile |
| [0..1] | I_StatusProfile | _StatusProfile | $projection.StatusProfile = _StatusProfile.StatusProfile |
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 User Status - TP | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceOrderTemplate | I_ServiceDocument | ServiceDocument | |
| KEY | UserStatus | I_SrvcMgmtObjectStatus | SrvcMgmtObjectStatus | |
| StatusProfile | P_StatusObjectWithGUID | StatusProfile | ||
| _StatusCode | _StatusCode | |||
| _StatusProfile | _StatusProfile | |||
| _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 User Status - TP'
@ObjectModel: {
semanticKey: ['ServiceOrderTemplate'],
usageType: {serviceQuality: #B, sizeCategory: #L, dataClass: #TRANSACTIONAL}
}
define view entity R_SrvcOrdTmplUserStatusTP
as select from I_SrvcMgmtObjectStatus as ServiceOrderTemplateStatus
inner join P_StatusObjectWithGUID as StatusObject on ServiceOrderTemplateStatus.SrvcMgmtObjectUUID = StatusObject.StatusObjectUUID
inner join I_ServiceDocument as ServiceOrderTemplate on ServiceOrderTemplateStatus.SrvcMgmtObjectUUID = ServiceOrderTemplate.ServiceDocumentUUID
and ServiceOrderTemplate.ServiceObjectType = 'BUS2000116'
and ServiceOrderTemplate.ServiceDocumentIsQuotation is initial
and ServiceOrderTemplate.ServiceDocumentTemplateType is not initial
and ServiceOrderTemplateStatus.SrvcMgmtObjectStatus like 'E%'
and ServiceOrderTemplateStatus.SrvcMgmtObjectStatusIsInactive = ' '
association to parent R_ServiceOrderTemplateTP as _ServiceOrderTemplateTP on $projection.ServiceOrderTemplate = _ServiceOrderTemplateTP.ServiceOrderTemplate
association [0..1] to I_StatusCode as _StatusCode on $projection.UserStatus = _StatusCode.StatusCode
and $projection.StatusProfile = _StatusCode.StatusProfile
association [0..1] to I_StatusProfile as _StatusProfile on $projection.StatusProfile = _StatusProfile.StatusProfile
{
key ServiceOrderTemplate.ServiceDocument as ServiceOrderTemplate,
@ObjectModel.foreignKey.association: '_StatusCode'
key ServiceOrderTemplateStatus.SrvcMgmtObjectStatus as UserStatus,
@ObjectModel.foreignKey.association: '_StatusProfile'
StatusObject.StatusProfile,
/* Associations */
_StatusCode,
_StatusProfile,
_ServiceOrderTemplateTP
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENT",
"I_SRVCMGMTOBJECTSTATUS",
"P_STATUSOBJECTWITHGUID"
],
"ASSOCIATED":
[
"I_STATUSCODE",
"I_STATUSPROFILE",
"R_SERVICEORDERTEMPLATETP"
],
"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