REP-1241: Circular column dependency originating with column [message #624993] |
Tue, 30 September 2014 02:12 |
|
mist598
Messages: 1195 Registered: February 2013 Location: Hyderabad
|
Senior Member |
|
|
Hi,
Function CF_MMM_formula
RETURN NUMBER
IS
v_qty NUMBER;
v_qty := (:CF_MON + :CF_A1 + :CF_A2 + :CF_A3 + :CF_A4 + :CF_A5 + :CF_A6);
return nvl(v_qty, 0);
end;
REP-1241: Circular column dependency originating with column 'CF_MMM'
FUNCTION Cf_formula RETURN NUMBER
IS
v_qty NUMBER;
Begin
IF :CF_MMM < 0 THEN AND Nvl(:cf_Fixed, 0) = 0 THEN
IF Nvl(:cf_Min_Qty, 0) = 0 THEN
v_qty := Abs(:CF_MMM);
RETURN Nvl(v_qty, 0);
END IF;
v_qty := Nvl(:cf_Min_Qty, 0);
IF v_qty >= Abs(:CF_MMM) THEN
RETURN Nvl(v_qty, 0);
END IF;
IF Nvl(:cf_Fixed, 0) > 0 THEN
LOOP
v_qty := v_qty + Nvl(:cf_Fixed, 0);
exit WHEN v_qty >= Abs(:CF_MMM);
END LOOP;
RETURN Nvl(v_qty, 0);
END IF;
v_qty := Abs(:CF_MMM);
RETURN Nvl(v_qty, 0);
END IF;
RETURN Nvl(v_qty, 0);
End;
Can you please help me
Thanks
[Updated on: Tue, 30 September 2014 02:13] Report message to a moderator
|
|
|
|
|
Re: REP-1241: Circular column dependency originating with column [message #625006 is a reply to message #625004] |
Tue, 30 September 2014 04:18 |
|
mist598
Messages: 1195 Registered: February 2013 Location: Hyderabad
|
Senior Member |
|
|
Thanks for reply cookiemonster..
Quote:Where do CF_MON, CF_A1 etc come from?
In the CF_A1 i am used in the another CF_formula column so it is a huge code
My Question..
suppose i have CF_A1 (name of the formula column name)
function CF_A1Formula return Number
is
.......
......
......
Suppose i need to use CF_A1 in the another formula column like
function CF_A2Formula return Number
is
if :CF_A1<0 then
...
...
end if;
or
if :CF_A1Formula<0 then
...
...
end if;
which one is correct in the above code?
[Updated on: Tue, 30 September 2014 04:20] Report message to a moderator
|
|
|
|
|
|
|
|
|