I_CSRV_ROOT

DDL: I_CSRV_ROOT Type: view_entity

Custom Service Root Entity

I_CSRV_ROOT is a CDS View that provides data about "Custom Service Root Entity" in SAP S/4HANA. It reads from 4 data sources (csrv_header, csrv_header_t, srvd_rt_annos, tadir) and exposes 16 fields with key fields ServiceId, Version. It has 3 associations to related views.

Data Sources (4)

SourceAliasJoin Type
csrv_header csrv_h left_outer
csrv_header_t csrv_h_t left_outer
srvd_rt_annos srvd_anno left_outer
tadir tadir_t left_outer

Associations (3)

CardinalityTargetAliasCondition
[1..*] I_CSRV_ITEMS _csrv_items
[1..*] I_CSRV_HEADER_T _csrv_header_t
[1..1] I_CSRV_RECENT_SERVICES _recent_services

Annotations (2)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Custom Service Root Entity view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY ServiceId services ServiceName Name
KEY Version services Version Version
ExtServiceName services ExternalServiceName External Service Name
DescriptionendasDescription Label
ServiceDefName services ServiceDefName Service Definition
ServiceGenVersion csrv_header serv_gen_version
ServiceOperation csrv_header service_operation
IsPublished csrv_header is_published
ServiceDefType services ServiceDefType
AbapLanguageVersion services AbapLanguageVersion
ChangedAt services ChangedAt Time Stamp
ChangedBy services ChangedBy User Name
ChangedOn services ChangedOn Time Stamp
ProcessState csrv_header process_state Process State
DescriptionLanguage csrv_header_t language Report Text Language
_csrv_items _csrv_items

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_CSRV_ROOT.
-- 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_CSRV_ROOT AS
SELECT
  services.ServiceName AS ServiceId,
  services.Version AS Version,
  services.ExternalServiceName AS ExtServiceName,
  case csrv_h.service_type when 'CUSTOM' then csrv_h_t.description else services.Description end as Description AS DescriptionendasDescription,
  services.ServiceDefName AS ServiceDefName,
  csrv_h.serv_gen_version AS ServiceGenVersion,
  csrv_h.service_operation AS ServiceOperation,
  csrv_h.is_published AS IsPublished,
  services.ServiceDefType AS ServiceDefType,
  services.AbapLanguageVersion AS AbapLanguageVersion,
  services.ChangedAt AS ChangedAt,
  services.ChangedBy AS ChangedBy,
  services.ChangedOn AS ChangedOn,
  csrv_h.process_state AS ProcessState,
  csrv_h_t.language AS DescriptionLanguage
LEFT OUTER JOIN csrv_header AS csrv_h ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN csrv_header_t AS csrv_h_t ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN tadir AS tadir_t ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN srvd_rt_annos AS srvd_anno ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CSRV_ITEMS AS _csrv_items ON /* condition not available in parsed metadata */  -- association [1..*]
LEFT OUTER JOIN I_CSRV_HEADER_T AS _csrv_header_t ON /* condition not available in parsed metadata */  -- association [1..*]
LEFT OUTER JOIN I_CSRV_RECENT_SERVICES AS _recent_services ON /* condition not available in parsed metadata */  -- association [1..1]
;