SAP Message 40342 - There is a reference in the formula that causes a recursion

Diagnosis
The formula you have selected contains a reference that causes a loop.The system does not carry out this function.

Procedure
Check the formula along with the formulas of the fields to which itrefers and remove the loop.