sycm_aps_i_usage_by_procedure

DDL: SYCM_APS_I_USAGE_BY_PROCEDURE SQL: SYCMVIUSAGEPROC Type: view

Usage aggregated for project

sycm_aps_i_usage_by_procedure is a CDS View that provides data about "Usage aggregated for project" in SAP S/4HANA. It reads from 3 data sources (sycma_tadir_d, sycma_usg_data, sycma_prj_usg) and exposes 7 fields with key fields project_id, obj_type, obj_name, sub_type, sub_name.

Data Sources (3)

SourceAliasJoin Type
sycma_tadir_d tadir inner
sycma_usg_data usage inner
sycma_prj_usg usages_for_project from

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName SYCMVIUSAGEPROC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Usage aggregated for project view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY project_id sycma_prj_usg project_id Project UUID
KEY obj_type sycma_usg_data obj_type Type
KEY obj_name sycma_usg_data obj_name Object Name
KEY sub_type sycma_usg_data sub_type Object Type
KEY sub_name sycma_usg_data sub_name Object name in SUBKEY
counter
last_used

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 sycm_aps_i_usage_by_procedure.
-- 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: SYCMVIUSAGEPROC

CREATE VIEW sycm_aps_i_usage_by_procedure AS
SELECT
  usages_for_project.project_id AS project_id,
  usage.obj_type AS obj_type,
  usage.obj_name AS obj_name,
  usage.sub_type AS sub_type,
  usage.sub_name AS sub_name,
  sum(usage.counter) AS counter,
  max(usage.last_used) AS last_used
FROM sycma_prj_usg AS usages_for_project
INNER JOIN sycma_usg_data AS usage ON /* join condition not captured in parsed metadata */
INNER JOIN sycma_tadir_d AS tadir ON /* join condition not captured in parsed metadata */
;