I_ServiceDocumentRefObject

DDL: I_SERVICEDOCUMENTREFOBJECT Type: view BASIC

Reference Object of Service Transaction

I_ServiceDocumentRefObject (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

ServiceDocumentReferenceObject · Sales

I_ServiceDocumentRefObject is a Basic CDS View (Fact) that provides data about "Reference Object of Service Transaction" in SAP S/4HANA. It reads from 1 data source (crms4d_refobj) and exposes 17 fields with key fields ServiceObjectType, ServiceDocument, ServiceDocumentItem, ServiceRefObjectSequenceNumber. It has 4 associations to related views.

SAP Help Documentation

CategoryData Extraction
Data CategoryFact
StatusReleased
Data Extraction TypeBoth types of data extraction are possible: Full (physical deletions are possible in source tables) Delta (delta-enabled with change data capture). Relevant data fields: ServiceObjectType ServiceDocument ServiceDocumentItem ServiceRefObjectSequenceNumber
Corresponding DataSourceISERVDOCREFOBJ
Purpose
This CDS view is app independent and is available for all external consumers who want to extract the reference object data of service transactions to SAP Business Warehouse (SAP BW) or other external systems.

Prerequisites
To enable an SAP BW/4HANA system to extract data from your SAP S/4HANA system, you need to create a communication user and set up a communication arrangement for that user. Authorizations Users who want to use this CDS view need to access it via another CDS view (privileged mode).

Structure
Object Types This view relates to the following SAP object types: ServiceContract ServiceOrder ServiceQuotation Attributes The following are some important attributes in this CDS view: Object type of a service transaction Transaction ID Transaction item number Incremental sequence number of reference object

SAP Business Warehouse (SAP BW) Extraction
Note The corresponding DataSource (Extractor) and this CDS view may have different functionalities. In case you are interested in the details of the DataSource, see the related documentation on the SAP Help Portal at https://help.sap.com/viewer/p/BI_CONTENT_757 under Use SAP Library BI Content . For more information on extraction, see Extracting Data Through CDS Views to SAP BW/4HANA .

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSales
Application ComponentCRM-S4-REP-RFW
CapabilitiesAssociation Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Defining CDS Entities, Data Source for Data Extraction
PackageSales for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view is app independent and is available for all external consumers who want to extract the reference object data of service transactions to SAP Business Warehouse (SAP BW) or other external systems.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
crms4d_refobj crms4d_refobj from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_Equipment _Equipment $projection.Equipment = _Equipment.Equipment
[0..1] I_Product _Product $projection.ProductID = _Product.Product
[0..1] I_FunctionalLocation _FunctionalLocation $projection.FunctionalLocation = _FunctionalLocation.FunctionalLocation
[1] I_SrvcReferenceObjectType _SrvcReferenceObjectType $projection.ServiceReferenceObjectType = _SrvcReferenceObjectType.ServiceReferenceObjectType

Annotations (15)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Reference Object of Service Transaction view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Analytics.dataCategory #FACT view
Analytics.dataExtraction.enabled true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AbapCatalog.sqlViewName ISERVDOCREFOBJ view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.sapObjectNodeType.name ServiceDocumentReferenceObject view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY ServiceObjectType objtype_h Business Trans. Cat.
KEY ServiceDocument object_id Transaction ID
KEY ServiceDocumentItem number_int Shortened Item Number in Document
KEY ServiceRefObjectSequenceNumber counter Reference Object Counter
ServiceReferenceObjectType type_object Object Type for Reference Object in Subject Set
ServiceReferenceObjectUUID guid_object GUID of a CRM Order Object
ProductID product_id Simulated Product ID
SrvcRefObjIsMainObject main_object Main Reference Object
ProductUUID product_guid Internal Key for Product
SerialNumber serial_number Serial Number of Proposal Descriptions
Equipment equipment_id Equipment Number
FunctionalLocation functional_location_id Functional Location
ReferenceProduct ref_product_id Reference Product ID
_SrvcReferenceObjectType _SrvcReferenceObjectType
_Equipment _Equipment
_Product _Product
_FunctionalLocation _FunctionalLocation

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 I_ServiceDocumentRefObject.
-- 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 I_ServiceDocumentRefObject AS
SELECT
  objtype_h AS ServiceObjectType,
  object_id AS ServiceDocument,
  number_int AS ServiceDocumentItem,
  counter AS ServiceRefObjectSequenceNumber,
  type_object AS ServiceReferenceObjectType,
  guid_object AS ServiceReferenceObjectUUID,
  product_id AS ProductID,
  main_object AS SrvcRefObjIsMainObject,
  product_guid AS ProductUUID,
  serial_number AS SerialNumber,
  equipment_id AS Equipment,
  functional_location_id AS FunctionalLocation,
  ref_product_id AS ReferenceProduct
FROM crms4d_refobj
LEFT OUTER JOIN I_Equipment AS _Equipment ON Equipment = _Equipment.Equipment  -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON ProductID = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_FunctionalLocation AS _FunctionalLocation ON FunctionalLocation = _FunctionalLocation.FunctionalLocation  -- association [0..1]
LEFT OUTER JOIN I_SrvcReferenceObjectType AS _SrvcReferenceObjectType ON ServiceReferenceObjectType = _SrvcReferenceObjectType.ServiceReferenceObjectType  -- association [1]
;