R_SrvcContrTmplItemDurationTP

DDL: R_SRVCCONTRTMPLITEMDURATIONTP Type: view_entity TRANSACTIONAL Package: CRMS4_SRVC_CONTR_TEMPLATE_RAP

Duration of SrvcContr Template Item - TP

R_SrvcContrTmplItemDurationTP is a Transactional CDS View that provides data about "Duration of SrvcContr Template Item - TP" in SAP S/4HANA. It reads from 2 data sources (I_ServiceDocumentItem, I_ServiceDocumentDuration) and exposes 5 fields with key fields ServiceContractTemplate, ServiceContractTemplateItem, SrvcDocDurationType. Part of development package CRMS4_SRVC_CONTR_TEMPLATE_RAP.

Data Sources (2)

SourceAliasJoin Type
I_ServiceDocumentItem ServiceContractTemplateItem inner
I_ServiceDocumentDuration ServiceDuration from

Annotations (8)

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

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY ServiceContractTemplate I_ServiceDocumentDuration ServiceDocument Transaction ID
KEY ServiceContractTemplateItem I_ServiceDocumentDuration ServiceDocumentItem Service Document
KEY SrvcDocDurationType I_ServiceDocumentDuration SrvcDocDurationType Duration Name
SrvcDocDurationValue I_ServiceDocumentDuration SrvcDocDurationValue Tot.Duration in Days
SrvcDocDurationUnit I_ServiceDocumentDuration SrvcDocDurationUnit Unit

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_SrvcContrTmplItemDurationTP.
-- 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_SrvcContrTmplItemDurationTP AS
SELECT
  ServiceDuration.ServiceDocument AS ServiceContractTemplate,
  ServiceDuration.ServiceDocumentItem AS ServiceContractTemplateItem,
  ServiceDuration.SrvcDocDurationType AS SrvcDocDurationType,
  ServiceDuration.SrvcDocDurationValue AS SrvcDocDurationValue,
  ServiceDuration.SrvcDocDurationUnit AS SrvcDocDurationUnit
FROM I_ServiceDocumentDuration AS ServiceDuration
INNER JOIN I_ServiceDocumentItem AS ServiceContractTemplateItem ON /* join condition not captured in parsed metadata */
;