R_SrvcOrdItmTransHistory
Transaction History in SRVO Item
R_SrvcOrdItmTransHistory is a Composite CDS View that provides data about "Transaction History in SRVO Item" in SAP S/4HANA. It reads from 24 data sources and exposes 42 fields with key fields ServiceOrder, ServiceOrderItem, BusinessTransactionDocument, BusinessObjectType, BusinessTransactionDocItem.
Data Sources (24)
| Source | Alias | Join Type |
|---|---|---|
| I_BusinessObjTypeText | _BusinessObjTypeText | inner |
| I_SrvcPrdcssrSuccssrBinaryLink | _ExternalDocDate | inner |
| I_ServiceDocument | _I_ServiceDocument_A | inner |
| I_ServiceDocument | _I_ServiceDocument_B | inner |
| I_ServiceDocumentItem | _ServiceDocumentItem_a | inner |
| I_ServiceDocumentItem | _ServiceDocumentItem_a | inner |
| I_ServiceDocumentItem | _ServiceDocumentItem_a | inner |
| I_CustMgmtTransactionRelation | _ServiceDocumentItem_a | inner |
| I_ServiceDocumentItem | _ServiceDocumentItem_a | inner |
| I_ServiceDocumentItem | _ServiceDocumentItem_a | inner |
| I_InHouseRepairItem | _ServiceDocumentItem_a | inner |
| I_ServiceDocumentItem | _ServiceDocumentItem_b | inner |
| I_CustMgmtTransactionRelation | _ServiceDocumentItem_b | inner |
| I_ServiceDocumentItem | _ServiceDocumentItem_b | inner |
| I_ServiceDocumentItem | _ServiceDocumentItem_b | inner |
| I_InHouseRepairItem | _ServiceDocumentItem_b | inner |
| I_ServiceDocumentItem | _ServiceDocumentItem_b | inner |
| I_CustMgmtTransactionRelation | I_CustMgmtTransactionRelation | union_all |
| I_SrvcDocItemRelation | I_SrvcDocItemRelation | from |
| I_SrvcDocItemRelation | I_SrvcDocItemRelation | union_all |
| I_SrvcDocItemRelation | I_SrvcDocItemRelation | union_all |
| I_SrvcDocItemRelation | I_SrvcDocItemRelation | union_all |
| I_SrvcDocItemRelation | I_SrvcDocItemRelation | union_all |
| I_SrvcDocItemRelation | I_SrvcDocItemRelation | union_all |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Transaction History in SRVO Item | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.updateEnabled | false | view | |
| ObjectModel.deleteEnabled | false | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (42)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceOrder | I_InHouseRepairItem | ServiceDocument | Transaction ID |
| KEY | ServiceOrderItem | I_InHouseRepairItem | ServiceDocumentItem | Service Document |
| KEY | BusinessTransactionDocument | |||
| KEY | BusinessObjectType | I_ServiceDocumentItem | ServiceDocumentItemObjectType | Object Type |
| KEY | BusinessTransactionDocItem | |||
| KEY | BusTransDocumentIsPredecessor | |||
| ServiceDocumentasServiceOrder | ||||
| KEY | ServiceOrderItem | I_InHouseRepairItem | ServiceDocumentItem | Service Document |
| KEY | BusinessTransactionDocument | |||
| KEY | BusinessObjectType | I_ServiceDocumentItem | CustMgmtSuccssrTransacObjType | Object Type |
| KEY | BusinessTransactionDocItem | |||
| KEY | BusTransDocumentIsPredecessor | |||
| ServiceDocumentasServiceOrder | ||||
| KEY | ServiceOrderItem | I_ServiceDocumentItem | ServiceDocumentItem | Service Document |
| KEY | BusinessTransactionDocument | |||
| KEY | BusinessObjectType | I_InHouseRepairItem | ServiceDocumentItemObjectType | Object Type |
| KEY | BusinessTransactionDocItem | |||
| KEY | BusTransDocumentIsPredecessor | |||
| ServiceDocumentasServiceOrder | ||||
| KEY | ServiceOrderItem | I_ServiceDocumentItem | ServiceDocumentItem | Service Document |
| KEY | BusinessTransactionDocument | |||
| KEY | BusinessObjectType | I_InHouseRepairItem | CustMgmtPrdcssrTransacObjType | Object Type |
| KEY | BusinessTransactionDocItem | |||
| KEY | BusTransDocumentIsPredecessor | |||
| ServiceDocumentasServiceOrder | ||||
| KEY | ServiceOrderItem | I_InHouseRepairItem | ServiceDocumentItem | Service Document |
| KEY | BusinessTransactionDocument | |||
| KEY | BusinessObjectType | I_CustMgmtTransactionRelation | CustMgmtSuccssrTransacObjType | Object Type |
| KEY | BusinessTransactionDocItem | |||
| KEY | BusTransDocumentIsPredecessor | |||
| ServiceDocumentasServiceOrder | ||||
| KEY | ServiceOrderItem | I_InHouseRepairItem | ServiceDocumentItem | Service Document |
| KEY | BusinessTransactionDocument | |||
| KEY | BusinessObjectType | I_ServiceDocumentItem | InhRepairItemObjectType | Object Type |
| KEY | BusinessTransactionDocItem | |||
| KEY | BusTransDocumentIsPredecessor | |||
| ServiceDocumentasServiceOrder | ||||
| KEY | ServiceOrderItem | I_ServiceDocumentItem | ServiceDocumentItem | Service Document |
| KEY | BusinessTransactionDocument | |||
| KEY | BusinessObjectType | I_InHouseRepairItem | InhRepairItemObjectType | Object Type |
| KEY | BusinessTransactionDocItem | |||
| KEY | BusTransDocumentIsPredecessor |
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 R_SrvcOrdItmTransHistory.
-- 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 R_SrvcOrdItmTransHistory AS
SELECT
_ServiceDocumentItem_a.ServiceDocument AS ServiceOrder,
_ServiceDocumentItem_a.ServiceDocumentItem AS ServiceOrderItem,
cast( _ServiceDocumentItem_b.ServiceDocument as abap.char(35) ) AS BusinessTransactionDocument,
_ServiceDocumentItem_b.ServiceDocumentItemObjectType AS BusinessObjectType,
cast( _ServiceDocumentItem_b.ServiceDocumentItem as abap.char(10) ) AS BusinessTransactionDocItem,
' ' AS BusTransDocumentIsPredecessor,
case I_SrvcDocItemRelation.SrvcDocItmDocFlwCrtnDateTime when 0 then _I_ServiceDocument_B.PostingDate else cast( tstmp_to_dats( I_SrvcDocItemRelation.SrvcDocItmDocFlwCrtnDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as crms4_created_on preserving type ) end as BusinessTransDocCreationDate AS ServiceDocumentasServiceOrder
FROM I_SrvcDocItemRelation
INNER JOIN I_ServiceDocumentItem AS _ServiceDocumentItem_a ON /* join condition not captured in parsed metadata */
INNER JOIN I_ServiceDocumentItem AS _ServiceDocumentItem_b ON /* join condition not captured in parsed metadata */
INNER JOIN I_ServiceDocument AS _I_ServiceDocument_B ON /* join condition not captured in parsed metadata */
INNER JOIN I_CustMgmtTransactionRelation AS _ServiceDocumentItem_b ON /* join condition not captured in parsed metadata */
INNER JOIN I_BusinessObjTypeText AS _BusinessObjTypeText ON /* join condition not captured in parsed metadata */
INNER JOIN I_ServiceDocument AS _I_ServiceDocument_A ON /* join condition not captured in parsed metadata */
INNER JOIN I_CustMgmtTransactionRelation AS _ServiceDocumentItem_a ON /* join condition not captured in parsed metadata */
INNER JOIN I_SrvcPrdcssrSuccssrBinaryLink AS _ExternalDocDate ON /* join condition not captured in parsed metadata */
INNER JOIN I_InHouseRepairItem AS _ServiceDocumentItem_b ON /* join condition not captured in parsed metadata */
INNER JOIN I_InHouseRepairItem AS _ServiceDocumentItem_a ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_SrvcDocItemRelation, I_CustMgmtTransactionRelation
;
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