Summary
Create a custom function to use in data models
Content
I am converting a legacy Discoverer report to a BI Publisher report and I need to know what the best way is to convert the functions used. Below is the function used in the legacy report.
CREATE OR REPLACE FUNCTION GRP_USER."CNL_PD_PARAM" (
p_period apps.fa_deprn_periods.calendar_period_close_date%TYPE)
RETURN NUMBER
IS
v_counter NUMBER;
BEGIN
select period_counter
into v_counter
from fa_deprn_periods
where calendar_period_close_date=p_period
and book_type_code='CORPORATE';
return v_counter;
end cnl_pd_param;
Any guidance is greatly appreciated.
Thanks!
Jenn