R_ServiceOrderTemplateTP

DDL: R_SERVICEORDERTEMPLATETP Type: view_entity TRANSACTIONAL

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)

SourceAliasJoin Type
I_ServiceDocumentEnhcd I_ServiceDocumentEnhcd from

Associations (9)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
KEY ServiceOrderTemplate ServiceDocument Transaction ID
ServiceObjectType ServiceObjectType Object Type
ServiceOrderTemplateType ServiceDocumentType Transaction Type
ServiceOrderTemplateUUID ServiceDocumentUUID Object GUID
SrvcOrdTmplDescription ServiceDocumentDescription
ServiceDocumentPriority ServiceDocumentPriority
SrvcDocTmplValdtyStartDateTime SrvcDocTmplValdtyStartDateTime
SrvcDocTmplValdtyEndDateTime SrvcDocTmplValdtyEndDateTime
SalesGroupOrgUnitID SalesGroupOrgUnitID
SalesOfficeOrgUnitID SalesOfficeOrgUnitID
SalesOrganizationOrgUnitID SalesOrganizationOrgUnitID
SalesGroup SalesGroup Sales Group
SalesOffice SalesOffice Sales Office
Division Division Internal Division ID
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
SalesOrganization SalesOrganization Sales Organization
ServiceDocCreationDateTime ServiceDocCreationDateTime
ServiceDocChangedDateTime ServiceDocChangedDateTime
ServiceDocumentCreatedByUser ServiceDocumentCreatedByUser
ServiceDocumentChangedByUser ServiceDocumentChangedByUser
EnterpriseServiceOrganization EnterpriseServiceOrganization
ServiceDocumentTemplateType ServiceDocumentTemplateType
SrvcDocTemplateSearchTermText SrvcDocTemplateSearchTermText
Language Language Report Text 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

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view R_ServiceOrderTemplateTP.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW R_ServiceOrderTemplateTP AS
SELECT
  ServiceDocument AS ServiceOrderTemplate,
  ServiceObjectType,
  ServiceDocumentType AS ServiceOrderTemplateType,
  ServiceDocumentUUID AS ServiceOrderTemplateUUID,
  ServiceDocumentDescription AS SrvcOrdTmplDescription,
  ServiceDocumentPriority,
  SrvcDocTmplValdtyStartDateTime,
  SrvcDocTmplValdtyEndDateTime,
  SalesGroupOrgUnitID,
  SalesOfficeOrgUnitID,
  SalesOrganizationOrgUnitID,
  SalesGroup,
  SalesOffice,
  Division,
  DistributionChannel,
  SalesOrganization,
  ServiceDocCreationDateTime,
  ServiceDocChangedDateTime,
  ServiceDocumentCreatedByUser,
  ServiceDocumentChangedByUser,
  EnterpriseServiceOrganization,
  ServiceDocumentTemplateType,
  SrvcDocTemplateSearchTermText,
  Language
FROM I_ServiceDocumentEnhcd
LEFT OUTER JOIN E_ServiceDocument AS _Extension ON ServiceObjectType = _Extension.ServiceCategory AND ServiceOrderTemplate = _Extension.ServiceOrder  -- association [0..1]
LEFT OUTER JOIN I_StatusObjectUUIDStatus AS _SrvcOrdTmplStatus ON ServiceOrderTemplateUUID = _SrvcOrdTmplStatus.StatusObjectUUID AND ( _SrvcOrdTmplStatus.StatusCode = 'I1002' OR _SrvcOrdTmplStatus.StatusCode = 'I1003' OR _SrvcOrdTmplStatus.StatusCode = 'I1004' OR _SrvcOrdTmplStatus.StatusCode = 'I1005' ) AND _SrvcOrdTmplStatus.StatusIsActive = 'X'  -- association [0..1]
LEFT OUTER JOIN R_ServiceOrderTemplateItemTP AS _ServiceOrderTemplateItemTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdTmplRefObjectTP AS _SrvcOrdTmplReferenceObjectTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdTmplUserStatusTP AS _SrvcOrdTmplUserStatusTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdTmplPartnerTP AS _SrvcOrdTmplPartnerTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdTmplLongTextTP AS _SrvcOrdTmplLongTextTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdTmplAppointmentTP AS _SrvcOrdTmplAppointmentTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdTmplDurationTP AS _SrvcOrdTmplDurationTP ON /* condition not available in parsed metadata */  -- association [0..*]
;