Shareholder Payroll

I am trying to pay into Shareholder loans using payroll.  I've cut a paycheque to a shareholder to include all taxes paid, but instead of actually cashing the paycheque, I want to move it right into shareholder loans.  How do I do this?  Thru General Journal?