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 P_ReportedFinancialData_RT_06.
-- 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: PREPFINDRT_06
-- Parameters: p_timestamp_from : timestamp, p_timestamp_to : timestamp
CREATE VIEW P_ReportedFinancialData_RT_06 AS
SELECT
P_ReportedFinancialData_RT_05.rdimen AS rdimen,
P_ReportedFinancialData_RT_05.rldnr_fin AS rldnr_fin,
P_ReportedFinancialData_RT_05.docln_fin AS docln_fin,
P_ReportedFinancialData_RT_05.ritclg AS ritclg,
P_ReportedFinancialData_RT_05.robukrs AS robukrs,
P_ReportedFinancialData_RT_05.rbuptr AS rbuptr,
P_ReportedFinancialData_RT_05.rvers AS rvers,
P_ReportedFinancialData_RT_05.rbunit AS rbunit,
P_ReportedFinancialData_RT_05.budat AS budat,
P_ReportedFinancialData_RT_05.gjahr AS gjahr,
P_ReportedFinancialData_RT_05.belnr AS belnr,
P_ReportedFinancialData_RT_05.docln AS docln,
P_ReportedFinancialData_RT_05.rldnr AS rldnr,
P_ReportedFinancialData_RT_05.rtcur AS rtcur,
P_ReportedFinancialData_RT_05.runit AS runit,
P_ReportedFinancialData_RT_05.poper AS poper,
P_ReportedFinancialData_RT_05.ryear AS ryear,
P_ReportedFinancialData_RT_05.ritem AS ritem,
P_ReportedFinancialData_RT_05.sityp AS sityp,
P_ReportedFinancialData_RT_05.subit AS subit,
P_ReportedFinancialData_RT_05.docty AS docty,
case P_ReportedFinancialData_RT_05.curr_local_send when 'H' then P_ReportedFinancialData_RT_05.hsl when 'K' then P_ReportedFinancialData_RT_05.ksl when 'O' then P_ReportedFinancialData_RT_05.osl when 'V' then P_ReportedFinancialData_RT_05.vsl when 'B' then P_ReportedFinancialData_RT_05.bsl when 'C' then P_ReportedFinancialData_RT_05.csl when 'D' then P_ReportedFinancialData_RT_05.dsl when 'E' then P_ReportedFinancialData_RT_05.esl when 'F' then P_ReportedFinancialData_RT_05.fsl when 'G' then P_ReportedFinancialData_RT_05.gsl end as hsl AS gslendashsl,
P_ReportedFinancialData_RT_05.rlcurr AS rlcurr,
P_ReportedFinancialData_RT_05.rgcurr AS rgcurr,
P_ReportedFinancialData_RT_05.tsl AS tsl,
P_ReportedFinancialData_RT_05.msl AS msl,
P_ReportedFinancialData_RT_05.itgrp AS itgrp,
P_ReportedFinancialData_RT_05.activ AS activ,
P_ReportedFinancialData_RT_05.refdocnr AS refdocnr,
P_ReportedFinancialData_RT_05.refryear AS refryear,
P_ReportedFinancialData_RT_05.refactiv AS refactiv,
P_ReportedFinancialData_RT_05.usnam AS usnam,
P_ReportedFinancialData_RT_05.awtyp AS awtyp,
P_ReportedFinancialData_RT_05.aworg AS aworg,
P_ReportedFinancialData_RT_05.logsys AS logsys
FROM P_ReportedFinancialData_RT_05
;