REP 1241 ERROR Circular column dependency originating with column CF_TAX

function CF_AMOUNTFormula return Number is
CURSOR C1 IS
SELECT TERM_SHORT_NAME
FROM OM_TERM
WHERE TERM_CODE=:JEH_TERM_CODE;            

begin
      IF C1%ISOPEN THEN
            CLOSE C1;
      END IF;
      OPEN C1;
      FETCH C1 INTO :CP_TERM_NAME;
      CLOSE C1;
            
 IF  :JEH_RETENTION_PERC >0 THEN
 :CP_RETENTION_AMT :=NVL((:JEH_RETENTION_PERC/100) * :CS_GROSS_FC_VAL,0);
 END IF;
   :CP_GROSS_AMT := :CS_GROSS_FC_VAL + NVL(:CS_EXP_SUM,0);
 -- :CP_NET_AMOUNT := :CS_GROSS_FC_VAL + NVL(:CP_RETENTION_AMT,0) + NVL(:CS_EXP_SUM,0);
    :CP_NET_AMOUNT := :CS_TOTAL -  (NVL(:JEH_DISC_VAL,0)+(:CF_TAX));
  RETURN(1);
  EXCEPTION
        WHEN OTHERS THEN
        RETURN(0);
        
end;
Sujith SAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
I'm not a Reports person but just based on that error message, you have a formula column used in the formula posted that in turn calls the formula posted.

So some formula column in the code you posted references CF_AMOUNTFormula so it circles back to here.
0
Geert GOracle dbaCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
slightwv (䄆 Netminder) Commented:
Sujith,
It appears you closed this so you could ask a new question.

Please confirm the accepted solution was the actual answer and you just didn't accept the last post.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
toad

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.