I_ServiceDocumentItemPrdcssr_2
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
| 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: ServiceDocumentItmRelationUUID ServiceDocItmRltnSqncNumber |
| Corresponding DataSource | ISERVDOCITMPRE2 |
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 .
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Sales |
| Application Component | CRM-S4-REP-RFW |
| Capabilities | Data 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 |
| Package | Sales 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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| crmd_brelvonai | crmd_brelvonai | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_ServiceDocumentItemEnhcd | _ServiceDocItm | $projection.ServiceDocItmPrdcssrCharUUID = _ServiceDocItm.ServiceDocumentItemCharUUID |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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