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 AUM_RESULTS_V.
-- 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 AUM_RESULTS_V AS
SELECT
r.run_id AS run_id,
r.container AS container,
r.testclass AS testclass,
r.testmethod AS testmethod,
r.pass AS pass,
i.object_type AS object_type,
i.object_name AS object_name,
d.devclass AS devclass,
r.status AS status,
r.server AS server,
a.text AS text,
a.msgid AS msgid,
a.exp AS exp,
a.act AS act,
a.include AS include,
a.line AS line,
t.started AS started,
case when t.started > 0 then cast ( round( utcl_seconds_between( tstmpl_to_utcl(t.started, 'INITIAL', 'INITIAL') , tstmpl_to_utcl( t.ended, 'INITIAL', 'INITIAL' )) , 3) as abap.dec(23,3)) else 0 end as Duration AS dec233else0endasDuration,
case when t.setup_started > 0 then cast ( round( utcl_seconds_between(tstmpl_to_utcl(t.setup_started, 'INITIAL', 'INITIAL'), tstmpl_to_utcl(t.setup_ended, 'INITIAL', 'INITIAL')) , 3) as abap.dec(23,3)) else 0 end as SetupDuration AS dec233else0endasSetupDuration,
case when t.teardown_started > 0 then cast ( round( utcl_seconds_between(tstmpl_to_utcl(t.teardown_started, 'INITIAL', 'INITIAL'), tstmpl_to_utcl( t.teardown_ended, 'INITIAL', 'INITIAL')) , 3) as abap.dec(23,3)) else 0 end as TeardownDuration AS dec233else0endasTeardownDuration,
case when t.create_started > 0 then cast ( round( utcl_seconds_between(tstmpl_to_utcl(t.create_started, 'INITIAL', 'INITIAL'), tstmpl_to_utcl( t.create_ended , 'INITIAL', 'INITIAL')) , 3) as abap.dec(23,3)) else 0 end as CreateDuration AS dec233else0endasCreateDuration,
case when t.testmethod is initial then 0 else cast ( round( utcl_seconds_between(tstmpl_to_utcl( t.started, 'INITIAL', 'INITIAL'), tstmpl_to_utcl( t.ended , 'INITIAL', 'INITIAL')) - ( utcl_seconds_between(tstmpl_to_utcl( t.create_started , 'INITIAL', 'INITIAL'), tstmpl_to_utcl( t.create_ended, 'INITIAL', 'INITIAL')) + utcl_seconds_between(tstmpl_to_utcl( t.setup_started , 'INITIAL', 'INITIAL'), tstmpl_to_utcl( t.setup_ended , 'INITIAL', 'INITIAL')) + utcl_seconds_between(tstmpl_to_utcl( t.teardown_started, 'INITIAL', 'INITIAL'), tstmpl_to_utcl( t.teardown_ended, 'INITIAL', 'INITIAL')) ) , 3) as abap.dec(23,3) ) end as NetDuration AS dec233endasNetDuration,
a.details AS details,
a.stack AS stack
FROM aum_results AS r
LEFT OUTER JOIN sedt_prog_tadir AS i ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN tadir AS d ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN aum_times AS t ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN aum_alerts AS a ON /* join condition not captured in parsed metadata */
;