A_SrvcOrdTmplDuration

DDL: A_SRVCORDTMPLDURATION Type: view COMPOSITE

Service Order Template Duration

A_SrvcOrdTmplDuration is a Composite CDS View that provides data about "Service Order Template Duration" in SAP S/4HANA. It reads from 2 data sources (I_ServiceDocumentDuration, I_ServiceDocument) and exposes 5 fields with key fields ServiceOrderTemplate, SrvcDocDurationType. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_ServiceDocumentDuration ServiceDuration from
I_ServiceDocument ServiceOrderTemplate inner

Associations (1)

CardinalityTargetAliasCondition
[1] A_ServiceOrderTemplate _ServiceOrderTemplate $projection.ServiceOrderTemplate = _ServiceOrderTemplate.ServiceOrderTemplate

Annotations (14)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Service Order Template Duration view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AbapCatalog.sqlViewName ASRVORDTMPLDURN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
Metadata.ignorePropagatedAnnotations true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY ServiceOrderTemplate I_ServiceDocumentDuration ServiceDocument Transaction ID
KEY SrvcDocDurationType I_ServiceDocumentDuration SrvcDocDurationType Duration Name
SrvcDocDurationValue I_ServiceDocumentDuration SrvcDocDurationValue Tot.Duration in Days
SrvcDocDurationUnit I_ServiceDocumentDuration SrvcDocDurationUnit Unit
_ServiceOrderTemplate _ServiceOrderTemplate

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 A_SrvcOrdTmplDuration.
-- 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 A_SrvcOrdTmplDuration AS
SELECT
  ServiceDuration.ServiceDocument AS ServiceOrderTemplate,
  ServiceDuration.SrvcDocDurationType AS SrvcDocDurationType,
  ServiceDuration.SrvcDocDurationValue AS SrvcDocDurationValue,
  ServiceDuration.SrvcDocDurationUnit AS SrvcDocDurationUnit
FROM I_ServiceDocumentDuration AS ServiceDuration
INNER JOIN I_ServiceDocument AS ServiceOrderTemplate ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN A_ServiceOrderTemplate AS _ServiceOrderTemplate ON ServiceOrderTemplate = _ServiceOrderTemplate.ServiceOrderTemplate  -- association [1]
;