FORMULA_RESULT_FLAG column in the PAY_RUN_RESULT_VALUES table:-
D means Run
result calculated by the Fast Formula.
N means Run result created by a call to the API (Ex: PAY_RUN_RESULT_PKG).
NULL means Run result created as an indirect result or the input value directly entered by the user.