A_ServiceOrderTemplate
Service Order Template
A_ServiceOrderTemplate is a Composite CDS View that provides data about "Service Order Template" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 31 fields with key field ServiceOrderTemplate. It has 9 associations to related views. Part of development package ODATA_CRMS4_SERVICEORDERTEMPL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentEnhcd | ServiceOrderTemplate | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | A_ServiceOrderTemplateItem | _Item | $projection.ServiceOrderTemplate = _Item.ServiceOrderTemplate |
| [0..*] | A_ServiceOrderTmplPersonResp | _PersonResponsible | $projection.ServiceOrderTemplate = _PersonResponsible.ServiceOrderTemplate |
| [0..*] | A_ServiceOrderTmplRefObject | _ReferenceObject | $projection.ServiceOrderTemplate = _ReferenceObject.ServiceOrderTemplate |
| [0..*] | A_ServiceOrderTmplText | _Text | $projection.ServiceOrderTemplate = _Text.ServiceOrderTemplate |
| [0..1] | E_ServiceDocument | _Extension | _Extension.ServiceCategory = 'BUS2000116' and $projection.ServiceOrderTemplate = _Extension.ServiceOrder |
| [0..*] | A_SrvcOrdTmplUserStatus | _SrvcOrdTmplUserStatus | $projection.ServiceOrderTemplate = _SrvcOrdTmplUserStatus.ServiceOrderTemplate |
| [0..*] | A_SrvcOrdTmplPartner | _Partner | $projection.ServiceOrderTemplate = _Partner.ServiceOrderTemplate |
| [0..*] | A_SrvcOrdTmplDuration | _Duration | $projection.ServiceOrderTemplate = _Duration.ServiceOrderTemplate |
| [0..*] | A_SrvcOrdTmplAppointment | _Appointment | $projection.ServiceOrderTemplate = _Appointment.ServiceOrderTemplate |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Service Order Template | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.representativeKey | ServiceOrderTemplate | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceOrderTemplate | ServiceDocument | Transaction ID | |
| ServiceOrderTemplateUUID | ServiceDocumentUUID | Object GUID | ||
| ServiceOrderTemplateType | ServiceDocumentType | Transaction Type | ||
| ServiceObjectType | ServiceObjectType | Object Type | ||
| SrvcOrdTmplDescription | ServiceDocumentDescription | |||
| ServiceDocumentTemplateType | ServiceDocumentTemplateType | |||
| SrvcDocTemplateSearchTermText | SrvcDocTemplateSearchTermText | |||
| Language | Language | Report Text Language | ||
| ServiceDocumentPriority | ServiceDocumentPriority | |||
| SrvcDocTmplValdtyStartDateTime | SrvcDocTmplValdtyStartDateTime | |||
| SrvcDocTmplValdtyEndDateTime | SrvcDocTmplValdtyEndDateTime | |||
| SrvcOrdTmplIsReleased | ServiceDocumentIsReleased | |||
| ServiceOrderType | ServiceObjectType | Object Type | ||
| ServiceDocumentType | ServiceDocumentType | Transaction Type | ||
| SalesOrganizationOrgUnitID | SalesOrganizationOrgUnitID | |||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| SalesOfficeOrgUnitID | SalesOfficeOrgUnitID | |||
| SalesGroupOrgUnitID | SalesGroupOrgUnitID | |||
| EnterpriseServiceOrganization | EnterpriseServiceOrganization | |||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesGroup | SalesGroup | Sales Group | ||
| _Item | _Item | |||
| _PersonResponsible | _PersonResponsible | |||
| _ReferenceObject | _ReferenceObject | |||
| _Text | _Text | |||
| _SrvcOrdTmplUserStatus | _SrvcOrdTmplUserStatus | |||
| _Partner | _Partner | |||
| _Duration | _Duration | |||
| _Appointment | _Appointment |
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 A_ServiceOrderTemplate.
-- 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 A_ServiceOrderTemplate AS
SELECT
ServiceDocument AS ServiceOrderTemplate,
ServiceDocumentUUID AS ServiceOrderTemplateUUID,
ServiceDocumentType AS ServiceOrderTemplateType,
ServiceObjectType,
ServiceDocumentDescription AS SrvcOrdTmplDescription,
ServiceDocumentTemplateType,
SrvcDocTemplateSearchTermText,
Language,
ServiceDocumentPriority,
SrvcDocTmplValdtyStartDateTime,
SrvcDocTmplValdtyEndDateTime,
ServiceDocumentIsReleased AS SrvcOrdTmplIsReleased,
ServiceObjectType AS ServiceOrderType,
ServiceDocumentType,
SalesOrganizationOrgUnitID,
SalesOrganization,
SalesOfficeOrgUnitID,
SalesGroupOrgUnitID,
EnterpriseServiceOrganization,
DistributionChannel,
Division,
SalesOffice,
SalesGroup
FROM I_ServiceDocumentEnhcd AS ServiceOrderTemplate
LEFT OUTER JOIN A_ServiceOrderTemplateItem AS _Item ON ServiceOrderTemplate = _Item.ServiceOrderTemplate -- association [0..*]
LEFT OUTER JOIN A_ServiceOrderTmplPersonResp AS _PersonResponsible ON ServiceOrderTemplate = _PersonResponsible.ServiceOrderTemplate -- association [0..*]
LEFT OUTER JOIN A_ServiceOrderTmplRefObject AS _ReferenceObject ON ServiceOrderTemplate = _ReferenceObject.ServiceOrderTemplate -- association [0..*]
LEFT OUTER JOIN A_ServiceOrderTmplText AS _Text ON ServiceOrderTemplate = _Text.ServiceOrderTemplate -- association [0..*]
LEFT OUTER JOIN E_ServiceDocument AS _Extension ON _Extension.ServiceCategory = 'BUS2000116' AND ServiceOrderTemplate = _Extension.ServiceOrder -- association [0..1]
LEFT OUTER JOIN A_SrvcOrdTmplUserStatus AS _SrvcOrdTmplUserStatus ON ServiceOrderTemplate = _SrvcOrdTmplUserStatus.ServiceOrderTemplate -- association [0..*]
LEFT OUTER JOIN A_SrvcOrdTmplPartner AS _Partner ON ServiceOrderTemplate = _Partner.ServiceOrderTemplate -- association [0..*]
LEFT OUTER JOIN A_SrvcOrdTmplDuration AS _Duration ON ServiceOrderTemplate = _Duration.ServiceOrderTemplate -- association [0..*]
LEFT OUTER JOIN A_SrvcOrdTmplAppointment AS _Appointment ON ServiceOrderTemplate = _Appointment.ServiceOrderTemplate -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA