R_SrvcContrItemDurationTP

DDL: R_SRVCCONTRITEMDURATIONTP Type: view_entity TRANSACTIONAL

Service Contract Item Duration - TP

R_SrvcContrItemDurationTP is a Transactional CDS View that provides data about "Service Contract Item Duration - TP" in SAP S/4HANA. It reads from 2 data sources (I_ServiceDocumentItem, I_ServiceDocumentDuration) and exposes 7 fields with key fields ServiceContract, ServiceContractItem, SrvcDocDurationType. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_ServiceDocumentItem ServiceContractItem inner
I_ServiceDocumentDuration ServiceDuration from

Associations (1)

CardinalityTargetAliasCondition
[1..1] R_ServiceContractTP _ServiceContractTP $projection.ServiceContract = _ServiceContractTP.ServiceContract

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Service Contract Item Duration - TP view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY ServiceContract I_ServiceDocumentItem ServiceDocument Transaction ID
KEY ServiceContractItem I_ServiceDocumentItem ServiceDocumentItem Service Document
KEY SrvcDocDurationType I_ServiceDocumentDuration SrvcDocDurationType Duration Name
SrvcDocDurationValue I_ServiceDocumentDuration SrvcDocDurationValue Tot.Duration in Days
SrvcDocDurationUnit I_ServiceDocumentDuration SrvcDocDurationUnit Unit
_ServiceContractItemTP _ServiceContractItemTP
_ServiceContractTP _ServiceContractTP

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_SrvcContrItemDurationTP.
-- 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_SrvcContrItemDurationTP AS
SELECT
  ServiceContractItem.ServiceDocument AS ServiceContract,
  ServiceContractItem.ServiceDocumentItem AS ServiceContractItem,
  ServiceDuration.SrvcDocDurationType AS SrvcDocDurationType,
  ServiceDuration.SrvcDocDurationValue AS SrvcDocDurationValue,
  ServiceDuration.SrvcDocDurationUnit AS SrvcDocDurationUnit
FROM I_ServiceDocumentDuration AS ServiceDuration
INNER JOIN I_ServiceDocumentItem AS ServiceContractItem ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN R_ServiceContractTP AS _ServiceContractTP ON ServiceContract = _ServiceContractTP.ServiceContract  -- association [1..1]
;