Assume that R be a unital prime ring with whose characteristic is not 2 and containing a nontrivial idempotent P. In this paper, it is shown that under certain conditions, φ([A, B]) = [φ(A), B] where φ an additive map on R and AB = P if and only if it has the form φ(A) = λA + h(A), where h is an additive map into its center vanishing at commutators [A, B] with AB = P and λ ∈ Z(R). An application of our results we characterize generalized Lie derivations on R. Using main result we apply several classical examples of unital prime rings with nontrivial idempotents such as Banach space standard operator algebras and factor von Neumann algebras