R_SrvcOrdTmplRefObjectTP

DDL: R_SRVCORDTMPLREFOBJECTTP Type: view_entity TRANSACTIONAL Package: CRMS4_SERVICEORDERTEMPL_RAP

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)

SourceAliasJoin Type
I_ServiceDocumentRefObject ReferenceObject from
I_ServiceDocument ServiceOrder inner

Annotations (8)

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 Ref Object - TP view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY ServiceOrderTemplate I_ServiceDocumentRefObject ServiceDocument Transaction ID
KEY ServiceRefObjectSequenceNumber I_ServiceDocumentRefObject ServiceRefObjectSequenceNumber Version
SerialNumber I_ServiceDocumentRefObject SerialNumber Serial Number
ServiceReferenceEquipment I_ServiceDocumentRefObject Equipment Equipment check
ServiceRefFunctionalLocation
ServiceReferenceProduct I_ServiceDocumentRefObject ProductID Product ID
SrvcRefObjIsMainObject I_ServiceDocumentRefObject SrvcRefObjIsMainObject Main Object
_ServiceOrderTemplateTP _ServiceOrderTemplateTP

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_SrvcOrdTmplRefObjectTP.
-- 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_SrvcOrdTmplRefObjectTP AS
SELECT
  ReferenceObject.ServiceDocument AS ServiceOrderTemplate,
  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 AS SrvcRefObjIsMainObject
FROM I_ServiceDocumentRefObject AS ReferenceObject
INNER JOIN I_ServiceDocument AS ServiceOrder ON /* join condition not captured in parsed metadata */
;