Hi Priya,
It's general requirement that Loan Repayment amount will go to vendor account.
Create a Symbolic account with Account assignment as Vendor K. Assign technical account to your payroll clearing G/L for Loan.
Which will post employee vendor in separate document while FI document will generate at posting time.
Regards,
Sankarsan