I_ServiceDocumentRefObject
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
| Category | Data Extraction |
|---|---|
| Data Category | Fact |
| Status | Released |
| Data Extraction Type | Both 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 DataSource | ISERVDOCREFOBJ |
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 .
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sales |
| Application Component | CRM-S4-REP-RFW |
| Capabilities | Association Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Defining CDS Entities, Data Source for Data Extraction |
| Package | Sales 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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| crms4d_refobj | crms4d_refobj | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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