Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PLS-00363: expression 'P_RET_CD' cannot be used as an assignment

Status
Not open for further replies.

dps

Programmer
Feb 2, 2001
157
GB
Hi,

I have a procedure(s) which take in the follwoing parameters

p_ret_cd IN OUT NUMBER,
p_ret_msg IN OUT VARCHAR2

Then in the Begin section these are initialised

p_ret_cd := 0;
p_ret_msg := 'OK';

Then this procedure is called within the same package body as the procedure above and p_dops_record('INSERT', p_ret_cd, p_ret_msg, v_idps_recin.sch_af_id); Note the first and the last parameters are just IN.

When I try to compile the pakage body - I get the following errors

PLS-00363: expression 'P_RET_CD' cannot be used as an assignment
target
show errors
p_ret_cd := 0;
p_ret_msg := 'OK';
p_dops_record('UPDATE', p_ret_cd, p_ret_msg, v_idps_recin.sch_af_id)
p_ret_cd := -20110; NOTE it is re-assigned elsewhere in processing..

When I Isolate the procedure in a package body and leave the IN OUT and call it from another procedure just like above - IT COMPILES!!


Any idea???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top