In Raiser's Edge:
1. Select Mail > Donor Acknowledgement Letters > New
2. Click on the Fields to Include tab.
3. In the Fields to Include tab, under Available Fields double click over 'Gifts'.
4. Highlight the 'Appeal ID' field and select > button to add it to Fields to Export list.