I_ServiceDocumentItemPrdcssr_2

DDL: I_SERVICEDOCUMENTITEMPRDCSSR_2 Type: view BASIC

Preceding Transaction of Srvc Trans Item

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.

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 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. For details, see Extracting Data Through CDS Views to SAP BW/4HANA . Authorizations Users who want to use this CDS view must have the following authorization objects assigned: Authorization Object Description CRM_SEO Authorization Object CRM Order – Business Object Service Order CRM_CON_SE Authorization Object CRM Order – Bus.Ob.Service Confirmation CRM_CO_SE Authorization Object CRM Order – Bus. Ob. Service Contract CRM_INCDNT Authorization Object CRM Order: Incident Management CRMS4_SOLO Authorization Object for Solution Order

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 →

Data Sources (1)

SourceAliasJoin Type
crmd_brelvonai crmd_brelvonai from

Associations (1)

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

Annotations (14)

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

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY ServiceDocumentItmRelationUUID relationid GUID link
KEY ServiceDocItmRltnSqncNumber posno Sequential no.
ServiceDocItmPrdcssrCharUUID Object ID
ServiceDocumentItemCharUUID Object ID
ServiceDocumentItmRelationType breltyp Rel. Type
ServiceDocItmPrdcssrBusObjType objtype_a Object Type
ServiceDocumentItmRelationKind vona_kind Type 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]
;