I_Aivs_Ai_Report_Type

DDL: I_AIVS_AI_REPORT_TYPE SQL: I_AIVS_REP_TYP Type: view

report types

I_Aivs_Ai_Report_Type is a CDS View that provides data about "report types" in SAP S/4HANA. It reads from 2 data sources (dlv_systc, sadlrepi) and exposes 7 fields with key fields report_id, dlv_unit. It has 4 associations to related views.

Data Sources (2)

SourceAliasJoin Type
dlv_systc dlv_systc cross
sadlrepi ReportInfo from

Associations (4)

CardinalityTargetAliasCondition
[0..*] I_Aivs_Exposed _Expos $projection.report_id = 10
[0..*] I_Aivs_Ai_Cdsinfo _Info _Info.report_id = $projection.report_id and _Info.dlv_unit = $projection.dlv_unit
[0..*] I_Aivs_Ai_Usage _Usage _Usage.report_id = $projection.report_id and _Usage.dlv_unit = $projection.dlv_unit
[0..*] I_Aivs_Chart _Chart _Chart.report_id = $projection.report_id and _Chart.dlv_unit = $projection.dlv_unit

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName I_AIVS_REP_TYP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
Metadata.allowExtensions true view
EndUserText.label report types view
ObjectModel.alternativeKey.id report_id view
ObjectModel.alternativeKey.uniqueness #UNIQUE view
Search.searchable true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY report_id sadlrepi report_id Report ID
KEY dlv_unit dlv_systc dlvunit Layer
report_type sadlrepi report_type Report Scenario
Amount Amount
_Usage _Usage
_Expos _Expos
_Chart _Chart

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_Aivs_Ai_Report_Type.
-- 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.
-- SQL view name: I_AIVS_REP_TYP

CREATE VIEW I_Aivs_Ai_Report_Type AS
SELECT
  ReportInfo.report_id AS report_id,
  dlv_systc.dlvunit AS dlv_unit,
  ReportInfo.report_type AS report_type,
  count( distinct _Info.cds_name ) AS Amount
FROM sadlrepi AS ReportInfo
CROSS JOIN dlv_systc
LEFT OUTER JOIN I_Aivs_Exposed AS _Expos ON report_id = 10  -- association [0..*]
LEFT OUTER JOIN I_Aivs_Ai_Cdsinfo AS _Info ON _Info.report_id = report_id AND _Info.dlv_unit = dlv_unit  -- association [0..*]
LEFT OUTER JOIN I_Aivs_Ai_Usage AS _Usage ON _Usage.report_id = report_id AND _Usage.dlv_unit = dlv_unit  -- association [0..*]
LEFT OUTER JOIN I_Aivs_Chart AS _Chart ON _Chart.report_id = report_id AND _Chart.dlv_unit = dlv_unit  -- association [0..*]
;