I_ServiceDocumentPredecessor

DDL: I_SERVICEDOCUMENTPREDECESSOR Type: view BASIC Package: CRMS4_REPORT

Preceding Service Transaction

I_ServiceDocumentPredecessor (Basic)

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

ServiceDocumentPredecessor · Sales

I_ServiceDocumentPredecessor is a Basic CDS View (Fact) that provides data about "Preceding Service Transaction" in SAP S/4HANA. It reads from 1 data source (crmd_brelvonae) and exposes 10 fields with key fields ServiceDocumentRelationUUID, ServiceDocRltnSequenceNumber. It has 1 association to related views. Part of development package CRMS4_REPORT.

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: ServiceDocumentRelationUUID ServiceDocRltnSequenceNumber
Corresponding DataSourceISERVDOCPRE
Purpose
This CDS view is app independent and is available for all external consumers who want to extract the data of preceding transactions at header level to SAP Business Warehouse ( SAP BW ) or other external systems.

Prerequisites
To enable SAP BW/4HANA to extract data from SAP S/4HANA Cloud Public Edition , you need to create a communication user and set up a communication arrangement for that user.

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: ID of a service transaction ID of a preceding service transaction Sequence number of a relationship between two service transactions Object type of a service transaction Object type of a preceding service transaction

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

CategoryBasic
StateC1
Line of BusinessSales
Application ComponentCRM-S4-REP-RFW
CapabilitiesData Source for Data Extraction,Association Target for Defining CDS Entities,Data Source in SQL Select,Data Source for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageSales for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view is app independent and is available for all external consumers who want to extract service order data to SAP Business Warehouse (SAP BW) or other external systems.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
crmd_brelvonae crmd_brelvonae from

Associations (1)

CardinalityTargetAliasCondition
[1] I_ServiceDocumentEnhcd _ServiceDoc $projection.ServiceDocumentPredecessorUUID = _ServiceDoc.ServiceDocumentUUID and $projection.ServiceDocPrdcssrBusObjType = _ServiceDoc.ServiceObjectType

Annotations (15)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Preceding 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 #CHECK view
AbapCatalog.sqlViewName ISERVDOCPRE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.sapObjectNodeType.name ServiceDocumentPredecessor view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY ServiceDocumentRelationUUID relationid Object Relationship Service : GUID binary link
KEY ServiceDocRltnSequenceNumber posno Sequential Number of Segment in IDoc Type
ServiceDocumentRelationType breltyp Relationship type
ServiceDocumentRelationKind vona_kind Type of binary relationship types VONA
ServiceDocumentPredecessorUUID objguid_a_sel GUID of a CRM Order Object
ServiceDocPrdcssrBusObjType objtype_a_sel Object Type
CustMgmtPrdcssrTransactionKey objkey_a_sel Object key
ServiceDocumentUUID objguid_b_sel GUID of a CRM Order Object
ServiceObjectType objtype_b_sel Object Type
_ServiceDoc _ServiceDoc

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_ServiceDocumentPredecessor.
-- 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_ServiceDocumentPredecessor AS
SELECT
  relationid AS ServiceDocumentRelationUUID,
  posno AS ServiceDocRltnSequenceNumber,
  breltyp AS ServiceDocumentRelationType,
  vona_kind AS ServiceDocumentRelationKind,
  objguid_a_sel AS ServiceDocumentPredecessorUUID,
  objtype_a_sel AS ServiceDocPrdcssrBusObjType,
  objkey_a_sel AS CustMgmtPrdcssrTransactionKey,
  objguid_b_sel AS ServiceDocumentUUID,
  objtype_b_sel AS ServiceObjectType
FROM crmd_brelvonae
LEFT OUTER JOIN I_ServiceDocumentEnhcd AS _ServiceDoc ON ServiceDocumentPredecessorUUID = _ServiceDoc.ServiceDocumentUUID AND ServiceDocPrdcssrBusObjType = _ServiceDoc.ServiceObjectType  -- association [1]
;