I_ServiceDocumentItemPrdcssr_2

DDL: I_SERVICEDOCUMENTITEMPRDCSSR_2 Type: view BASIC Package: CRMS4_REPORT

Preceding Transaction of Srvc Trans Item

I_ServiceDocumentItemPrdcssr_2 (Basic)

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

ServiceDocumentItemPredecessor · Sales

I_ServiceDocumentItemPrdcssr_2 is a Basic CDS View (Fact) that provides data about "Preceding Transaction of Srvc Trans Item" in SAP S/4HANA. It reads from 1 data source (crmd_brelvonai) and exposes 9 fields with key fields ServiceDocumentItmRelationUUID, ServiceDocItmRltnSqncNumber. 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: ServiceDocumentItmRelationUUID ServiceDocItmRltnSqncNumber
Corresponding DataSourceISERVDOCITMPRE2
Purpose
This CDS view is app independent, and is available for all external consumers who want to extract the data of preceding transactions at item 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. For details, see Extracting Data Through CDS Views to SAP BW/4HANA .

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 an item in a service transaction ID of an item in a preceding service transaction Object type of an item in a service transaction Object type of an item in a preceding service transaction Binary relationship type VONA of a service transaction Binary relationship between two service transactions

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,Data Source in SQL Select,Data Source for Defining CDS Entities,Association Target 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 item data to SAP Business Warehouse (SAP BW) or other external systems.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
crmd_brelvonai crmd_brelvonai from

Associations (1)

CardinalityTargetAliasCondition
[1] I_ServiceDocumentItemEnhcd _ServiceDocItm $projection.ServiceDocItmPrdcssrCharUUID = _ServiceDocItm.ServiceDocumentItemCharUUID

Annotations (15)

NameValueLevelField
EndUserText.label Preceding Transaction of Srvc Trans Item view
ClientHandling.algorithm #SESSION_VARIABLE 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 ISERVDOCITMPRE2 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.sapObjectNodeType.name ServiceDocumentItemPredecessor view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY ServiceDocumentItmRelationUUID relationid Object Relationship Service : GUID binary link
KEY ServiceDocItmRltnSqncNumber posno Sequential Number of Segment in IDoc Type
ServiceDocItmPrdcssrCharUUID 32 Character CRM Object GUID
ServiceDocumentItemCharUUID 32 Character CRM Object GUID
ServiceDocumentItmRelationType breltyp Relationship type
ServiceDocItmPrdcssrBusObjType objtype_a Object Type
ServiceDocumentItmRelationKind vona_kind Type of binary relationship types VONA
ServiceDocumentItemObjectType objtype_b Object Type
_ServiceDocItm _ServiceDocItm

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_ServiceDocumentItemPrdcssr_2.
-- 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_ServiceDocumentItemPrdcssr_2 AS
SELECT
  relationid AS ServiceDocumentItmRelationUUID,
  posno AS ServiceDocItmRltnSqncNumber,
  cast(objkey_a as crms4_object_charguid32 preserving type ) AS ServiceDocItmPrdcssrCharUUID,
  cast(objkey_b as crms4_object_charguid32 preserving type ) AS ServiceDocumentItemCharUUID,
  breltyp AS ServiceDocumentItmRelationType,
  objtype_a AS ServiceDocItmPrdcssrBusObjType,
  vona_kind AS ServiceDocumentItmRelationKind,
  objtype_b AS ServiceDocumentItemObjectType
FROM crmd_brelvonai
LEFT OUTER JOIN I_ServiceDocumentItemEnhcd AS _ServiceDocItm ON ServiceDocItmPrdcssrCharUUID = _ServiceDocItm.ServiceDocumentItemCharUUID  -- association [1]
;