Files
gateway-mnp-dbc/dbcmnpsrc/FE/mnpapp/script/procedure/dwh/DWH.RECIPIENT_ONLINE_ID.fnc
2024-05-13 12:54:14 +02:00

49 lines
980 B
Plaintext

CREATE OR REPLACE FUNCTION RECIPIENT_ONLINE_ID
RETURN NUMBER
IS
--
-- To modify this template, edit file FUNC.TXT in TEMPLATE
-- directory of SQL Navigator
--
-- Purpose: Briefly explain the functionality of the function
--
-- MODIFICATION HISTORY
-- Person Date Comments
-- --------- ------ -------------------------------------------
errore NUMBER (1);
-- Declare program variables as shown above
BEGIN
errore := 0;
IF errore = 0
THEN
dwh.update_rec_online_id (errore);
END IF;
IF errore = 0
THEN
dwh.update_rec_hoc_online_id (errore);
END IF;
IF errore = 0
THEN
dwh.update_rec_tacs_online_id (errore);
END IF;
IF errore = 0
THEN
dwh.sla_recipient_on_demand (errore);
END IF;
RETURN errore;
EXCEPTION
WHEN OTHERS
THEN
errore := 1;
DBMS_OUTPUT.put_line ( 'Errore in RECIPIENT_ONLINE_ID '
|| SQLERRM);
RETURN errore;
END;
/