I_Aivs_Ai_Usage

DDL: I_AIVS_AI_USAGE SQL: I_AIVS_USAGE Type: view

interface view for cds usage

I_Aivs_Ai_Usage is a CDS View that provides data about "interface view for cds usage" in SAP S/4HANA. It reads from 2 data sources (sadlcdsi, sadlcdsu) and exposes 7 fields with key fields cds_type, report_id, report_value, dlv_unit. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
sadlcdsi CdsInfo inner
sadlcdsu Usage from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_Aivs_Ai_Report_Type _ReportInfo _ReportInfo.report_id = $projection.report_id
[0..*] I_Aivs_Ai_Cdsinfo _CdsInfo _CdsInfo.cds_type = $projection.cds_type and _CdsInfo.report_id = $projection.report_id and _CdsInfo.report_value = $projection.report_value and _CdsInfo.dlv_unit = $projection.dlv_unit

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName I_AIVS_USAGE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label interface view for cds usage view
Search.searchable true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY cds_type sadlcdsi cds_type CDS View Type
KEY report_id sadlcdsu report_id Report ID
KEY report_value sadlcdsu report_value Report value
KEY dlv_unit sadlcdsi dlv_unit Layer
Amount
_ReportInfo _ReportInfo
_CdsInfo _CdsInfo

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_Usage.
-- 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_USAGE

CREATE VIEW I_Aivs_Ai_Usage AS
SELECT
  CdsInfo.cds_type AS cds_type,
  Usage.report_id AS report_id,
  Usage.report_value AS report_value,
  CdsInfo.dlv_unit AS dlv_unit,
  count( distinct Usage.cds_id ) AS Amount
FROM sadlcdsu AS Usage
INNER JOIN sadlcdsi AS CdsInfo ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Aivs_Ai_Report_Type AS _ReportInfo ON _ReportInfo.report_id = report_id  -- association [1..1]
LEFT OUTER JOIN I_Aivs_Ai_Cdsinfo AS _CdsInfo ON _CdsInfo.cds_type = cds_type AND _CdsInfo.report_id = report_id AND _CdsInfo.report_value = report_value AND _CdsInfo.dlv_unit = dlv_unit  -- association [0..*]
;