Install, Upgrade, Clone, Patch - EBS (MOSC)

MOSC Banner

Running procedures through BI Publisher

 Hi,

Have a procedure that reads as follows, it runs perfectly fine through Oracle sqlplus. Want to run it through BI Publisher.

Recommended solutions were to convert the procedure to a function and then run it through Data template of BI Publisher.Currently, not aware of the exact steps. Kindly let know .

Regards.

CREATE OR REPLACE PROCEDURE BAL_PRO

(P_YEAR IN NUMBER)

IS

 

V_TOT                   NUMBER(30,2):=0;

V_BAL                   NUMBER(30,2):=0;

V_DATE                DATE;

 

CURSOR C1 IS

                                SELECT CBLDATE,ROUND(SUM(BALANCE4/100000),2) BAL

                                FROM                    FT_D010014_ODS

                                HAVING                TO_CHAR(CBLDATE,'YYYY')=P_YEAR

                                GROUP BY            CBLDATE

                                ORDER BY            CBLDATE;

 

C1_REC

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center