I have created below procedure but its giving PLS-00302 error. Thanks in Advance :)
ORA-06550: line 11, column 12: PLS-00302: component 'GET_LATEST_LSR_TRANSACTION' must be declared ORA-06550: line 11, column 3: PL/SQL: Statement ignored
CREATE OR REPLACE procedure SEA_USER.Get_Latest_LSR_Transaction (tn IN VARCHAR2, pon OUT VARCHAR2, duedate OUT TIMESTAMP)
IS
trans_oid NUMBER(10) := 0;
foc_trans_oid NUMBER(10) := 0;
BEGIN
SELECT TRANS_OID INTO trans_oid FROM SEA_LSR_TN WHERE tn BETWEEN STARTTN AND ENDTN;
SELECT MAX(T.OID) INTO foc_trans_oid FROM SEA_LSR_TRANS T, SEA_LSR_TXEVENT_HISTORY H WHERE T.OID IN (trans_oid) AND T.OID = H.TRANS_PARENT_OID AND H.EVENT_CODE IN ('focaccept', 'suppaccept') AND T.REQTYP = 'CB';
IF foc_trans_oid != 0
THEN
SELECT PON, DUEDATE INTO pon, duedate FROM SEA_LSR_TRANS WHERE OID = foc_trans_oid;
ELSE
SELECT PON, DUEDATE INTO pon, duedate FROM SEA_LSR_TRANS WHERE OID = trans_oid;
END IF;
END;
/