1. Create a Gift export
  2. On the Output tab select Distribution > Credit Number or Distribution > Debit Number

Note:  To export the GL Distribution for Adjusted Gifts select:  Adjustments > Distribution > Debit Number or Adjustments > Distribution > Credit Number