The following package and stored procedure works without any problems
create or replace PACKAGE Test_Package2
AS TYPE Test_Type IS REF CURSOR;
END Test_Package2;
create or replace PROCEDURE eam_get_position_reports (
Report_Cursor IN OUT eam_get_position_reports_pkg.rpt_type,
Account_Code IN cs_fund.ACCT_CD%TYPE)
AS
BEGIN
OPEN Report_Cursor FOR
select f.acct_typ_cd,
f.inactive,
f.allow_buy,
f.allow_sell,
f.acct_name,
f.crrncy_cd
from cs_fund f
where f.acct_cd = Account_Code;
END eam_get_position_reports;
When I create a new report I see the stored procedure and
the parameter works as expected. life is good
-----------------------------------------------------
Now I need to add one more table. The following works when running in sql developer, Crystal sees the procedure but it blows. ora 20003 oru 10036 is invalid and cannot be described
The package is identical other than a different name so I included here
create or replace PACKAGE eam_get_position_reports_pkg2
AS TYPE rpt_type IS REF CURSOR;
END eam_get_position_reports_pkg2;
create or replace PROCEDURE eam_get_position_reports2 (
Report_Cursor IN OUT eam_get_position_reports_pkg2.rpt_type,
Account_Code IN cs_fund.ACCT_CD%TYPE)
AS
BEGIN
OPEN Report_Cursor FOR
select f.acct_cd,
f.acct_name,
f.crrncy_cd,
p.mkt_val_sod,
p.qty_sod,
p.mkt_val_intraday,
p.qty_intraday
from cs_fund f, cs_position p
where p.acct_cd = f.acct_cd
and f.acct_cd = Account_Code ;
END eam_get_position_reports2;
-----
I have actually had Crystal look at it and they don't have a clue. Does anyone have a simple Oracle stored procedure that goes against more than one table that works. I have used sql for years and this is driving my bonkers arghhhh
if someone does have an example I can plagerize please send to pluckon@carolina.rr.com
Thanks a LOT
create or replace PACKAGE Test_Package2
AS TYPE Test_Type IS REF CURSOR;
END Test_Package2;
create or replace PROCEDURE eam_get_position_reports (
Report_Cursor IN OUT eam_get_position_reports_pkg.rpt_type,
Account_Code IN cs_fund.ACCT_CD%TYPE)
AS
BEGIN
OPEN Report_Cursor FOR
select f.acct_typ_cd,
f.inactive,
f.allow_buy,
f.allow_sell,
f.acct_name,
f.crrncy_cd
from cs_fund f
where f.acct_cd = Account_Code;
END eam_get_position_reports;
When I create a new report I see the stored procedure and
the parameter works as expected. life is good
-----------------------------------------------------
Now I need to add one more table. The following works when running in sql developer, Crystal sees the procedure but it blows. ora 20003 oru 10036 is invalid and cannot be described
The package is identical other than a different name so I included here
create or replace PACKAGE eam_get_position_reports_pkg2
AS TYPE rpt_type IS REF CURSOR;
END eam_get_position_reports_pkg2;
create or replace PROCEDURE eam_get_position_reports2 (
Report_Cursor IN OUT eam_get_position_reports_pkg2.rpt_type,
Account_Code IN cs_fund.ACCT_CD%TYPE)
AS
BEGIN
OPEN Report_Cursor FOR
select f.acct_cd,
f.acct_name,
f.crrncy_cd,
p.mkt_val_sod,
p.qty_sod,
p.mkt_val_intraday,
p.qty_intraday
from cs_fund f, cs_position p
where p.acct_cd = f.acct_cd
and f.acct_cd = Account_Code ;
END eam_get_position_reports2;
-----
I have actually had Crystal look at it and they don't have a clue. Does anyone have a simple Oracle stored procedure that goes against more than one table that works. I have used sql for years and this is driving my bonkers arghhhh
if someone does have an example I can plagerize please send to pluckon@carolina.rr.com
Thanks a LOT