Glowworm27
Programmer
I have a package with the following procedure in it.
I am searching for an existing record. If I find the record I will return the SPiff_ID (record id) if Not I wish to return a -1 but when I try to execute the statement from my ASP.net page I recieve the error.
here is the procedure
Thanks in advance.
George Oakes
Check out this awsome .Net Resource!
I am searching for an existing record. If I find the record I will return the SPiff_ID (record id) if Not I wish to return a -1 but when I try to execute the statement from my ASP.net page I recieve the error.
here is the procedure
Code:
PROCEDURE GetSpiffTrackingID (
oUniversalID In Number,
oStoreNbr In Number,
oWeekEndingDate In Date,
oSPiffID Out Number
) IS
BEGIN -- executable part starts here
--Search for a matching Spiff tracking ID if Found return the ID else return a -1
select Spiff_Id into oSpiffID from SPiff_tracking
Where Universal_ID = oUniversalID
and StoreNbr = oStoreNbr
and Week_Ending_Date = oWeekEndingDate;
EXCEPTION -- exception-handling part starts here
WHEN No_Data_Found THEN
oSpiffID := -1;
END GetSpiffTrackingID;
Thanks in advance.
George Oakes
Check out this awsome .Net Resource!