Question : Oracle SQL Developer -- Run Package ?

How can I get something like Test #3 to run ?

Test #1
1.      Open Oracle SQL Developer
2.      Right mouse button on CONDITION_CODE_MANAGER_API
3.      Left mouse button on RUN
4.      Highlight GET_CONDITION_CODE
5.      Enter below parameters
a.        PART_NO_ := '411305';
b.        SERIAL_NO_ := '*';
c.        LOT_BATCH_NO_ := '0147072';
6.      Click OK
7.      Results display in LOG window

Test #2
1.      Open Oracle SQL Developer
2.      Open DBMS Output WINDOW
3.      RUN below
a.      DECLARE
b.        PART_NO_ VARCHAR2(200);
c.        SERIAL_NO_ VARCHAR2(200);
d.        LOT_BATCH_NO_ VARCHAR2(200);
e.        v_Return VARCHAR2(200);
f.      BEGIN
g.        PART_NO_ := '411305';
h.        SERIAL_NO_ := '*';
i.        LOT_BATCH_NO_ := '0147072';
j.      
k.        v_Return := CONDITION_CODE_MANAGER_API.GET_CONDITION_CODE(
l.          PART_NO_ => PART_NO_,
m.          SERIAL_NO_ => SERIAL_NO_,
n.          LOT_BATCH_NO_ => LOT_BATCH_NO_
o.        );
p.        DBMS_OUTPUT.PUT_LINE('v_Return = ' || v_Return);
q.      End;

Test #3
1.      Open Oracle SQL Developer
2.      Open DBMS Output WINDOW
3.      RUN below
a.      DBMS_OUTPUT.PUT_LINE(Condition_Code_Manager_Api.Get_Condition_Code ('411305','*','0147072'));
4.      Get no results

Answer : Oracle SQL Developer -- Run Package ?

you can run it like this:
Exec DBMS_OUTPUT.PUT_LINE(Condition_Code_Manager_Api.Get_Condition_Code ('411305','*','0147072'));
Random Solutions  
 
programming4us programming4us